@4mbl/lint 0.0.0-alpha.7c97408 → 0.0.0-alpha.8d5707f

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