-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
85 lines (85 loc) · 3.42 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
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
module.exports = {
"env": {
"es6": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"project": './tsconfig.json',
"tsconfigRootDir": __dirname,
"createDefaultProgram": true
},
"plugins": [
"prettier",
"import"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
"rules": {
"brace-style": "off",
"camelcase": "off",
"class-name-casing": "off",
"func-call-spacing": "off",
"indent": "off",
"init-declarations": "off",
"lines-between-class-members": "off",
"no-array-constructor": "off",
"no-extra-parens": "off",
"no-magic-numbers": "off",
"no-empty-function": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"prefer-destructuring": "off",
"quote-props": ["error", "consistent"],
"id-length": ["error", {"max": 40, "min": 1}],
"space-before-function-paren": "off",
"new-cap": "off",
"semi": "off",
"require-atomic-updates": "off",
"class-methods-use-this": "off",
"import/order": ["error", { "groups": ["builtin", "external", "index", "sibling", "parent"], 'newlines-between': 'always'}],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/array-type": ["error", { "default": "array"}],
"@typescript-eslint/brace-style": ["error","1tbs", { "allowSingleLine": true }],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/func-call-spacing": "error",
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": ["error", { "allowSingleExtends": false }],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-extra-parens": "off",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-namespace": ["error", { "allowDefinitionFiles": true }],
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/typedef": "off",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/ban-ts-ignore": "off"
}
};