Skip to content

Commit

Permalink
fix prettier integration
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoloureiro authored and srtab committed Jan 17, 2024
1 parent dfb5d9f commit dd7e699
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 72 deletions.
7 changes: 3 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"extends": ["eslint:recommended", "prettier"],
"plugins": ["prettier"],
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"env": { "es6": true, "node": true },
"plugins": ["simple-import-sort"],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"prettier/prettier": "error"
"no-console": ["error", { "allow": ["warn", "error"] }]
},
"ignorePatterns": ["node_modules"]
}
210 changes: 151 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dipcode/eslint-config",
"version": "0.1.0",
"version": "0.1.1",
"description": "Shareable ESLint config for Dipcode.",
"main": "./src/config.js",
"scripts": {
Expand Down Expand Up @@ -31,17 +31,19 @@
"exports": "./src/config.js",
"devDependencies": {
"husky": "8.0.3",
"lint-staged": "15.2.0",
"prettier": "3.2.2"
"lint-staged": "15.2.0"
},
"peerDependencies": {
"eslint": "^8.0.0"
"eslint": "^8.0.0",
"prettier": "^3.0.0"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-plugin-jsdoc": "^48.0.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^10.0.0"
}
}
Loading

0 comments on commit dd7e699

Please sign in to comment.