This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
82 lines (82 loc) · 3.04 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
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"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"wolox-node"
],
"rules": {
"brace-style": "off",
"camelcase": "off",
"class-name-casing": "off",
"func-call-spacing": "off",
"indent": "off",
"init-declarations": "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",
"space-before-function-paren": "off",
"new-cap": "off",
"semi": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/class-name-casing": ["error", { "allowUnderscorePrefix": true }],
"@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": ["error", 2],
"@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": "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": "error",
"@typescript-eslint/unbound-method": "error"
}
};