-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
39 lines (39 loc) · 1010 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
37
38
39
{
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["react", "react-hooks", "prettier"],
"rules": {
"indent": ["warn", 2],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/accessible-emoji": "off",
"no-duplicate-imports": "error",
"no-multi-spaces": "warn",
"no-undef": "off",
"no-unused-vars": "warn",
"no-useless-rename": "warn",
"react/jsx-sort-props": ["warn", { "reservedFirst": ["key"] }],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/prop-types": "off",
"semi": "warn",
"semi-spacing": "warn",
"spaced-comment": "warn",
"quotes": ["warn", "single"]
}
}