-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
45 lines (45 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
{
"root": true,
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"env": {
"node": true,
"browser": true
},
"plugins": [ "eslint-plugin-react-createelement" ],
"rules": {
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
}],
"react-createelement/createelement-arguments": 2,
"react-createelement/arrays-require-keys": 2,
"curly": [2, "multi-line"],
"new-cap": 0,
"no-mixed-requires": 0,
"no-trailing-spaces": 2,
"no-underscore-dangle": 0,
"no-use-before-define": [2, "nofunc"],
"no-var": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-spread": 2,
"quotes": 0
},
"overrides": [{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": [ "@typescript-eslint" ],
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "error"
}
}]
}