forked from bitfinexcom/bfx-hf-ui-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
60 lines (60 loc) · 1.98 KB
/
.eslintrc.json
File metadata and controls
60 lines (60 loc) · 1.98 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"extends": ["airbnb", "eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaVersion": 2020
},
"root": true,
"plugins": ["lodash", "react-hooks"],
"rules": {
"arrow-body-style": "off",
"arrow-parens": "off",
"import/no-cycle": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/prefer-default-export": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-quotes": ["error", "prefer-single"],
"linebreak-style": "off",
"lines-between-class-members": "off",
"max-len": "off",
"no-console": "off",
"no-empty-function": "off",
"no-nested-ternary": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"react/display-name": "warn",
"react/function-component-definition": "off",
"function-paren-newline": "off",
"no-restricted-exports": "off",
"default-param-last": "off",
"react/jsx-no-useless-fragment": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": "off",
"react/prefer-stateless-function": "off",
"react/prop-types": "warn",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"semi": ["warn", "never"],
"lodash/prefer-lodash-method": "warn",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencie
"func-names": "off",
"no-unsafe-optional-chaining": "off" // Need to be resolved in codebase and removed
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src"]
}
}
},
"env": {
"browser": true,
"jest": true
}
}