-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (38 loc) · 1.03 KB
/
.eslintrc.js
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
module.exports = {
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true
},
"globals": {
"Buffer": true,
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 8,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"no-console": "warn",
"no-unused-vars": "warn",
"no-extra-boolean-cast": "off",
"no-unreachable": "warn",
"no-case-declarations": "warn",
"key-spacing": "warn",
"jsx-quotes": [ 2, "prefer-single" ],
"max-len": [ "error", { "code": 130,"ignoreUrls": true, "ignoreStrings": true, "ignoreTrailingComments": true } ],
"object-curly-spacing": [ "warn", "always" ],
"comma-dangle": "off",
"no-mixed-spaces-and-tabs": "warn",
"eqeqeq": "warn",
"block-scoped-var": "warn"
}
};