forked from creativetimofficial/material-dashboard-react
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.json
47 lines (47 loc) · 1.35 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["import", "react", "react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"react/function-component-definition": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": "off",
"react/prop-types": "off",
"react/jsx-no-constructed-context-values": "off",
"import/prefer-default-export": "off",
"linebreak-style": "off",
"no-confusing-arrow": "off",
"class-methods-use-this": "off",
"comma-dangle": "off",
"implicit-arrow-linebreak": "off",
"operator-linebreak": "off",
"function-paren-newline": "off",
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsFor": ["state"]
}
],
"no-plusplus": "off",
"react/display-name": "off",
"no-return-assign": "error",
"no-underscore-dangle": "error",
"no-unused-vars": "off",
"no-use-before-define": "off",
"object-curly-newline": "off"
},
"settings": { "import/resolver": { "node": { "paths": ["src"] } } }
}