|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/oxlint/configuration_schema.json", |
3 | 3 | "plugins": ["typescript"], |
4 | | - "@typescript-eslint/adjacent-overload-signatures": "error", |
5 | | - "@typescript-eslint/no-restricted-types": "off", |
6 | | - "@typescript-eslint/ban-ts-comment": "off", |
7 | | - "@typescript-eslint/ban-tslint-comment": "error", |
8 | | - "@typescript-eslint/consistent-generic-constructors": [ |
9 | | - "error", |
10 | | - "constructor" |
11 | | - ], |
12 | | - "@typescript-eslint/consistent-indexed-object-style": ["error", "record"], |
13 | | - "@typescript-eslint/consistent-type-definitions": ["error", "type"], |
14 | | - "@typescript-eslint/consistent-type-imports": [ |
15 | | - "error", |
16 | | - { |
17 | | - "prefer": "type-imports", |
18 | | - "fixStyle": "separate-type-imports" |
19 | | - } |
20 | | - ], |
21 | | - "@typescript-eslint/no-confusing-non-null-assertion": "error", |
22 | | - "@typescript-eslint/no-duplicate-enum-values": "error", |
23 | | - "@typescript-eslint/no-dynamic-delete": "error", |
24 | | - "@typescript-eslint/no-empty-interface": "error", |
25 | | - "@typescript-eslint/no-empty-object-type": "error", |
26 | | - "@typescript-eslint/no-explicit-any": "off", |
27 | | - "@typescript-eslint/no-extra-non-null-assertion": "error", |
28 | | - "@typescript-eslint/no-extraneous-class": "error", |
29 | | - "@typescript-eslint/no-import-type-side-effects": "error", |
30 | | - "@typescript-eslint/no-inferrable-types": [ |
31 | | - "error", |
32 | | - { |
33 | | - "ignoreParameters": true, |
34 | | - "ignoreProperties": true |
35 | | - } |
36 | | - ], |
37 | | - "@typescript-eslint/no-misused-new": "error", |
38 | | - "@typescript-eslint/no-namespace": "error", |
39 | | - "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error", |
40 | | - "@typescript-eslint/no-non-null-asserted-optional-chain": "error", |
41 | | - "@typescript-eslint/no-non-null-assertion": "error", |
42 | | - "@typescript-eslint/no-require-imports": "error", |
43 | | - "@typescript-eslint/no-this-alias": "error", |
44 | | - "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error", |
45 | | - "@typescript-eslint/no-unnecessary-type-constraint": "error", |
46 | | - "@typescript-eslint/no-unsafe-declaration-merging": "error", |
47 | | - "@typescript-eslint/no-unsafe-function-type": "error", |
48 | | - "@typescript-eslint/no-useless-empty-export": "error", |
49 | | - "@typescript-eslint/no-var-requires": "error", |
50 | | - "@typescript-eslint/no-wrapper-object-types": "error", |
51 | | - "@typescript-eslint/prefer-as-const": "error", |
52 | | - "@typescript-eslint/prefer-enum-initializers": "error", |
53 | | - "@typescript-eslint/prefer-for-of": "error", |
54 | | - "@typescript-eslint/prefer-function-type": "error", |
55 | | - "@typescript-eslint/prefer-literal-enum-member": "error", |
56 | | - "@typescript-eslint/prefer-namespace-keyword": "error", |
57 | | - "@typescript-eslint/triple-slash-reference": "error", |
58 | | - "@typescript-eslint/array-type": [ |
59 | | - "error", |
60 | | - { |
61 | | - "default": "generic", |
62 | | - "readonly": "generic" |
63 | | - } |
64 | | - ], |
65 | | - "@typescript-eslint/explicit-function-return-type": "off", |
66 | | - "@typescript-eslint/explicit-module-boundary-types": "off", |
67 | | - // require type info |
68 | | - "@typescript-eslint/await-thenable": "off", |
69 | | - "@typescript-eslint/no-array-delete": "off", |
70 | | - "@typescript-eslint/no-base-to-string": "off", |
71 | | - "@typescript-eslint/no-confusing-void-expression": "off", |
72 | | - "@typescript-eslint/no-deprecated": "off", |
73 | | - "@typescript-eslint/no-duplicate-type-constituents": "off", |
74 | | - "@typescript-eslint/no-floating-promises": "off", |
75 | | - "@typescript-eslint/no-for-in-array": "off", |
76 | | - "@typescript-eslint/no-implied-eval": "off", |
77 | | - "@typescript-eslint/no-meaningless-void-operator": "off", |
78 | | - "@typescript-eslint/no-misused-promises": "off", |
79 | | - "@typescript-eslint/no-misused-spread": "off", |
80 | | - "@typescript-eslint/no-mixed-enums": "off", |
81 | | - "@typescript-eslint/no-redundant-type-constituents": "off", |
82 | | - "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off", |
83 | | - "@typescript-eslint/no-unnecessary-template-expression": "off", |
84 | | - "@typescript-eslint/no-unnecessary-type-arguments": "off", |
85 | | - "@typescript-eslint/no-unnecessary-type-assertion": "off", |
86 | | - "@typescript-eslint/no-unsafe-argument": "off", |
87 | | - "@typescript-eslint/no-unsafe-assignment": "off", |
88 | | - "@typescript-eslint/no-unsafe-call": "off", |
89 | | - "@typescript-eslint/no-unsafe-enum-comparison": "off", |
90 | | - "@typescript-eslint/no-unsafe-member-access": "off", |
91 | | - "@typescript-eslint/no-unsafe-return": "off", |
92 | | - "@typescript-eslint/no-unsafe-type-assertion": "off", |
93 | | - "@typescript-eslint/no-unsafe-unary-minus": "off", |
94 | | - "@typescript-eslint/non-nullable-type-assertion-style": "off", |
95 | | - "@typescript-eslint/only-throw-error": "off", |
96 | | - "@typescript-eslint/prefer-includes": "off", |
97 | | - "@typescript-eslint/prefer-nullish-coalescing": "off", |
98 | | - "@typescript-eslint/prefer-optional-chain": "off", |
99 | | - "@typescript-eslint/prefer-promise-reject-errors": "off", |
100 | | - "@typescript-eslint/prefer-reduce-type-parameter": "off", |
101 | | - "@typescript-eslint/prefer-return-this-type": "off", |
102 | | - "@typescript-eslint/promise-function-async": "off", |
103 | | - "@typescript-eslint/related-getter-setter-pairs": "off", |
104 | | - "@typescript-eslint/require-array-sort-compare": "off", |
105 | | - "@typescript-eslint/require-await": "off", |
106 | | - "@typescript-eslint/restrict-plus-operands": "off", |
107 | | - "@typescript-eslint/restrict-template-expressions": "off", |
108 | | - "@typescript-eslint/return-await": "off", |
109 | | - "@typescript-eslint/strict-boolean-expressions": "off", |
110 | | - "@typescript-eslint/switch-exhaustiveness-check": "off", |
111 | | - "@typescript-eslint/unbound-method": "off", |
112 | | - "@typescript-eslint/use-unknown-in-catch-callback-variable": "off" |
| 4 | + "rules": { |
| 5 | + "@typescript-eslint/adjacent-overload-signatures": "error", |
| 6 | + "@typescript-eslint/no-restricted-types": "off", |
| 7 | + "@typescript-eslint/ban-ts-comment": "off", |
| 8 | + "@typescript-eslint/ban-tslint-comment": "error", |
| 9 | + "@typescript-eslint/consistent-generic-constructors": [ |
| 10 | + "error", |
| 11 | + "constructor" |
| 12 | + ], |
| 13 | + "@typescript-eslint/consistent-indexed-object-style": ["error", "record"], |
| 14 | + "@typescript-eslint/consistent-type-definitions": ["error", "type"], |
| 15 | + "@typescript-eslint/consistent-type-imports": [ |
| 16 | + "error", |
| 17 | + { |
| 18 | + "prefer": "type-imports", |
| 19 | + "fixStyle": "separate-type-imports" |
| 20 | + } |
| 21 | + ], |
| 22 | + "@typescript-eslint/no-confusing-non-null-assertion": "error", |
| 23 | + "@typescript-eslint/no-duplicate-enum-values": "error", |
| 24 | + "@typescript-eslint/no-dynamic-delete": "error", |
| 25 | + "@typescript-eslint/no-empty-interface": "error", |
| 26 | + "@typescript-eslint/no-empty-object-type": "error", |
| 27 | + "@typescript-eslint/no-explicit-any": "off", |
| 28 | + "@typescript-eslint/no-extra-non-null-assertion": "error", |
| 29 | + "@typescript-eslint/no-extraneous-class": "error", |
| 30 | + "@typescript-eslint/no-import-type-side-effects": "error", |
| 31 | + "@typescript-eslint/no-inferrable-types": [ |
| 32 | + "error", |
| 33 | + { |
| 34 | + "ignoreParameters": true, |
| 35 | + "ignoreProperties": true |
| 36 | + } |
| 37 | + ], |
| 38 | + "@typescript-eslint/no-misused-new": "error", |
| 39 | + "@typescript-eslint/no-namespace": "error", |
| 40 | + "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error", |
| 41 | + "@typescript-eslint/no-non-null-asserted-optional-chain": "error", |
| 42 | + "@typescript-eslint/no-non-null-assertion": "error", |
| 43 | + "@typescript-eslint/no-require-imports": "error", |
| 44 | + "@typescript-eslint/no-this-alias": "error", |
| 45 | + "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error", |
| 46 | + "@typescript-eslint/no-unnecessary-type-constraint": "error", |
| 47 | + "@typescript-eslint/no-unsafe-declaration-merging": "error", |
| 48 | + "@typescript-eslint/no-unsafe-function-type": "error", |
| 49 | + "@typescript-eslint/no-useless-empty-export": "error", |
| 50 | + "@typescript-eslint/no-var-requires": "error", |
| 51 | + "@typescript-eslint/no-wrapper-object-types": "error", |
| 52 | + "@typescript-eslint/prefer-as-const": "error", |
| 53 | + "@typescript-eslint/prefer-enum-initializers": "error", |
| 54 | + "@typescript-eslint/prefer-for-of": "error", |
| 55 | + "@typescript-eslint/prefer-function-type": "error", |
| 56 | + "@typescript-eslint/prefer-literal-enum-member": "error", |
| 57 | + "@typescript-eslint/prefer-namespace-keyword": "error", |
| 58 | + "@typescript-eslint/triple-slash-reference": "error", |
| 59 | + "@typescript-eslint/array-type": [ |
| 60 | + "error", |
| 61 | + { |
| 62 | + "default": "generic", |
| 63 | + "readonly": "generic" |
| 64 | + } |
| 65 | + ], |
| 66 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 67 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 68 | + // require type info |
| 69 | + "@typescript-eslint/await-thenable": "off", |
| 70 | + "@typescript-eslint/no-array-delete": "off", |
| 71 | + "@typescript-eslint/no-base-to-string": "off", |
| 72 | + "@typescript-eslint/no-confusing-void-expression": "off", |
| 73 | + "@typescript-eslint/no-deprecated": "off", |
| 74 | + "@typescript-eslint/no-duplicate-type-constituents": "off", |
| 75 | + "@typescript-eslint/no-floating-promises": "off", |
| 76 | + "@typescript-eslint/no-for-in-array": "off", |
| 77 | + "@typescript-eslint/no-implied-eval": "off", |
| 78 | + "@typescript-eslint/no-meaningless-void-operator": "off", |
| 79 | + "@typescript-eslint/no-misused-promises": "off", |
| 80 | + "@typescript-eslint/no-misused-spread": "off", |
| 81 | + "@typescript-eslint/no-mixed-enums": "off", |
| 82 | + "@typescript-eslint/no-redundant-type-constituents": "off", |
| 83 | + "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off", |
| 84 | + "@typescript-eslint/no-unnecessary-template-expression": "off", |
| 85 | + "@typescript-eslint/no-unnecessary-type-arguments": "off", |
| 86 | + "@typescript-eslint/no-unnecessary-type-assertion": "off", |
| 87 | + "@typescript-eslint/no-unsafe-argument": "off", |
| 88 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 89 | + "@typescript-eslint/no-unsafe-call": "off", |
| 90 | + "@typescript-eslint/no-unsafe-enum-comparison": "off", |
| 91 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 92 | + "@typescript-eslint/no-unsafe-return": "off", |
| 93 | + "@typescript-eslint/no-unsafe-type-assertion": "off", |
| 94 | + "@typescript-eslint/no-unsafe-unary-minus": "off", |
| 95 | + "@typescript-eslint/non-nullable-type-assertion-style": "off", |
| 96 | + "@typescript-eslint/only-throw-error": "off", |
| 97 | + "@typescript-eslint/prefer-includes": "off", |
| 98 | + "@typescript-eslint/prefer-nullish-coalescing": "off", |
| 99 | + "@typescript-eslint/prefer-optional-chain": "off", |
| 100 | + "@typescript-eslint/prefer-promise-reject-errors": "off", |
| 101 | + "@typescript-eslint/prefer-reduce-type-parameter": "off", |
| 102 | + "@typescript-eslint/prefer-return-this-type": "off", |
| 103 | + "@typescript-eslint/promise-function-async": "off", |
| 104 | + "@typescript-eslint/related-getter-setter-pairs": "off", |
| 105 | + "@typescript-eslint/require-array-sort-compare": "off", |
| 106 | + "@typescript-eslint/require-await": "off", |
| 107 | + "@typescript-eslint/restrict-plus-operands": "off", |
| 108 | + "@typescript-eslint/restrict-template-expressions": "off", |
| 109 | + "@typescript-eslint/return-await": "off", |
| 110 | + "@typescript-eslint/strict-boolean-expressions": "off", |
| 111 | + "@typescript-eslint/switch-exhaustiveness-check": "off", |
| 112 | + "@typescript-eslint/unbound-method": "off", |
| 113 | + "@typescript-eslint/use-unknown-in-catch-callback-variable": "off" |
| 114 | + } |
113 | 115 | } |
0 commit comments