forked from open-source-labs/Reactime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
35 lines (35 loc) · 884 Bytes
/
.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
{
"extends": [
"airbnb",
"plugin:jest/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"],
"root": true,
"plugins": ["jest", "react", "react-hooks", "@typescript-eslint"],
"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]
},
"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"
}
}