-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
36 lines (36 loc) · 879 Bytes
/
.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
{
"parserOptions": {
"parser": "@babel/eslint-parser",
"ecmaVersion": "latest",
"sourceType": "module",
"requireConfigFile": false
},
"env": {
"browser": true,
"es6": true
},
"extends": ["eslint:recommended", "prettier", "plugin:jsx-a11y/recommended", "plugin:import/errors", "plugin:react/recommended"],
"plugins": ["jsx-a11y", "import"],
"rules": {
"eqeqeq": ["error", "always", { "null": "ignore" }],
"no-var": "error",
"prefer-const": "error",
// React
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "off"
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": {
"extensions": [".js", ".jsx"],
"map": [
["src", "./src"],
["app", "./src"]
]
}
}
}
}