-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
95 lines (95 loc) · 2.81 KB
/
.eslintrc
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"next/core-web-vitals"
],
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"plugins": ["react", "prettier", "react-hooks"],
"rules": {
"react/react-in-jsx-scope": 0,
"react/prop-types": 0,
"react/function-component-definition": 0,
"import/prefer-default-export": 0,
"import/extensions": 0,
"react/no-multi-comp": 0,
"no-use-before-define": 0,
"import/no-unresolved": 0,
"no-unused-expressions": 0,
"no-useless-constructor": 0,
"react/prefer-es6-class": 0,
"prettier/prettier": "error",
"react/forbid-prop-types": 1,
"react/jsx-boolean-value": 0,
"react/jsx-wrap-multilines": 0,
"react/require-default-props": 0,
"lines-between-class-members": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-curly-brace-presence": 0,
"react/destructuring-assignment": 0,
"react/prefer-stateless-function": 0,
"react/jsx-one-expression-per-line": 0,
"jsx-a11y/no-static-element-interactions": 1,
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx", ".page.tsx", ".page.ts"] }
],
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "error", // Checks effect dependencies
"no-console": ["error", { "allow": ["error", "warn", "dir"] }],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "warn",
"camelcase": "off"
},
"overrides": [
{
"files": [
"**/*.ts",
"**/*.tsx",
"pages/**/*.ts",
"pages/**/*.tsx",
"pages/**/*.page.ts"
],
"env": { "browser": true, "es6": true },
"globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" },
"parser": "@typescript-eslint/parser",
"plugins": ["react", "@typescript-eslint"],
"rules": {
"indent": ["off", 2, { "SwitchCase": 1 }],
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
],
"linebreak-style": ["off", "unix"],
"quotes": ["error", "double"],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-unused-vars": "warn",
"import/no-extraneous-dependencies": [
"warn",
{
"devDependencies": true
}
],
"camelcase": "off"
},
"settings": {
"react": { "version": "detect" },
"import/core-modules": []
}
}
]
}