]>
Commit | Line | Data |
---|---|---|
a1587156 C |
1 | { |
2 | "extends": "standard-with-typescript", | |
3 | "rules": { | |
4 | "eol-last": [ | |
5 | "error", | |
6 | "always" | |
7 | ], | |
8 | "indent": "off", | |
9 | "no-lone-blocks": "off", | |
10 | "no-mixed-operators": "off", | |
11 | "max-len": [ | |
12 | "error", | |
13 | { | |
14 | "code": 140 | |
15 | } | |
16 | ], | |
17 | "array-bracket-spacing": [ | |
18 | "error", | |
19 | "always" | |
20 | ], | |
21 | "quote-props": [ | |
22 | "error", | |
23 | "consistent-as-needed" | |
24 | ], | |
25 | "padded-blocks": "off", | |
26 | "no-async-promise-executor": "off", | |
27 | "dot-notation": "off", | |
28 | "promise/param-names": "off", | |
29 | "import/first": "off", | |
30 | "operator-linebreak": [ | |
31 | "error", | |
32 | "after", | |
33 | { | |
34 | "overrides": { | |
35 | "?": "before", | |
36 | ":": "before" | |
37 | } | |
38 | } | |
39 | ], | |
40 | "@typescript-eslint/indent": [ | |
41 | "error", | |
42 | 2, | |
43 | { | |
44 | "SwitchCase": 1, | |
45 | "MemberExpression": "off" | |
46 | } | |
47 | ], | |
48 | "@typescript-eslint/consistent-type-assertions": [ | |
49 | "error", | |
50 | { | |
51 | "assertionStyle": "as" | |
52 | } | |
53 | ], | |
54 | "@typescript-eslint/array-type": [ | |
55 | "error", | |
56 | { | |
57 | "default": "array" | |
58 | } | |
59 | ], | |
60 | "@typescript-eslint/restrict-template-expressions": [ | |
61 | "off", | |
62 | { | |
63 | "allowNumber": "true" | |
64 | } | |
65 | ], | |
7fed6375 C |
66 | "@typescript-eslint/no-this-alias": [ |
67 | "error", | |
68 | { | |
69 | "allowDestructuring": true, // Allow `const { props, state } = this`; false by default | |
70 | "allowedNames": ["self"] // Allow `const self = this`; `[]` by default | |
71 | } | |
72 | ], | |
bdd428a6 | 73 | |
d9699428 | 74 | "@typescript-eslint/return-await": "off", |
faa9d434 C |
75 | "@typescript-eslint/dot-notation": "off", |
76 | "@typescript-eslint/method-signature-style": "off", | |
d9699428 | 77 | "@typescript-eslint/no-base-to-string": "off", |
a1587156 C |
78 | "@typescript-eslint/quotes": "off", |
79 | "@typescript-eslint/no-var-requires": "off", | |
80 | "@typescript-eslint/explicit-function-return-type": "off", | |
81 | "@typescript-eslint/promise-function-async": "off", | |
82 | "@typescript-eslint/no-dynamic-delete": "off", | |
bdd428a6 | 83 | "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off", |
a1587156 C |
84 | "@typescript-eslint/strict-boolean-expressions": "off", |
85 | "@typescript-eslint/consistent-type-definitions": "off", | |
86 | "@typescript-eslint/no-misused-promises": "off", | |
87 | "@typescript-eslint/no-namespace": "off", | |
4a8d113b | 88 | "@typescript-eslint/no-empty-interface": "off", |
a1587156 C |
89 | "@typescript-eslint/no-extraneous-class": "off", |
90 | // bugged but useful | |
91 | "@typescript-eslint/restrict-plus-operands": "off" | |
92 | }, | |
93 | "ignorePatterns": [ | |
94 | "node_modules/" | |
95 | ], | |
96 | "parserOptions": { | |
97 | "project": [ | |
98 | "./tsconfig.json", | |
99 | "./server/tools/tsconfig.json" | |
100 | ] | |
101 | } | |
102 | } |