-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc
60 lines (60 loc) · 1.33 KB
/
.eslintrc
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
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"window": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx"]
}
}
},
"extends": ["eslint:recommended", "airbnb-base", "prettier/react", "plugin:react/recommended"],
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsx",
"eslint-plugin-prettier",
"eslint-plugin-react",
"eslint-plugin-react-hooks"
],
"rules": {
"import/no-named-as-default": 0,
"import/prefer-default-export": "off",
"import/no-unresolved": 0,
"import/extensions": [
"error",
"never",
{
"js": "never",
"jsx": "never",
"png": "always",
"svg": "always"
}
],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"camelcase": "off",
"jsx-quotes": ["error", "prefer-single"],
"linebreak-style": ["warn", "windows"],
"max-len": ["error", { "code": 120, "ignorePattern": "d=[\"']([\\s\\S]*?)[\"']" }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"object-curly-newline": ["error", { "multiline": true }],
"quotes": ["error", "single"]
}
}