-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
94 lines (92 loc) · 2.7 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"eslint-plugin-tsdoc"
],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": ".",
"ecmaVersion": 2018,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"mocha": true,
"commonjs": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"semi": "error",
"indent": ["error", 2, {
"FunctionDeclaration": { "parameters": "first" }
}],
"prefer-arrow-callback": "warn",
"eol-last": ["error", "always"],
"object-shorthand": ["error", "always"],
"no-unused-vars": 0,
"no-lonely-if": "warn",
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"no-multiple-empty-lines": "warn",
"space-before-blocks": "warn",
"space-in-parens": ["warn", "never"],
"space-infix-ops": "warn",
"eqeqeq": "warn",
"no-shadow": ["error"],
"no-var": ["error"],
"prefer-const": ["error"],
"one-var": ["error", { "separateRequires": true }],
"tsdoc/syntax": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": ["warn", {
"allowArgumentsExplicitlyTypedAsAny": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowedNames": [],
"allowHigherOrderFunctions": true,
"allowTypedFunctionExpressions": true
}],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": {"delimiter": "semi", "requireLast": true},
"singleline": {"delimiter": "semi", "requireLast": false}
}],
"@typescript-eslint/no-unused-vars": ["warn", {
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/space-before-function-paren": ["warn", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "typeLike",
"format": ["StrictPascalCase"],
"filter": {
"regex": "Ws(Raw)?(C2S|S2C)",
"match": false
}
},
{
"selector": "variable",
"format": ["strictCamelCase", "UPPER_CASE", "StrictPascalCase"],
"leadingUnderscore": "allow",
"filter": {
"regex": "Ws(Raw)?(C2S|S2C)",
"match": false
}
},
{ "selector": "variable", "modifiers": ["destructured"], "format": null }
]
}
}