-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
98 lines (97 loc) · 2.18 KB
/
.eslintrc.json
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
96
97
98
{
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "prettier", "plugin:tailwindcss/recommended"],
"root": true,
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"allowImportExportEverywhere": true,
"sourceType": "module"
},
"plugins": ["react", "jsx-a11y", "import"],
"ignorePatterns": ["node_modules/"],
"rules": {
"camelcase": [
"off",
{
"ignoreDestructuring": true,
"allow": ["UNSAFE_componentWillMount"]
}
],
"comma-dangle": "off",
"eqeqeq": "off",
"no-unused-expressions": "warn",
"array-callback-return": "warn",
"prefer-const": "warn",
"global-require": 0,
"max-len": "off",
"no-console": 1,
"no-underscore-dangle": [
"error",
{
"allow": ["_id", "__typename", "__schema"]
}
],
"no-param-reassign": 0,
"no-shadow": "off",
"object-curly-newline": "off",
"import/no-unresolved": [
2,
{
"commonjs": true
}
],
"import/extensions": [
"error",
"never",
{
"json": "always"
}
],
"import/no-dynamic-require": "off",
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"jsx-a11y/label-has-for": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "single"],
"react/jsx-uses-vars": "error",
"react/no-array-index-key": "off",
"react/jsx-one-expression-per-line": 0,
"react/no-find-dom-node": 1,
"react/jsx-uses-react": "off",
"react/no-string-refs": 1,
"react/no-danger": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"react/jsx-props-no-spreading": "off",
"semi": ["error", "always"]
}
}