-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
31 lines (31 loc) 路 1.42 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"plugins": ["@typescript-eslint", "deprecation"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"rules": {
"@typescript-eslint/no-floating-promises": 2,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/lines-between-class-members": 0,
"@typescript-eslint/object-curly-spacing": 0,
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/space-before-function-paren": 0,
"@typescript-eslint/comma-dangle": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/prefer-readonly-parameter-types": 0,
"@typescript-eslint/no-magic-numbers": ["error", { "ignoreReadonlyClassProperties": true, "ignoreEnums": true, "ignore": [1] }],
"@typescript-eslint/init-declarations": 0,
"@typescript-eslint/no-extra-parens": 0,
"@typescript-eslint/no-unnecessary-condition": ["error", { "allowConstantLoopConditions": true }],
"@typescript-eslint/no-type-alias": ["error", { "allowAliases": "in-unions" }],
"deprecation/deprecation": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
}
}