-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.json
53 lines (53 loc) · 1.3 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"env": {
"browser": true,
"es6": true
},
"extends": ["xo-react/space", "plugin:react/recommended", "prettier/react"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"no-console": "off",
"indent": [2, 2, { "SwitchCase": 1 }],
"no-use-before-define": "off",
"jsx-a11y/href-no-hash": ["off"],
"object-curly-spacing": ["warn", "always"],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/display-name": ["off", { "ignoreTranspilerName": true }],
"react/jsx-tag-spacing": [
"warn",
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "allow"
}
],
"max-len": [
"warn",
{
"code": 120,
"tabWidth": 2,
"comments": 120,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
}
}