-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
64 lines (64 loc) · 1.66 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
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
root: true,
extends: [
"eslint:recommended",
"airbnb",
"next",
"next/core-web-vitals",
"prettier",
],
rules: {
"no-unused-vars": 1,
"default-param-last": 1,
"react/jsx-props-no-spreading": 1,
"no-use-before-define": 1,
"no-shadow": 1,
"react/jsx-no-useless-fragment": 1,
"jsx-a11y/click-events-have-key-events": 1,
"jsx-a11y/no-static-element-interactions": 1,
"import/no-extraneous-dependencies": 1,
"react/destructuring-assignment": 1,
"eqeqeq": 1,
"no-empty-pattern": 1,
"no-undef": 1,
"react/no-unstable-nested-components": 1,
"consistent-return": 1,
"react/button-has-type": 1,
"no-param-reassign": 1,
"no-unused-expressions": 1,
"import/prefer-default-export": 1,
"jsx-a11y/anchor-is-valid": 1,
"react/function-component-definition": 1,
"react/no-unused-prop-types": 1,
"import/no-unresolved": 1,
"import/no-cycle": 1,
"no-nested-ternary": 1,
"no-restricted-globals": 1,
"no-restricted-exports": 1,
"array-callback-return": 1,
"react/no-this-in-sfc": 1,
"no-plusplus": 1,
"radix": 1,
"no-return-assign": 1,
"react/no-array-index-key": 1,
"react/jsx-filename-extension": [
1,
{ extensions: [".js", ".jsx", ".tsx"] },
],
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"react/require-default-props": 0,
"no-underscore-dangle": 0,
"react/jsx-no-constructed-context-values": 0,
"react-hooks/exhaustive-deps": 0,
"prefer-destructuring": 0,
},
};