-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
46 lines (46 loc) · 1.12 KB
/
.eslintrc.json
File metadata and controls
46 lines (46 loc) · 1.12 KB
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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"extends": [
"artcom-react"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"extraFileExtensions": [".tsx"]
},
"plugins": [
"react",
"react-hooks",
"@typescript-eslint"
],
"rules": {
"no-shadow": "off",
"react/react-in-jsx-scope" : "off",
"react/jsx-uses-vars": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"require-jsdoc": "off",
"linebreak-style": "off",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
}
}