-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
44 lines (44 loc) · 1.09 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
{
"parser": "typescript-eslint-parser",
"plugins": ["typescript"],
"extends": ["eslint:recommended"],
"rules": {
"indent": ["error", 2],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"comma-dangle": ["error", "never"],
"no-cond-assign": "off",
"no-console": "off",
"eqeqeq": ["error", "smart"],
"curly": ["error", "multi-line"],
"no-else-return": ["error"],
"no-eval": ["error"],
"no-use-before-define": ["error"],
"no-undef": ["error"],
"array-bracket-spacing": ["error", "never"],
"typescript/no-use-before-define": "warn",
"typescript/no-unused-vars": "warn"
// "react/prop-types": [ true, { "ignore": ["children"] }]
},
"overrides": {
"files": ["**/*.ts"],
"parser": "typescript-eslint-parser",
"rules": {
"no-undef": "off"
}
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
// "jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
}
}