forked from ivkan/ts-ion-rangeslider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.75 KB
/
.eslintrc.js
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
/* eslint-env node*/
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.eslint.json"]
},
plugins: [
"@typescript-eslint"
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
// "@typescript-eslint"
],
rules: {
"array-bracket-spacing": ["error", "never"],
"comma-dangle": "off",
"comma-spacing": ["error", { "before": false, "after": true }],
"curly": "error",
"eol-last": "error",
"eqeqeq": [
"error",
"smart"
],
"indent": ["error", 2, { "SwitchCase": 1 }],
"key-spacing": ["error", { "beforeColon": false }],
"keyword-spacing": "error",
"no-console": "error", "no-multi-spaces": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"quotes": "off",
"radix": "error",
"semi": "off",
"semi-spacing": "error",
"space-in-parens": ["error", "never"],
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"@typescript-eslint/comma-dangle": "error",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
// "@typescript-eslint/prefer-nullish-coalescing": "error",
"@typescript-eslint/quotes": ["error", "double", { "allowTemplateLiterals": true }],
"@typescript-eslint/semi": ["error", "never", {
"beforeStatementContinuationChars": "never"
}]
}
}