@4mbl/lint 1.0.0-beta.27 → 1.0.0-beta.28

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,11 @@
1
1
  # @4mbl/lint
2
2
 
3
+ ## 1.0.0-beta.28
4
+
5
+ ### Patch Changes
6
+
7
+ - cd19ade: Preserve all config properties when extending presets
8
+
3
9
  ## 1.0.0-beta.27
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,4 @@
1
+ import { type OxlintConfig } from 'oxlint';
2
+ declare function extendConfig(parent: OxlintConfig, config: Omit<OxlintConfig, 'extends'>): OxlintConfig;
3
+ export { extendConfig };
4
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,iBAAS,YAAY,CACnB,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GACpC,YAAY,CAmBd;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
package/dist/config.js ADDED
@@ -0,0 +1,23 @@
1
+ import { defineConfig } from 'oxlint';
2
+ function extendConfig(parent, config) {
3
+ return defineConfig({
4
+ ...config,
5
+ extends: [parent],
6
+ categories: { ...parent.categories, ...config.categories },
7
+ env: { ...parent.env, ...config.env },
8
+ globals: { ...parent.globals, ...config.globals },
9
+ ignorePatterns: [
10
+ ...(parent.ignorePatterns ?? []),
11
+ ...(config.ignorePatterns ?? []),
12
+ ],
13
+ jsPlugins: [
14
+ ...(parent.jsPlugins ?? []),
15
+ ...(config.jsPlugins ?? []),
16
+ ],
17
+ options: { ...parent.options, ...config.options },
18
+ plugins: config.plugins ?? [],
19
+ settings: { ...parent.settings, ...config.settings },
20
+ });
21
+ }
22
+ export { extendConfig };
23
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AAEzD,SAAS,YAAY,CACnB,MAAoB,EACpB,MAAqC;IAErC,OAAO,YAAY,CAAC;QAClB,GAAG,MAAM;QACT,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,UAAU,EAAE,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE;QAC1D,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE;QACrC,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE;QACjD,cAAc,EAAE;YACd,GAAG,CAAC,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;YAChC,GAAG,CAAC,MAAM,CAAC,cAAc,IAAI,EAAE,CAAC;SACjC;QACD,SAAS,EAAE;YACT,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;YAC3B,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;SAC5B;QACD,OAAO,EAAE,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE;QACjD,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;QAC7B,QAAQ,EAAE,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE;KACrD,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
package/dist/next.d.ts CHANGED
@@ -11,546 +11,8 @@ type NextOptions = ReactOptions & {
11
11
  */
12
12
  uiPath: string | null;
13
13
  };
14
- declare function nextConfig(options?: Partial<NextOptions>): {
15
- extends: {
16
- extends: {
17
- plugins: ("import" | "typescript" | "unicorn")[];
18
- jsPlugins: never[];
19
- categories: {
20
- correctness: "error";
21
- suspicious: "warn";
22
- pedantic: "off";
23
- perf: "warn";
24
- style: "warn";
25
- restriction: "warn";
26
- nursery: "off";
27
- };
28
- env: {
29
- builtin: true;
30
- };
31
- options: {
32
- typeAware: true;
33
- typeCheck: true;
34
- };
35
- rules: {
36
- 'eslint/no-var': "warn";
37
- 'eslint/prefer-const': "error";
38
- 'eslint/prefer-rest-params': "error";
39
- 'eslint/prefer-spread': "error";
40
- 'eslint/no-async-promise-executor': "error";
41
- 'eslint/no-case-declarations': "error";
42
- 'eslint/no-class-assign': "error";
43
- 'eslint/no-compare-neg-zero': "error";
44
- 'eslint/no-cond-assign': "error";
45
- 'eslint/no-const-assign': "error";
46
- 'eslint/no-constant-binary-expression': "error";
47
- 'eslint/no-constant-condition': "error";
48
- 'eslint/no-control-regex': "error";
49
- 'eslint/no-debugger': "error";
50
- 'eslint/no-delete-var': "error";
51
- 'eslint/no-dupe-else-if': "error";
52
- 'eslint/no-duplicate-case': "error";
53
- 'eslint/no-empty': "error";
54
- 'eslint/no-empty-character-class': "error";
55
- 'eslint/no-empty-pattern': "error";
56
- 'eslint/no-empty-static-block': "error";
57
- 'eslint/no-ex-assign': "error";
58
- 'eslint/no-extra-boolean-cast': "error";
59
- 'eslint/no-fallthrough': ["error", {
60
- allowEmptyCase: boolean;
61
- }];
62
- 'eslint/no-func-assign': "error";
63
- 'eslint/no-global-assign': "error";
64
- 'eslint/no-import-assign': "error";
65
- 'eslint/no-invalid-regexp': "error";
66
- 'eslint/no-irregular-whitespace': "error";
67
- 'eslint/no-loss-of-precision': "error";
68
- 'eslint/no-misleading-character-class': "error";
69
- 'eslint/no-nonoctal-decimal-escape': "error";
70
- 'eslint/no-obj-calls': "error";
71
- 'eslint/no-prototype-builtins': "error";
72
- 'eslint/no-redeclare': "error";
73
- 'eslint/no-regex-spaces': "error";
74
- 'eslint/no-self-assign': "error";
75
- 'eslint/no-shadow-restricted-names': "error";
76
- 'eslint/no-sparse-arrays': "error";
77
- 'eslint/no-unexpected-multiline': "error";
78
- 'eslint/no-unsafe-finally': "error";
79
- 'eslint/no-unsafe-negation': "error";
80
- 'eslint/no-unsafe-optional-chaining': "error";
81
- 'eslint/no-unused-labels': "error";
82
- 'eslint/no-unused-private-class-members': "error";
83
- 'eslint/no-unused-vars': "warn";
84
- 'eslint/no-useless-backreference': "error";
85
- 'eslint/no-useless-catch': "error";
86
- 'eslint/no-useless-escape': "error";
87
- 'eslint/require-yield': "error";
88
- 'eslint/use-isnan': "error";
89
- 'eslint/valid-typeof': "error";
90
- 'eslint/no-unused-expressions': "warn";
91
- 'typescript/ban-ts-comment': "error";
92
- 'typescript/no-duplicate-enum-values': "off";
93
- 'typescript/no-empty-object-type': "error";
94
- 'typescript/no-explicit-any': "error";
95
- 'typescript/no-extra-non-null-assertion': "error";
96
- 'typescript/no-misused-new': "error";
97
- 'typescript/no-namespace': "error";
98
- 'typescript/no-non-null-asserted-optional-chain': "error";
99
- 'typescript/no-require-imports': "error";
100
- 'typescript/no-this-alias': "error";
101
- 'typescript/no-unnecessary-type-constraint': "error";
102
- 'typescript/no-unsafe-declaration-merging': "error";
103
- 'typescript/no-unsafe-function-type': "error";
104
- 'typescript/no-wrapper-object-types': "error";
105
- 'typescript/prefer-as-const': "error";
106
- 'typescript/triple-slash-reference': "error";
107
- 'typescript/explicit-member-accessibility': ["warn", {
108
- accessibility: "no-public";
109
- }];
110
- 'eslint/id-length': "off";
111
- 'eslint/sort-keys': "off";
112
- 'eslint/capitalized-comments': "off";
113
- 'eslint/func-style': "off";
114
- 'eslint/complexity': "off";
115
- 'eslint/max-params': "off";
116
- 'eslint/no-ternary': "off";
117
- 'eslint/curly': "warn";
118
- 'typescript/consistent-type-definitions': ["warn", "type"];
119
- 'eslint/max-statements': "off";
120
- 'typescript/consistent-return': "off";
121
- 'unicorn/switch-case-braces': "warn";
122
- 'typescript/prefer-regexp-exec': "warn";
123
- 'eslint/init-declarations': "off";
124
- 'unicorn/no-null': "off";
125
- 'eslint/no-undefined': "off";
126
- 'eslint/no-console': "off";
127
- 'eslint/no-continue': "off";
128
- 'eslint/no-implicit-coercion': ["warn", {
129
- allow: string[];
130
- }];
131
- 'eslint/no-plusplus': "off";
132
- 'eslint/no-void': "off";
133
- 'eslint/no-nested-ternary': "off";
134
- 'eslint/no-empty-function': ["warn", {
135
- allow: string[];
136
- }];
137
- 'unicorn/no-instanceof-builtins': "off";
138
- 'unicorn/prefer-spread': "off";
139
- 'eslint/new-cap': "off";
140
- 'unicorn/no-await-expression-member': "off";
141
- 'eslint/no-duplicate-imports': ["warn", {
142
- allowSeparateTypeImports: boolean;
143
- }];
144
- 'import/no-named-export': "off";
145
- 'import/no-default-export': "off";
146
- 'import/prefer-default-export': "off";
147
- 'import/no-namespace': "off";
148
- 'import/exports-last': "off";
149
- 'import/no-unassigned-import': "off";
150
- 'import/group-exports': "off";
151
- 'import/consistent-type-specifier-style': "off";
152
- 'unicorn/no-new-array': "off";
153
- 'eslint/no-array-constructor': "warn";
154
- 'typescript/explicit-function-return-type': "off";
155
- 'typescript/explicit-module-boundary-types': "off";
156
- 'unicorn/no-anonymous-default-export': "off";
157
- 'eslint/sort-imports': "off";
158
- 'import/no-relative-parent-imports': "off";
159
- 'unicorn/max-nested-calls': "off";
160
- 'eslint/no-magic-numbers': "off";
161
- 'unicorn/prefer-modern-math-apis': "off";
162
- 'eslint/no-use-before-define': "off";
163
- 'eslint/constructor-super': "off";
164
- 'eslint/getter-return': "off";
165
- 'eslint/no-dupe-class-members': "off";
166
- 'eslint/no-dupe-keys': "off";
167
- 'eslint/no-new-native-nonconstructor': "off";
168
- 'eslint/no-setter-return': "off";
169
- 'eslint/no-this-before-super': "off";
170
- 'eslint/no-undef': "off";
171
- 'eslint/no-unreachable': "off";
172
- 'eslint/no-with': "off";
173
- 'unicorn/no-nested-ternary': "off";
174
- 'oxc/no-optional-chaining': "off";
175
- 'oxc/no-rest-spread-properties': "off";
176
- 'oxc/no-async-await': "off";
177
- };
178
- }[];
179
- plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
180
- jsPlugins: {
181
- name: string;
182
- specifier: string;
183
- }[];
184
- env: {
185
- browser: true;
186
- node: true;
187
- };
188
- globals: {
189
- AudioWorkletGlobalScope: "readonly";
190
- AudioWorkletProcessor: "readonly";
191
- currentFrame: "readonly";
192
- currentTime: "readonly";
193
- registerProcessor: "readonly";
194
- sampleRate: "readonly";
195
- WorkletGlobalScope: "readonly";
196
- };
197
- rules: {
198
- 'react/rules-of-hooks': "error";
199
- 'react/exhaustive-deps': "warn";
200
- 'react-hooks-js/set-state-in-effect': "warn";
201
- 'react/only-export-components': "error";
202
- 'react-compiler-js/react-compiler': "error";
203
- 'import/no-anonymous-default-export': "warn";
204
- 'react/jsx-filename-extension': "off";
205
- 'react/jsx-max-depth': "off";
206
- 'react/no-multi-comp': "off";
207
- 'react/jsx-props-no-spreading': "off";
208
- 'react/jsx-no-literals': "off";
209
- 'react/forbid-component-props': "off";
210
- 'react/forbid-dom-props': "off";
211
- };
212
- overrides: {
213
- files: string[];
214
- rules: {
215
- 'react/display-name': "error";
216
- 'react/jsx-key': "error";
217
- 'react/jsx-no-comment-textnodes': "error";
218
- 'react/jsx-no-duplicate-props': "error";
219
- 'react/jsx-no-target-blank': "off";
220
- 'react/jsx-no-undef': "error";
221
- 'react/no-children-prop': "error";
222
- 'react/no-danger-with-children': "error";
223
- 'react/no-direct-mutation-state': "error";
224
- 'react/no-find-dom-node': "error";
225
- 'react/no-is-mounted': "error";
226
- 'react/no-render-return-value': "error";
227
- 'react/no-string-refs': "error";
228
- 'react/no-unescaped-entities': "error";
229
- 'react/no-unknown-property': "off";
230
- 'react/no-unsafe': "off";
231
- 'react/react-in-jsx-scope': "off";
232
- 'react/require-render-return': "error";
233
- 'jsx-a11y/alt-text': ["warn", {
234
- elements: "img"[];
235
- img: string[];
236
- }];
237
- 'jsx-a11y/aria-props': "warn";
238
- 'jsx-a11y/aria-proptypes': "warn";
239
- 'jsx-a11y/aria-unsupported-elements': "warn";
240
- 'jsx-a11y/role-has-required-aria-props': "warn";
241
- 'jsx-a11y/role-supports-aria-props': "warn";
242
- };
243
- }[];
244
- }[];
245
- plugins: ("import" | "jsx-a11y" | "nextjs" | "react" | "typescript" | "unicorn")[];
246
- rules: {
247
- 'nextjs/google-font-display': "warn";
248
- 'nextjs/google-font-preconnect': "warn";
249
- 'nextjs/next-script-for-ga': "warn";
250
- 'nextjs/no-async-client-component': "warn";
251
- 'nextjs/no-before-interactive-script-outside-document': "warn";
252
- 'nextjs/no-css-tags': "warn";
253
- 'nextjs/no-head-element': "warn";
254
- 'nextjs/no-html-link-for-pages': "error";
255
- 'nextjs/no-page-custom-font': "warn";
256
- 'nextjs/no-styled-jsx-in-document': "warn";
257
- 'nextjs/no-sync-scripts': "error";
258
- 'nextjs/no-title-in-document-head': "warn";
259
- 'nextjs/no-typos': "warn";
260
- 'nextjs/no-unwanted-polyfillio': "warn";
261
- 'nextjs/inline-script-id': "error";
262
- 'nextjs/no-assign-module-variable': "error";
263
- 'nextjs/no-document-import-in-page': "error";
264
- 'nextjs/no-duplicate-head': "error";
265
- 'nextjs/no-head-import-in-document': "error";
266
- 'nextjs/no-script-component-in-head': "error";
267
- 'react/only-export-components': ["warn", {
268
- allowExportNames: string[];
269
- }];
270
- };
271
- ignorePatterns: string[];
272
- overrides: ({
273
- files: never[];
274
- rules: {
275
- 'react/only-export-components'?: never;
276
- };
277
- } | {
278
- files: string[];
279
- rules: {
280
- 'react/only-export-components': "off";
281
- };
282
- })[];
283
- };
14
+ declare function nextConfig(options?: Partial<NextOptions>): OxlintConfig;
284
15
  export { type OxlintConfig, defineConfig, nextConfig };
285
- declare const _default: {
286
- extends: {
287
- extends: {
288
- plugins: ("import" | "typescript" | "unicorn")[];
289
- jsPlugins: never[];
290
- categories: {
291
- correctness: "error";
292
- suspicious: "warn";
293
- pedantic: "off";
294
- perf: "warn";
295
- style: "warn";
296
- restriction: "warn";
297
- nursery: "off";
298
- };
299
- env: {
300
- builtin: true;
301
- };
302
- options: {
303
- typeAware: true;
304
- typeCheck: true;
305
- };
306
- rules: {
307
- 'eslint/no-var': "warn";
308
- 'eslint/prefer-const': "error";
309
- 'eslint/prefer-rest-params': "error";
310
- 'eslint/prefer-spread': "error";
311
- 'eslint/no-async-promise-executor': "error";
312
- 'eslint/no-case-declarations': "error";
313
- 'eslint/no-class-assign': "error";
314
- 'eslint/no-compare-neg-zero': "error";
315
- 'eslint/no-cond-assign': "error";
316
- 'eslint/no-const-assign': "error";
317
- 'eslint/no-constant-binary-expression': "error";
318
- 'eslint/no-constant-condition': "error";
319
- 'eslint/no-control-regex': "error";
320
- 'eslint/no-debugger': "error";
321
- 'eslint/no-delete-var': "error";
322
- 'eslint/no-dupe-else-if': "error";
323
- 'eslint/no-duplicate-case': "error";
324
- 'eslint/no-empty': "error";
325
- 'eslint/no-empty-character-class': "error";
326
- 'eslint/no-empty-pattern': "error";
327
- 'eslint/no-empty-static-block': "error";
328
- 'eslint/no-ex-assign': "error";
329
- 'eslint/no-extra-boolean-cast': "error";
330
- 'eslint/no-fallthrough': ["error", {
331
- allowEmptyCase: boolean;
332
- }];
333
- 'eslint/no-func-assign': "error";
334
- 'eslint/no-global-assign': "error";
335
- 'eslint/no-import-assign': "error";
336
- 'eslint/no-invalid-regexp': "error";
337
- 'eslint/no-irregular-whitespace': "error";
338
- 'eslint/no-loss-of-precision': "error";
339
- 'eslint/no-misleading-character-class': "error";
340
- 'eslint/no-nonoctal-decimal-escape': "error";
341
- 'eslint/no-obj-calls': "error";
342
- 'eslint/no-prototype-builtins': "error";
343
- 'eslint/no-redeclare': "error";
344
- 'eslint/no-regex-spaces': "error";
345
- 'eslint/no-self-assign': "error";
346
- 'eslint/no-shadow-restricted-names': "error";
347
- 'eslint/no-sparse-arrays': "error";
348
- 'eslint/no-unexpected-multiline': "error";
349
- 'eslint/no-unsafe-finally': "error";
350
- 'eslint/no-unsafe-negation': "error";
351
- 'eslint/no-unsafe-optional-chaining': "error";
352
- 'eslint/no-unused-labels': "error";
353
- 'eslint/no-unused-private-class-members': "error";
354
- 'eslint/no-unused-vars': "warn";
355
- 'eslint/no-useless-backreference': "error";
356
- 'eslint/no-useless-catch': "error";
357
- 'eslint/no-useless-escape': "error";
358
- 'eslint/require-yield': "error";
359
- 'eslint/use-isnan': "error";
360
- 'eslint/valid-typeof': "error";
361
- 'eslint/no-unused-expressions': "warn";
362
- 'typescript/ban-ts-comment': "error";
363
- 'typescript/no-duplicate-enum-values': "off";
364
- 'typescript/no-empty-object-type': "error";
365
- 'typescript/no-explicit-any': "error";
366
- 'typescript/no-extra-non-null-assertion': "error";
367
- 'typescript/no-misused-new': "error";
368
- 'typescript/no-namespace': "error";
369
- 'typescript/no-non-null-asserted-optional-chain': "error";
370
- 'typescript/no-require-imports': "error";
371
- 'typescript/no-this-alias': "error";
372
- 'typescript/no-unnecessary-type-constraint': "error";
373
- 'typescript/no-unsafe-declaration-merging': "error";
374
- 'typescript/no-unsafe-function-type': "error";
375
- 'typescript/no-wrapper-object-types': "error";
376
- 'typescript/prefer-as-const': "error";
377
- 'typescript/triple-slash-reference': "error";
378
- 'typescript/explicit-member-accessibility': ["warn", {
379
- accessibility: "no-public";
380
- }];
381
- 'eslint/id-length': "off";
382
- 'eslint/sort-keys': "off";
383
- 'eslint/capitalized-comments': "off";
384
- 'eslint/func-style': "off";
385
- 'eslint/complexity': "off";
386
- 'eslint/max-params': "off";
387
- 'eslint/no-ternary': "off";
388
- 'eslint/curly': "warn";
389
- 'typescript/consistent-type-definitions': ["warn", "type"];
390
- 'eslint/max-statements': "off";
391
- 'typescript/consistent-return': "off";
392
- 'unicorn/switch-case-braces': "warn";
393
- 'typescript/prefer-regexp-exec': "warn";
394
- 'eslint/init-declarations': "off";
395
- 'unicorn/no-null': "off";
396
- 'eslint/no-undefined': "off";
397
- 'eslint/no-console': "off";
398
- 'eslint/no-continue': "off";
399
- 'eslint/no-implicit-coercion': ["warn", {
400
- allow: string[];
401
- }];
402
- 'eslint/no-plusplus': "off";
403
- 'eslint/no-void': "off";
404
- 'eslint/no-nested-ternary': "off";
405
- 'eslint/no-empty-function': ["warn", {
406
- allow: string[];
407
- }];
408
- 'unicorn/no-instanceof-builtins': "off";
409
- 'unicorn/prefer-spread': "off";
410
- 'eslint/new-cap': "off";
411
- 'unicorn/no-await-expression-member': "off";
412
- 'eslint/no-duplicate-imports': ["warn", {
413
- allowSeparateTypeImports: boolean;
414
- }];
415
- 'import/no-named-export': "off";
416
- 'import/no-default-export': "off";
417
- 'import/prefer-default-export': "off";
418
- 'import/no-namespace': "off";
419
- 'import/exports-last': "off";
420
- 'import/no-unassigned-import': "off";
421
- 'import/group-exports': "off";
422
- 'import/consistent-type-specifier-style': "off";
423
- 'unicorn/no-new-array': "off";
424
- 'eslint/no-array-constructor': "warn";
425
- 'typescript/explicit-function-return-type': "off";
426
- 'typescript/explicit-module-boundary-types': "off";
427
- 'unicorn/no-anonymous-default-export': "off";
428
- 'eslint/sort-imports': "off";
429
- 'import/no-relative-parent-imports': "off";
430
- 'unicorn/max-nested-calls': "off";
431
- 'eslint/no-magic-numbers': "off";
432
- 'unicorn/prefer-modern-math-apis': "off";
433
- 'eslint/no-use-before-define': "off";
434
- 'eslint/constructor-super': "off";
435
- 'eslint/getter-return': "off";
436
- 'eslint/no-dupe-class-members': "off";
437
- 'eslint/no-dupe-keys': "off";
438
- 'eslint/no-new-native-nonconstructor': "off";
439
- 'eslint/no-setter-return': "off";
440
- 'eslint/no-this-before-super': "off";
441
- 'eslint/no-undef': "off";
442
- 'eslint/no-unreachable': "off";
443
- 'eslint/no-with': "off";
444
- 'unicorn/no-nested-ternary': "off";
445
- 'oxc/no-optional-chaining': "off";
446
- 'oxc/no-rest-spread-properties': "off";
447
- 'oxc/no-async-await': "off";
448
- };
449
- }[];
450
- plugins: ("import" | "jsx-a11y" | "react" | "typescript" | "unicorn")[];
451
- jsPlugins: {
452
- name: string;
453
- specifier: string;
454
- }[];
455
- env: {
456
- browser: true;
457
- node: true;
458
- };
459
- globals: {
460
- AudioWorkletGlobalScope: "readonly";
461
- AudioWorkletProcessor: "readonly";
462
- currentFrame: "readonly";
463
- currentTime: "readonly";
464
- registerProcessor: "readonly";
465
- sampleRate: "readonly";
466
- WorkletGlobalScope: "readonly";
467
- };
468
- rules: {
469
- 'react/rules-of-hooks': "error";
470
- 'react/exhaustive-deps': "warn";
471
- 'react-hooks-js/set-state-in-effect': "warn";
472
- 'react/only-export-components': "error";
473
- 'react-compiler-js/react-compiler': "error";
474
- 'import/no-anonymous-default-export': "warn";
475
- 'react/jsx-filename-extension': "off";
476
- 'react/jsx-max-depth': "off";
477
- 'react/no-multi-comp': "off";
478
- 'react/jsx-props-no-spreading': "off";
479
- 'react/jsx-no-literals': "off";
480
- 'react/forbid-component-props': "off";
481
- 'react/forbid-dom-props': "off";
482
- };
483
- overrides: {
484
- files: string[];
485
- rules: {
486
- 'react/display-name': "error";
487
- 'react/jsx-key': "error";
488
- 'react/jsx-no-comment-textnodes': "error";
489
- 'react/jsx-no-duplicate-props': "error";
490
- 'react/jsx-no-target-blank': "off";
491
- 'react/jsx-no-undef': "error";
492
- 'react/no-children-prop': "error";
493
- 'react/no-danger-with-children': "error";
494
- 'react/no-direct-mutation-state': "error";
495
- 'react/no-find-dom-node': "error";
496
- 'react/no-is-mounted': "error";
497
- 'react/no-render-return-value': "error";
498
- 'react/no-string-refs': "error";
499
- 'react/no-unescaped-entities': "error";
500
- 'react/no-unknown-property': "off";
501
- 'react/no-unsafe': "off";
502
- 'react/react-in-jsx-scope': "off";
503
- 'react/require-render-return': "error";
504
- 'jsx-a11y/alt-text': ["warn", {
505
- elements: "img"[];
506
- img: string[];
507
- }];
508
- 'jsx-a11y/aria-props': "warn";
509
- 'jsx-a11y/aria-proptypes': "warn";
510
- 'jsx-a11y/aria-unsupported-elements': "warn";
511
- 'jsx-a11y/role-has-required-aria-props': "warn";
512
- 'jsx-a11y/role-supports-aria-props': "warn";
513
- };
514
- }[];
515
- }[];
516
- plugins: ("import" | "jsx-a11y" | "nextjs" | "react" | "typescript" | "unicorn")[];
517
- rules: {
518
- 'nextjs/google-font-display': "warn";
519
- 'nextjs/google-font-preconnect': "warn";
520
- 'nextjs/next-script-for-ga': "warn";
521
- 'nextjs/no-async-client-component': "warn";
522
- 'nextjs/no-before-interactive-script-outside-document': "warn";
523
- 'nextjs/no-css-tags': "warn";
524
- 'nextjs/no-head-element': "warn";
525
- 'nextjs/no-html-link-for-pages': "error";
526
- 'nextjs/no-page-custom-font': "warn";
527
- 'nextjs/no-styled-jsx-in-document': "warn";
528
- 'nextjs/no-sync-scripts': "error";
529
- 'nextjs/no-title-in-document-head': "warn";
530
- 'nextjs/no-typos': "warn";
531
- 'nextjs/no-unwanted-polyfillio': "warn";
532
- 'nextjs/inline-script-id': "error";
533
- 'nextjs/no-assign-module-variable': "error";
534
- 'nextjs/no-document-import-in-page': "error";
535
- 'nextjs/no-duplicate-head': "error";
536
- 'nextjs/no-head-import-in-document': "error";
537
- 'nextjs/no-script-component-in-head': "error";
538
- 'react/only-export-components': ["warn", {
539
- allowExportNames: string[];
540
- }];
541
- };
542
- ignorePatterns: string[];
543
- overrides: ({
544
- files: never[];
545
- rules: {
546
- 'react/only-export-components'?: never;
547
- };
548
- } | {
549
- files: string[];
550
- rules: {
551
- 'react/only-export-components': "off";
552
- };
553
- })[];
554
- };
16
+ declare const _default: OxlintConfig;
555
17
  export default _default;
556
18
  //# sourceMappingURL=next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,YAAY,CAAC;AAE5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,YAAY,CAAC;AAE5D,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAIF,iBAAS,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,gBAyEjD;AAED,OAAO,EAAE,KAAK,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
package/dist/next.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import path from 'node:path';
2
2
  import process from 'node:process';
3
3
  import { defineConfig } from 'oxlint';
4
+ import { extendConfig } from './config.js';
4
5
  import { reactConfig } from './react.js';
5
6
  const DEFAULT_OPTIONS = { uiPath: 'src/components/ui/' };
6
7
  function nextConfig(options) {
7
8
  const opts = { ...DEFAULT_OPTIONS, ...options };
8
9
  const react = reactConfig(options);
9
- return defineConfig({
10
- extends: [react],
11
- plugins: [...react.plugins, 'nextjs'],
10
+ return extendConfig(react, {
11
+ plugins: ['nextjs'],
12
12
  rules: {
13
13
  'nextjs/google-font-display': 'warn',
14
14
  'nextjs/google-font-preconnect': 'warn',
package/dist/next.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,YAAY,EAAqB,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAqB,WAAW,EAAE,MAAM,YAAY,CAAC;AAc5D,MAAM,eAAe,GAAgB,EAAE,MAAM,EAAE,oBAAoB,EAAE,CAAC;AAEtE,SAAS,UAAU,CAAC,OAA8B;IAChD,MAAM,IAAI,GAAG,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,EAAE,CAAC;IAEhD,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IAEnC,OAAO,YAAY,CAAC;QAClB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC;QACrC,KAAK,EAAE;YACL,4BAA4B,EAAE,MAAM;YACpC,+BAA+B,EAAE,MAAM;YACvC,2BAA2B,EAAE,MAAM;YACnC,kCAAkC,EAAE,MAAM;YAC1C,sDAAsD,EAAE,MAAM;YAC9D,oBAAoB,EAAE,MAAM;YAC5B,wBAAwB,EAAE,MAAM;YAChC,+BAA+B,EAAE,OAAO;YACxC,4BAA4B,EAAE,MAAM;YACpC,kCAAkC,EAAE,MAAM;YAC1C,wBAAwB,EAAE,OAAO;YACjC,kCAAkC,EAAE,MAAM;YAC1C,iBAAiB,EAAE,MAAM;YACzB,+BAA+B,EAAE,MAAM;YACvC,yBAAyB,EAAE,OAAO;YAClC,kCAAkC,EAAE,OAAO;YAC3C,mCAAmC,EAA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