-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
38 lines (37 loc) · 1.05 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
module.exports = {
env: {
es6: true,
},
globals: {
JSX: "readonly",
Code: true,
},
extends: [
"eslint:recommended",
"next",
"plugin:@typescript-eslint/recommended",
],
plugins: ["eslint-plugin-prettier"],
rules: {
indent: "off",
quote: 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"comma-dangle": ["warn", "never"],
"max-len": ["error", { code: 400 }],
"consistent-return": 0,
"no-unrestricted-syntax": 0,
"import/prefer-default-export": 0,
"@typescript-eslint/no-shadow": [
"error",
{ builtinGlobals: false, hoist: "never", allow: [] },
],
"react/no-unescaped-entities": 0,
"react/jsx-one-expression-per-line": 0,
"no-console": ["error", { allow: ["warn", "error"] }],
"operator-linebreak": "off",
"@typescript-eslint/no-unused-vars": ["error", { args: "none" }],
"@typescript-eslint/no-explicit-any": "warn",
"valid-typeof": "off",
},
};