-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
32 lines (32 loc) · 839 Bytes
/
.eslintrc.json
File metadata and controls
32 lines (32 loc) · 839 Bytes
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
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["airbnb", "plugin:react/recommended"],
"plugins": ["react"],
"rules": {
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"no-shadow": "off",
"no-param-reassign": [
"error", { "props": true, "ignorePropertyModificationsFor": [
"state"
] }]
//Following the official documentation by redux toolkit - we need this rule - https://redux-toolkit.js.org/usage/immer-reducers#linting-state-mutations
},
"ignorePatterns": [
"dist/",
"build/"
]
}