-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
49 lines (49 loc) · 959 Bytes
/
.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
{
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-base",
"prettier",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"prettier",
"@typescript-eslint"
],
"globals": {
"cc": "readonly"
},
"rules": {
"indent": "warn",
"one-var": "warn",
"camelcase": "warn",
"comma-spacing": "warn",
"import/no-unresolved": "off",
"eqeqeq": "warn",
"no-alert": "warn",
"no-console": "warn",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/array-type": [
"error",
{
"default": "generic"
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120
}
]
}
}