Skip to content

Commit

Permalink
ESLint: move test-related overrides to overrides (#809)
Browse files Browse the repository at this point in the history
Also, sort the rules and use the default `strict` setting which is based on the `sourceType` setting
  • Loading branch information
XhmikosR committed Apr 14, 2023
1 parent bcb79ee commit 6290bc9
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,28 @@
},
"env": {
"es6": true,
"jest": true,
"node": true
},
"globals": {
"dedent": true,
"testRule": true
},
"rules": {
"arrow-spacing": "error",
"eqeqeq": "error",
"no-use-before-define": ["error", "nofunc"],
"strict": ["error", "global"],
"arrow-spacing": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"strict": "error",
"template-curly-spacing": "error"
}
},
"overrides": [
{
"files": ["**/__tests__/**"],
"env": {
"jest": true
},
"globals": {
"dedent": true,
"testRule": true
}
}
]
}

0 comments on commit 6290bc9

Please sign in to comment.