-
Notifications
You must be signed in to change notification settings - Fork 199
/
.eslintrc
50 lines (50 loc) · 1.1 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
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"react"
],
"globals": {
"flushConsoleOutput": true,
"jest": true
},
"settings": {
"react": {
"version": "18"
}
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"rules": {
"semi": ["error", "always"],
"curly": "error",
"no-var": "error",
"quotes": ["error", "single"],
"no-console": "error",
"no-debugger": "warn",
"no-unused-vars": ["error", {"ignoreRestSiblings": true}],
"eol-last": "error",
"object-curly-spacing": ["error", "always"],
"react/prop-types": "off",
"react/display-name": "off",
"space-before-function-paren": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-in-parens": ["error", "never"],
"comma-dangle": ["error", "only-multiline"],
"func-call-spacing": ["error", "never"],
"no-multi-spaces": "error",
"indent": ["error", 2]
}
}