-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc
65 lines (65 loc) · 1.65 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": false
},
"ecmaVersion": 6,
"tsconfigRootDir": ".",
"project": "./tsconfig.json"
},
"env": {
"es6": true,
"node": true,
"browser": true,
"jquery": true
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"jquery",
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"rules": {
"indent": [
"error",
4
],
"no-console": 0,
"no-param-reassign": 0,
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"spaced-comment": ["error", "always", {
"line": {
"markers": ["/"],
"exceptions": ["-", "+"]
},
"block": {
"markers": ["!"],
"exceptions": ["*"],
"balanced": true
}
}],
"no-unused-expressions": ["warn", {
"allowShortCircuit": true,
"allowTernary": true
}], // https://eslint.org/docs/rules/no-unused-expressions
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"prefer-template": 0,
"import/extensions": 0,
"lines-between-class-members": 0,
"@typescript-eslint/prefer-interface": "off", // also want to use "type"
"@typescript-eslint/explicit-function-return-type": "off", // annoying to force return type
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-ignore": "off"
}
}