@4mbl/lint 0.0.0-alpha.e651e24 → 0.0.0-alpha.ec90118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @4mbl/lint
2
2
 
3
+ ## 1.0.0-beta.11
4
+
5
+ ### Minor Changes
6
+
7
+ - 20b3dae: Use native rules for React when possible
8
+
9
+ ## 1.0.0-beta.10
10
+
11
+ ### Minor Changes
12
+
13
+ - 007a287: Configure more rules to reduce noise
14
+ - 007a287: Use native only-export-components rule instead of js plugin
15
+ - 007a287: Use correct namespace for Next.js rules
16
+
17
+ ## 1.0.0-beta.9
18
+
19
+ ### Minor Changes
20
+
21
+ - 491164e: Add --help flag to cli
22
+ - 491164e: Fallback to Oxlint config lookup if no preset is passed to CLI and Oxlint config exists within working directory.
23
+
24
+ ## 1.0.0-beta.8
25
+
26
+ ### Minor Changes
27
+
28
+ - a78f42b: Configure rules to reduce noise
29
+
30
+ ## 1.0.0-beta.7
31
+
32
+ ### Minor Changes
33
+
34
+ - 7c82f22: Upgrade dependencies
35
+
36
+ ## 1.0.0-beta.6
37
+
38
+ ### Minor Changes
39
+
40
+ - 0422e86: Upgrade dependencies
41
+
42
+ ## 1.0.0-beta.5
43
+
44
+ ### Minor Changes
45
+
46
+ - 125b851: Enable most rule categories
47
+ - 473bad0: Upgrade dependencies
48
+
3
49
  ## 1.0.0-beta.4
4
50
 
5
51
  ### Minor Changes
package/bin/cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { spawnSync } from 'node:child_process';
4
+ import { existsSync } from 'node:fs';
4
5
  import path from 'node:path';
5
6
  import { fileURLToPath } from 'node:url';
6
7
 
@@ -15,11 +16,38 @@ const wrapperArgs =
15
16
  separatorIndex === -1 ? rawArgs : rawArgs.slice(0, separatorIndex);
16
17
  const toolArgs = separatorIndex === -1 ? [] : rawArgs.slice(separatorIndex + 1);
17
18
 
19
+ if (wrapperArgs.includes('--help') || rawArgs.includes('-h')) {
20
+ console.log(`
21
+ Usage:
22
+ lint [options] -- [oxlint options]
23
+
24
+ Options:
25
+ --preset <name> Use a preset config (default: base if no config within cwd)
26
+
27
+ Examples:
28
+ lint
29
+ lint --preset node
30
+ lint -- src --fix
31
+
32
+ Notes:
33
+ Everything after "--" is passed directly to oxlint.
34
+ `);
35
+
36
+ process.exit(0);
37
+ }
38
+
18
39
  const presetArgIndex = wrapperArgs.findIndex((a) => a === '--preset');
40
+
19
41
  const presetName =
20
- presetArgIndex !== -1 ? wrapperArgs[presetArgIndex + 1] : 'base';
42
+ presetArgIndex !== -1
43
+ ? wrapperArgs[presetArgIndex + 1]
44
+ : !existsSync('./oxlint.config.ts') && !existsSync('./.oxlintrc.json')
45
+ ? 'base'
46
+ : undefined;
21
47
 
22
- const configPath = path.resolve(__dirname, `../dist/${presetName}.js`);
48
+ const configPath = presetName
49
+ ? path.resolve(__dirname, `../dist/${presetName}.js`)
50
+ : undefined;
23
51
 
24
52
  const hasPath = toolArgs.some((a) => !a.startsWith('-'));
25
53
  const hasMaxWarn = toolArgs.some((a) => a.startsWith('--max-warnings'));
@@ -28,7 +56,7 @@ const hasReportUnused = toolArgs.some((a) =>
28
56
  );
29
57
 
30
58
  const finalArgs = [
31
- '--config',
59
+ configPath ? '--config' : undefined,
32
60
  configPath,
33
61
  hasPath ? undefined : 'src',
34
62
  hasMaxWarn ? undefined : '--max-warnings=0',
package/dist/base.d.ts CHANGED
@@ -4,7 +4,13 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
4
4
  plugins: ("unicorn" | "typescript")[];
5
5
  jsPlugins: never[];
6
6
  categories: {
7
- correctness: "off";
7
+ correctness: "error";
8
+ suspicious: "warn";
9
+ pedantic: "off";
10
+ perf: "warn";
11
+ style: "warn";
12
+ restriction: "warn";
13
+ nursery: "off";
8
14
  };
9
15
  env: {
10
16
  builtin: true;
@@ -13,118 +19,157 @@ declare function baseConfig(_options?: Partial<BaseOptions>): {
13
19
  typeAware: true;
14
20
  };
15
21
  rules: {
16
- 'constructor-super': "error";
17
- 'for-direction': "error";
18
- 'getter-return': "error";
19
- 'no-async-promise-executor': "error";
20
- 'no-case-declarations': "error";
21
- 'no-class-assign': "error";
22
- 'no-compare-neg-zero': "error";
23
- 'no-cond-assign': "error";
24
- 'no-const-assign': "error";
25
- 'no-constant-binary-expression': "error";
26
- 'no-constant-condition': "error";
27
- 'no-control-regex': "error";
28
- 'no-debugger': "error";
29
- 'no-delete-var': "error";
30
- 'no-dupe-class-members': "error";
31
- 'no-dupe-else-if': "error";
32
- 'no-dupe-keys': "error";
33
- 'no-duplicate-case': "error";
34
- 'no-empty': "error";
35
- 'no-empty-character-class': "error";
36
- 'no-empty-pattern': "error";
37
- 'no-empty-static-block': "error";
38
- 'no-ex-assign': "error";
39
- 'no-extra-boolean-cast': "error";
40
- 'no-fallthrough': "error";
41
- 'no-func-assign': "error";
42
- 'no-global-assign': "error";
43
- 'no-import-assign': "error";
44
- 'no-invalid-regexp': "error";
45
- 'no-irregular-whitespace': "error";
46
- 'no-loss-of-precision': "error";
47
- 'no-misleading-character-class': "error";
48
- 'no-new-native-nonconstructor': "error";
49
- 'no-nonoctal-decimal-escape': "error";
50
- 'no-obj-calls': "error";
51
- 'no-prototype-builtins': "error";
52
- 'no-redeclare': "error";
53
- 'no-regex-spaces': "error";
54
- 'no-self-assign': "error";
55
- 'no-setter-return': "error";
56
- 'no-shadow-restricted-names': "error";
57
- 'no-sparse-arrays': "error";
58
- 'no-this-before-super': "error";
59
- 'no-undef': "error";
60
- 'no-unexpected-multiline': "error";
61
- 'no-unreachable': "error";
62
- 'no-unsafe-finally': "error";
63
- 'no-unsafe-negation': "error";
64
- 'no-unsafe-optional-chaining': "error";
65
- 'no-unused-labels': "error";
66
- 'no-unused-private-class-members': "error";
67
- 'no-unused-vars': "warn";
68
- 'no-useless-backreference': "error";
69
- 'no-useless-catch': "error";
70
- 'no-useless-escape': "error";
71
- 'no-with': "error";
72
- 'require-yield': "error";
73
- 'use-isnan': "error";
74
- 'valid-typeof': "error";
75
- '@typescript-eslint/ban-ts-comment': "error";
76
- 'no-array-constructor': "error";
77
- '@typescript-eslint/no-duplicate-enum-values': "error";
78
- '@typescript-eslint/no-empty-object-type': "error";
79
- '@typescript-eslint/no-explicit-any': "error";
80
- '@typescript-eslint/no-extra-non-null-assertion': "error";
81
- '@typescript-eslint/no-misused-new': "error";
82
- '@typescript-eslint/no-namespace': "error";
83
- '@typescript-eslint/no-non-null-asserted-optional-chain': "error";
84
- '@typescript-eslint/no-require-imports': "error";
85
- '@typescript-eslint/no-this-alias': "error";
86
- '@typescript-eslint/no-unnecessary-type-constraint': "error";
87
- '@typescript-eslint/no-unsafe-declaration-merging': "error";
88
- '@typescript-eslint/no-unsafe-function-type': "error";
89
- 'no-unused-expressions': "warn";
90
- '@typescript-eslint/no-wrapper-object-types': "error";
91
- '@typescript-eslint/prefer-as-const': "error";
92
- '@typescript-eslint/prefer-namespace-keyword': "error";
93
- '@typescript-eslint/triple-slash-reference': "error";
22
+ 'eslint/no-var': "warn";
23
+ 'eslint/prefer-const': "error";
24
+ 'eslint/prefer-rest-params': "error";
25
+ 'eslint/prefer-spread': "error";
26
+ 'eslint/no-async-promise-executor': "error";
27
+ 'eslint/no-case-declarations': "error";
28
+ 'eslint/no-class-assign': "error";
29
+ 'eslint/no-compare-neg-zero': "error";
30
+ 'eslint/no-cond-assign': "error";
31
+ 'eslint/no-const-assign': "error";
32
+ 'eslint/no-constant-binary-expression': "error";
33
+ 'eslint/no-constant-condition': "error";
34
+ 'eslint/no-control-regex': "error";
35
+ 'eslint/no-debugger': "error";
36
+ 'eslint/no-delete-var': "error";
37
+ 'eslint/no-dupe-else-if': "error";
38
+ 'eslint/no-duplicate-case': "error";
39
+ 'eslint/no-empty': "error";
40
+ 'eslint/no-empty-character-class': "error";
41
+ 'eslint/no-empty-pattern': "error";
42
+ 'eslint/no-empty-static-block': "error";
43
+ 'eslint/no-ex-assign': "error";
44
+ 'eslint/no-extra-boolean-cast': "error";
45
+ 'eslint/no-fallthrough': ["error", {
46
+ allowEmptyCase: boolean;
47
+ }];
48
+ 'eslint/no-func-assign': "error";
49
+ 'eslint/no-global-assign': "error";
50
+ 'eslint/no-import-assign': "error";
51
+ 'eslint/no-invalid-regexp': "error";
52
+ 'eslint/no-irregular-whitespace': "error";
53
+ 'eslint/no-loss-of-precision': "error";
54
+ 'eslint/no-misleading-character-class': "error";
55
+ 'eslint/no-nonoctal-decimal-escape': "error";
56
+ 'eslint/no-obj-calls': "error";
57
+ 'eslint/no-prototype-builtins': "error";
58
+ 'eslint/no-redeclare': "error";
59
+ 'eslint/no-regex-spaces': "error";
60
+ 'eslint/no-self-assign': "error";
61
+ 'eslint/no-shadow-restricted-names': "error";
62
+ 'eslint/no-sparse-arrays': "error";
63
+ 'eslint/no-unexpected-multiline': "error";
64
+ 'eslint/no-unsafe-finally': "error";
65
+ 'eslint/no-unsafe-negation': "error";
66
+ 'eslint/no-unsafe-optional-chaining': "error";
67
+ 'eslint/no-unused-labels': "error";
68
+ 'eslint/no-unused-private-class-members': "error";
69
+ 'eslint/no-unused-vars': "warn";
70
+ 'eslint/no-useless-backreference': "error";
71
+ 'eslint/no-useless-catch': "error";
72
+ 'eslint/no-useless-escape': "error";
73
+ 'eslint/require-yield': "error";
74
+ 'eslint/use-isnan': "error";
75
+ 'eslint/valid-typeof': "error";
76
+ 'eslint/no-unused-expressions': "warn";
77
+ 'typescript/ban-ts-comment': "error";
78
+ 'typescript/no-duplicate-enum-values': "off";
79
+ 'typescript/no-empty-object-type': "error";
80
+ 'typescript/no-explicit-any': "error";
81
+ 'typescript/no-extra-non-null-assertion': "error";
82
+ 'typescript/no-misused-new': "error";
83
+ 'typescript/no-namespace': "error";
84
+ 'typescript/no-non-null-asserted-optional-chain': "error";
85
+ 'typescript/no-require-imports': "error";
86
+ 'typescript/no-this-alias': "error";
87
+ 'typescript/no-unnecessary-type-constraint': "error";
88
+ 'typescript/no-unsafe-declaration-merging': "error";
89
+ 'typescript/no-unsafe-function-type': "error";
90
+ 'typescript/no-wrapper-object-types': "error";
91
+ 'typescript/prefer-as-const': "error";
92
+ 'typescript/triple-slash-reference': "error";
93
+ 'typescript/explicit-member-accessibility': ["warn", {
94
+ accessibility: string;
95
+ }];
96
+ 'eslint/id-length': "off";
97
+ 'eslint/sort-keys': "off";
98
+ 'eslint/capitalized-comments': "off";
99
+ 'eslint/func-style': "off";
100
+ 'eslint/complexity': "off";
101
+ 'eslint/max-params': "off";
102
+ 'eslint/no-ternary': "off";
103
+ 'eslint/curly': "warn";
104
+ 'typescript/consistent-type-definitions': ["warn", string];
105
+ 'eslint/max-statements': "off";
106
+ 'typescript/consistent-return': "off";
107
+ 'unicorn/switch-case-braces': "warn";
108
+ 'typescript/prefer-regexp-exec': "warn";
109
+ 'eslint/init-declarations': "off";
110
+ 'unicorn/no-null': "off";
111
+ 'eslint/no-undefined': "off";
112
+ 'eslint/no-console': "off";
113
+ 'eslint/no-continue': "off";
114
+ 'eslint/no-implicit-coercion': ["warn", {
115
+ allow: string[];
116
+ }];
117
+ 'eslint/no-plusplus': "off";
118
+ 'eslint/no-void': "off";
119
+ 'eslint/no-nested-ternary': "off";
120
+ 'eslint/no-empty-function': ["warn", {
121
+ allow: string[];
122
+ }];
123
+ 'unicorn/no-instanceof-builtins': "off";
124
+ 'unicorn/prefer-spread': "off";
125
+ 'eslint/new-cap': "off";
126
+ 'unicorn/no-await-expression-member': "off";
127
+ 'eslint/no-duplicate-imports': ["warn", {
128
+ allowSeparateTypeImports: boolean;
129
+ }];
130
+ 'import/no-named-export': "off";
131
+ 'import/no-default-export': "off";
132
+ 'import/prefer-default-export': "off";
133
+ 'import/no-namespace': "off";
134
+ 'import/exports-last': "off";
135
+ 'import/no-unassigned-import': "off";
136
+ 'unicorn/no-new-array': "off";
137
+ 'eslint/no-array-constructor': "warn";
138
+ 'typescript/explicit-function-return-type': "off";
139
+ 'typescript/explicit-module-boundary-types': "off";
140
+ 'unicorn/no-anonymous-default-export': "off";
141
+ 'eslint/sort-imports': "off";
142
+ 'eslint/no-magic-numbers': "off";
143
+ 'unicorn/prefer-modern-math-apis': "off";
144
+ 'eslint/no-use-before-define': "off";
145
+ 'eslint/constructor-super': "off";
146
+ 'eslint/getter-return': "off";
147
+ 'eslint/no-dupe-class-members': "off";
148
+ 'eslint/no-dupe-keys': "off";
149
+ 'eslint/no-new-native-nonconstructor': "off";
150
+ 'eslint/no-setter-return': "off";
151
+ 'eslint/no-this-before-super': "off";
152
+ 'eslint/no-undef': "off";
153
+ 'eslint/no-unreachable': "off";
154
+ 'eslint/no-with': "off";
155
+ 'unicorn/no-nested-ternary': "off";
156
+ 'oxc/no-optional-chaining': "off";
157
+ 'oxc/no-rest-spread-properties': "off";
158
+ 'oxc/no-async-await': "off";
94
159
  };
95
- overrides: {
96
- files: string[];
97
- rules: {
98
- 'constructor-super': "off";
99
- 'getter-return': "off";
100
- 'no-class-assign': "off";
101
- 'no-const-assign': "off";
102
- 'no-dupe-class-members': "off";
103
- 'no-dupe-keys': "off";
104
- 'no-func-assign': "off";
105
- 'no-import-assign': "off";
106
- 'no-new-native-nonconstructor': "off";
107
- 'no-obj-calls': "off";
108
- 'no-redeclare': "off";
109
- 'no-setter-return': "off";
110
- 'no-this-before-super': "off";
111
- 'no-undef': "off";
112
- 'no-unreachable': "off";
113
- 'no-unsafe-negation': "off";
114
- 'no-var': "error";
115
- 'no-with': "off";
116
- 'prefer-const': "error";
117
- 'prefer-rest-params': "error";
118
- 'prefer-spread': "error";
119
- };
120
- }[];
121
160
  };
122
161
  export { type OxlintConfig, defineConfig, baseConfig };
123
162
  declare const _default: {
124
163
  plugins: ("unicorn" | "typescript")[];
125
164
  jsPlugins: never[];
126
165
  categories: {
127
- correctness: "off";
166
+ correctness: "error";
167
+ suspicious: "warn";
168
+ pedantic: "off";
169
+ perf: "warn";
170
+ style: "warn";
171
+ restriction: "warn";
172
+ nursery: "off";
128
173
  };
129
174
  env: {
130
175
  builtin: true;
@@ -133,111 +178,144 @@ declare const _default: {
133
178
  typeAware: true;
134
179
  };
135
180
  rules: {
136
- 'constructor-super': "error";
137
- 'for-direction': "error";
138
- 'getter-return': "error";
139
- 'no-async-promise-executor': "error";
140
- 'no-case-declarations': "error";
141
- 'no-class-assign': "error";
142
- 'no-compare-neg-zero': "error";
143
- 'no-cond-assign': "error";
144
- 'no-const-assign': "error";
145
- 'no-constant-binary-expression': "error";
146
- 'no-constant-condition': "error";
147
- 'no-control-regex': "error";
148
- 'no-debugger': "error";
149
- 'no-delete-var': "error";
150
- 'no-dupe-class-members': "error";
151
- 'no-dupe-else-if': "error";
152
- 'no-dupe-keys': "error";
153
- 'no-duplicate-case': "error";
154
- 'no-empty': "error";
155
- 'no-empty-character-class': "error";
156
- 'no-empty-pattern': "error";
157
- 'no-empty-static-block': "error";
158
- 'no-ex-assign': "error";
159
- 'no-extra-boolean-cast': "error";
160
- 'no-fallthrough': "error";
161
- 'no-func-assign': "error";
162
- 'no-global-assign': "error";
163
- 'no-import-assign': "error";
164
- 'no-invalid-regexp': "error";
165
- 'no-irregular-whitespace': "error";
166
- 'no-loss-of-precision': "error";
167
- 'no-misleading-character-class': "error";
168
- 'no-new-native-nonconstructor': "error";
169
- 'no-nonoctal-decimal-escape': "error";
170
- 'no-obj-calls': "error";
171
- 'no-prototype-builtins': "error";
172
- 'no-redeclare': "error";
173
- 'no-regex-spaces': "error";
174
- 'no-self-assign': "error";
175
- 'no-setter-return': "error";
176
- 'no-shadow-restricted-names': "error";
177
- 'no-sparse-arrays': "error";
178
- 'no-this-before-super': "error";
179
- 'no-undef': "error";
180
- 'no-unexpected-multiline': "error";
181
- 'no-unreachable': "error";
182
- 'no-unsafe-finally': "error";
183
- 'no-unsafe-negation': "error";
184
- 'no-unsafe-optional-chaining': "error";
185
- 'no-unused-labels': "error";
186
- 'no-unused-private-class-members': "error";
187
- 'no-unused-vars': "warn";
188
- 'no-useless-backreference': "error";
189
- 'no-useless-catch': "error";
190
- 'no-useless-escape': "error";
191
- 'no-with': "error";
192
- 'require-yield': "error";
193
- 'use-isnan': "error";
194
- 'valid-typeof': "error";
195
- '@typescript-eslint/ban-ts-comment': "error";
196
- 'no-array-constructor': "error";
197
- '@typescript-eslint/no-duplicate-enum-values': "error";
198
- '@typescript-eslint/no-empty-object-type': "error";
199
- '@typescript-eslint/no-explicit-any': "error";
200
- '@typescript-eslint/no-extra-non-null-assertion': "error";
201
- '@typescript-eslint/no-misused-new': "error";
202
- '@typescript-eslint/no-namespace': "error";
203
- '@typescript-eslint/no-non-null-asserted-optional-chain': "error";
204
- '@typescript-eslint/no-require-imports': "error";
205
- '@typescript-eslint/no-this-alias': "error";
206
- '@typescript-eslint/no-unnecessary-type-constraint': "error";
207
- '@typescript-eslint/no-unsafe-declaration-merging': "error";
208
- '@typescript-eslint/no-unsafe-function-type': "error";
209
- 'no-unused-expressions': "warn";
210
- '@typescript-eslint/no-wrapper-object-types': "error";
211
- '@typescript-eslint/prefer-as-const': "error";
212
- '@typescript-eslint/prefer-namespace-keyword': "error";
213
- '@typescript-eslint/triple-slash-reference': "error";
181
+ 'eslint/no-var': "warn";
182
+ 'eslint/prefer-const': "error";
183
+ 'eslint/prefer-rest-params': "error";
184
+ 'eslint/prefer-spread': "error";
185
+ 'eslint/no-async-promise-executor': "error";
186
+ 'eslint/no-case-declarations': "error";
187
+ 'eslint/no-class-assign': "error";
188
+ 'eslint/no-compare-neg-zero': "error";
189
+ 'eslint/no-cond-assign': "error";
190
+ 'eslint/no-const-assign': "error";
191
+ 'eslint/no-constant-binary-expression': "error";
192
+ 'eslint/no-constant-condition': "error";
193
+ 'eslint/no-control-regex': "error";
194
+ 'eslint/no-debugger': "error";
195
+ 'eslint/no-delete-var': "error";
196
+ 'eslint/no-dupe-else-if': "error";
197
+ 'eslint/no-duplicate-case': "error";
198
+ 'eslint/no-empty': "error";
199
+ 'eslint/no-empty-character-class': "error";
200
+ 'eslint/no-empty-pattern': "error";
201
+ 'eslint/no-empty-static-block': "error";
202
+ 'eslint/no-ex-assign': "error";
203
+ 'eslint/no-extra-boolean-cast': "error";
204
+ 'eslint/no-fallthrough': ["error", {
205
+ allowEmptyCase: boolean;
206
+ }];
207
+ 'eslint/no-func-assign': "error";
208
+ 'eslint/no-global-assign': "error";
209
+ 'eslint/no-import-assign': "error";
210
+ 'eslint/no-invalid-regexp': "error";
211
+ 'eslint/no-irregular-whitespace': "error";
212
+ 'eslint/no-loss-of-precision': "error";
213
+ 'eslint/no-misleading-character-class': "error";
214
+ 'eslint/no-nonoctal-decimal-escape': "error";
215
+ 'eslint/no-obj-calls': "error";
216
+ 'eslint/no-prototype-builtins': "error";
217
+ 'eslint/no-redeclare': "error";
218
+ 'eslint/no-regex-spaces': "error";
219
+ 'eslint/no-self-assign': "error";
220
+ 'eslint/no-shadow-restricted-names': "error";
221
+ 'eslint/no-sparse-arrays': "error";
222
+ 'eslint/no-unexpected-multiline': "error";
223
+ 'eslint/no-unsafe-finally': "error";
224
+ 'eslint/no-unsafe-negation': "error";
225
+ 'eslint/no-unsafe-optional-chaining': "error";
226
+ 'eslint/no-unused-labels': "error";
227
+ 'eslint/no-unused-private-class-members': "error";
228
+ 'eslint/no-unused-vars': "warn";
229
+ 'eslint/no-useless-backreference': "error";
230
+ 'eslint/no-useless-catch': "error";
231
+ 'eslint/no-useless-escape': "error";
232
+ 'eslint/require-yield': "error";
233
+ 'eslint/use-isnan': "error";
234
+ 'eslint/valid-typeof': "error";
235
+ 'eslint/no-unused-expressions': "warn";
236
+ 'typescript/ban-ts-comment': "error";
237
+ 'typescript/no-duplicate-enum-values': "off";
238
+ 'typescript/no-empty-object-type': "error";
239
+ 'typescript/no-explicit-any': "error";
240
+ 'typescript/no-extra-non-null-assertion': "error";
241
+ 'typescript/no-misused-new': "error";
242
+ 'typescript/no-namespace': "error";
243
+ 'typescript/no-non-null-asserted-optional-chain': "error";
244
+ 'typescript/no-require-imports': "error";
245
+ 'typescript/no-this-alias': "error";
246
+ 'typescript/no-unnecessary-type-constraint': "error";
247
+ 'typescript/no-unsafe-declaration-merging': "error";
248
+ 'typescript/no-unsafe-function-type': "error";
249
+ 'typescript/no-wrapper-object-types': "error";
250
+ 'typescript/prefer-as-const': "error";
251
+ 'typescript/triple-slash-reference': "error";
252
+ 'typescript/explicit-member-accessibility': ["warn", {
253
+ accessibility: string;
254
+ }];
255
+ 'eslint/id-length': "off";
256
+ 'eslint/sort-keys': "off";
257
+ 'eslint/capitalized-comments': "off";
258
+ 'eslint/func-style': "off";
259
+ 'eslint/complexity': "off";
260
+ 'eslint/max-params': "off";
261
+ 'eslint/no-ternary': "off";
262
+ 'eslint/curly': "warn";
263
+ 'typescript/consistent-type-definitions': ["warn", string];
264
+ 'eslint/max-statements': "off";
265
+ 'typescript/consistent-return': "off";
266
+ 'unicorn/switch-case-braces': "warn";
267
+ 'typescript/prefer-regexp-exec': "warn";
268
+ 'eslint/init-declarations': "off";
269
+ 'unicorn/no-null': "off";
270
+ 'eslint/no-undefined': "off";
271
+ 'eslint/no-console': "off";
272
+ 'eslint/no-continue': "off";
273
+ 'eslint/no-implicit-coercion': ["warn", {
274
+ allow: string[];
275
+ }];
276
+ 'eslint/no-plusplus': "off";
277
+ 'eslint/no-void': "off";
278
+ 'eslint/no-nested-ternary': "off";
279
+ 'eslint/no-empty-function': ["warn", {
280
+ allow: string[];
281
+ }];
282
+ 'unicorn/no-instanceof-builtins': "off";
283
+ 'unicorn/prefer-spread': "off";
284
+ 'eslint/new-cap': "off";
285
+ 'unicorn/no-await-expression-member': "off";
286
+ 'eslint/no-duplicate-imports': ["warn", {
287
+ allowSeparateTypeImports: boolean;
288
+ }];
289
+ 'import/no-named-export': "off";
290
+ 'import/no-default-export': "off";
291
+ 'import/prefer-default-export': "off";
292
+ 'import/no-namespace': "off";
293
+ 'import/exports-last': "off";
294
+ 'import/no-unassigned-import': "off";
295
+ 'unicorn/no-new-array': "off";
296
+ 'eslint/no-array-constructor': "warn";
297
+ 'typescript/explicit-function-return-type': "off";
298
+ 'typescript/explicit-module-boundary-types': "off";
299
+ 'unicorn/no-anonymous-default-export': "off";
300
+ 'eslint/sort-imports': "off";
301
+ 'eslint/no-magic-numbers': "off";
302
+ 'unicorn/prefer-modern-math-apis': "off";
303
+ 'eslint/no-use-before-define': "off";
304
+ 'eslint/constructor-super': "off";
305
+ 'eslint/getter-return': "off";
306
+ 'eslint/no-dupe-class-members': "off";
307
+ 'eslint/no-dupe-keys': "off";
308
+ 'eslint/no-new-native-nonconstructor': "off";
309
+ 'eslint/no-setter-return': "off";
310
+ 'eslint/no-this-before-super': "off";
311
+ 'eslint/no-undef': "off";
312
+ 'eslint/no-unreachable': "off";
313
+ 'eslint/no-with': "off";
314
+ 'unicorn/no-nested-ternary': "off";
315
+ 'oxc/no-optional-chaining': "off";
316
+ 'oxc/no-rest-spread-properties': "off";
317
+ 'oxc/no-async-await': "off";
214
318
  };
215
- overrides: {
216
- files: string[];
217
- rules: {
218
- 'constructor-super': "off";
219
- 'getter-return': "off";
220
- 'no-class-assign': "off";
221
- 'no-const-assign': "off";
222
- 'no-dupe-class-members': "off";
223
- 'no-dupe-keys': "off";
224
- 'no-func-assign': "off";
225
- 'no-import-assign': "off";
226
- 'no-new-native-nonconstructor': "off";
227
- 'no-obj-calls': "off";
228
- 'no-redeclare': "off";
229
- 'no-setter-return': "off";
230
- 'no-this-before-super': "off";
231
- 'no-undef': "off";
232
- 'no-unreachable': "off";
233
- 'no-unsafe-negation': "off";
234
- 'no-var': "error";
235
- 'no-with': "off";
236
- 'prefer-const': "error";
237
- 'prefer-rest-params': "error";
238
- 'prefer-spread': "error";
239
- };
240
- }[];
241
319
  };
242
320
  export default _default;
243
321
  //# sourceMappingURL=base.d.ts.map