-
-
Notifications
You must be signed in to change notification settings - Fork 201
/
.eslintrc
39 lines (39 loc) · 1.08 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
{
"extends": [
"plugin:jest/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:testing-library/react", // added in for RTL tests
"plugin:jest-dom/recommended" // added in for RTL tests
],
"root": true,
"plugins": ["jest", "react", "react-hooks", "@typescript-eslint", "testing-library", "jest-dom"],
"rules": {
"arrow-parens": [2, "as-needed"],
"import/no-unresolved": "off",
"import/extensions": "off",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"react/jsx-filename-extension": [0],
"linebreak-style": "off",
"max-len": [{ "ignoreComments": true }]
},
"env": {
"es6": true,
"jest/globals": true,
"browser": true,
"webextensions": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"fetch": false
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
}
}