1 | module.exports = {
|
2 | "env": {
|
3 | "browser": true,
|
4 | "es6": true,
|
5 | "node": true
|
6 | },
|
7 | "extends": [
|
8 | "plugin:@typescript-eslint/recommended",
|
9 | "plugin:@typescript-eslint/recommended-requiring-type-checking"
|
10 | ],
|
11 | "parser": "@typescript-eslint/parser",
|
12 | "parserOptions": {
|
13 | "project": "tsconfig.json",
|
14 | "sourceType": "module"
|
15 | },
|
16 | "plugins": [
|
17 | "@typescript-eslint",
|
18 | "@typescript-eslint/tslint"
|
19 | ],
|
20 | "rules": {
|
21 | "@typescript-eslint/prefer-includes": "off",
|
22 | "@typescript-eslint/unbound-method": "off",
|
23 | "@typescript-eslint/no-non-null-assertion": "off",
|
24 | "@typescript-eslint/member-delimiter-style": "error",
|
25 | "@typescript-eslint/no-misused-promises": "error",
|
26 | "@typescript-eslint/explicit-function-return-type": "off",
|
27 | "@typescript-eslint/camelcase": "off",
|
28 | "@typescript-eslint/adjacent-overload-signatures": "error",
|
29 | "@typescript-eslint/array-type": "error",
|
30 | "@typescript-eslint/ban-types": "error",
|
31 | "@typescript-eslint/class-name-casing": "error",
|
32 | "@typescript-eslint/consistent-type-assertions": "error",
|
33 | "@typescript-eslint/indent": [
|
34 | "error",
|
35 | "tab",
|
36 | {
|
37 | "ArrayExpression": "first",
|
38 | "ObjectExpression": "first"
|
39 | }
|
40 | ],
|
41 | "@typescript-eslint/interface-name-prefix": "off",
|
42 | "@typescript-eslint/no-empty-function": "off",
|
43 | "@typescript-eslint/no-empty-interface": "error",
|
44 | "@typescript-eslint/no-explicit-any": "off",
|
45 | "@typescript-eslint/no-misused-new": "error",
|
46 | "@typescript-eslint/no-namespace": "error",
|
47 | "@typescript-eslint/no-parameter-properties": "off",
|
48 | "@typescript-eslint/no-use-before-define": "off",
|
49 | "@typescript-eslint/no-var-requires": "error",
|
50 | "@typescript-eslint/prefer-for-of": "error",
|
51 | "@typescript-eslint/prefer-function-type": "error",
|
52 | "@typescript-eslint/prefer-namespace-keyword": "error",
|
53 | "@typescript-eslint/quotes": [
|
54 | "error",
|
55 | "single",
|
56 | {
|
57 | "avoidEscape": true
|
58 | }
|
59 | ],
|
60 | "@typescript-eslint/triple-slash-reference": "error",
|
61 | "@typescript-eslint/unified-signatures": "off",
|
62 | "camelcase": "off",
|
63 | "comma-dangle": "error",
|
64 | "complexity": "off",
|
65 | "constructor-super": "error",
|
66 | "dot-notation": "error",
|
67 | "eqeqeq": [
|
68 | "error",
|
69 | "smart"
|
70 | ],
|
71 | "guard-for-in": "off",
|
72 | "id-blacklist": [
|
73 | "error",
|
74 | "any",
|
75 | "Number",
|
76 | "number",
|
77 | "String",
|
78 | "string",
|
79 | "Boolean",
|
80 | "boolean",
|
81 | "Undefined"
|
82 | ],
|
83 | "id-match": "error",
|
84 | "max-classes-per-file": [
|
85 | "error",
|
86 | 1
|
87 | ],
|
88 | "max-len": "off",
|
89 | "new-parens": "error",
|
90 | "no-bitwise": "off",
|
91 | "no-caller": "error",
|
92 | "no-cond-assign": "off",
|
93 | "no-console": "off",
|
94 | "no-debugger": "error",
|
95 | "no-empty": "off",
|
96 | "no-eval": "error",
|
97 | "no-fallthrough": "off",
|
98 | "no-invalid-this": "off",
|
99 | "no-multiple-empty-lines": "off",
|
100 | "no-new-wrappers": "error",
|
101 | "no-shadow": [
|
102 | "error",
|
103 | {
|
104 | "hoist": "all"
|
105 | }
|
106 | ],
|
107 | "no-throw-literal": "error",
|
108 | "no-trailing-spaces": "error",
|
109 | "no-undef-init": "error",
|
110 | "no-underscore-dangle": "off",
|
111 | "no-unsafe-finally": "error",
|
112 | "no-unused-expressions": "error",
|
113 | "no-unused-labels": "error",
|
114 | "no-var": "error",
|
115 | "object-shorthand": "error",
|
116 | "one-var": [
|
117 | "error",
|
118 | "never"
|
119 | ],
|
120 | "prefer-arrow/prefer-arrow-functions": "off",
|
121 | "prefer-const": "error",
|
122 | "radix": "error",
|
123 | "spaced-comment": "error",
|
124 | "use-isnan": "error",
|
125 | "valid-typeof": "off",
|
126 | "@typescript-eslint/tslint/config": [
|
127 | "error",
|
128 | {
|
129 | "rules": {
|
130 | "jsdoc-format": true,
|
131 | "no-reference-import": true,
|
132 | "no-unsafe-any": true,
|
133 | "whitespace": [
|
134 | true,
|
135 | "check-branch",
|
136 | "check-operator"
|
137 | ]
|
138 | }
|
139 | }
|
140 | ]
|
141 | }
|
142 | };
|