-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
51 lines (51 loc) · 1.46 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
plugins: ["@typescript-eslint", "sonarjs", "redundant-undefined", "prettier"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
"next/core-web-vitals",
"plugin:storybook/recommended",
"plugin:@next/next/recommended",
"plugin:prettier/recommended",
],
rules: {
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"@typescript-eslint/no-explicit-any": ["error"],
"redundant-undefined/redundant-undefined": "error",
curly: "error",
eqeqeq: ["error", "always"],
"no-duplicate-imports": "error",
"no-empty": ["error", { allowEmptyCatch: true }],
"no-implicit-globals": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-new": "error",
"no-promise-executor-return": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-unreachable-loop": "error",
"no-unused-expressions": "error",
yoda: "error",
},
overrides: [
{
files: ["*.js"],
rules: {
// our js config files need to use require
"@typescript-eslint/no-var-requires": "off",
},
},
],
env: {
jest: true,
},
};