-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (44 loc) · 1.58 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
{
"ignorePatterns": ["*.config.js"],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"globals": {
"NodeJS": "readonly"
},
"extends": ["plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/strict", "airbnb"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"indent": ["error", "tab", { "SwitchCase": 1 }],
"quotes": ["error", "double"],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"eol-last": ["error", "never"],
"no-alert": "off",
"no-shadow": "off", // -> @typescript-eslint/no-shadow
"no-plusplus": "off",
"brace-style": ["error", "allman"],
"comma-dangle": ["error", "never"],
"no-unused-vars": "off", // -> @typescript-eslint/no-unused-vars
"linebreak-style": "off",
"space-in-parens": ["error", "always"],
"no-param-reassign": ["error", { "props": false }],
"operator-linebreak": ["error", "before", { "overrides": { "=": "after" } }],
"no-restricted-globals": "off",
"array-bracket-spacing": ["error", "always"],
"template-curly-spacing": ["error", "always"],
"computed-property-spacing": ["error", "always"],
"import/extensions": ["error", "never"],
"import/no-unresolved": ["error", { "ignore": ["analytics", "cookies", "global", "functions"] }],
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-dynamic-delete": "off" // https://github.com/typescript-eslint/typescript-eslint/issues/3504
},
"env": {
"es6": true,
"jquery": true,
"browser": true,
"commonjs": true
}
}