-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy path.eslintrc.json
61 lines (61 loc) · 1.48 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
54
55
56
57
58
59
60
61
{
"extends": ["airbnb-base","plugin:prettier/recommended", "plugin:@typescript-eslint/recommended", "plugin:import/errors", "plugin:import/warnings", "plugin:import/typescript"],
"ignorePatterns": ["**/build*/**", "**/webstore-zips/**", "**/scratch**"],
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"browser": true
},
"rules": {
"no-self-assign": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-useless-escape": "off",
"no-console": "off",
"no-alert": "off",
"no-lonely-if": "off",
"dot-notation": "off",
"camelcase": [
"error",
{
"allow": ["^OPT_"]
}
],
"indent": ["error", 4],
"max-len": ["error", 300],
"comma-dangle": "off",
"prefer-destructuring": ["error", {
"array": false,
"object": true
}],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-interface": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"globals": {
"chrome": "readonly"
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}