Skip to content

Commit

Permalink
Move stylistic eslint rules to prettier (#3099)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat authored Nov 14, 2023
2 parents 23b910d + 6b9d126 commit d14e1c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"env": {
"es2021": true,
"node": true
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"no-async-promise-executor": "warn",
"no-prototype-builtins": "warn"
}
Expand Down
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"useTabs": true,
"singleQuote": false,
"semi": true,
"endOfLine": "lf",
"arrowParens": "always",
"printWidth": 100
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"ava": "^5.3.1",
"c8": "^8.0.1",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"js-yaml": "^4.1.0",
"jsdoc": "^4.0.2",
Expand Down

0 comments on commit d14e1c0

Please sign in to comment.