11import { defineConfig } from "oxlint" ;
22
3- const nextjsSpecialFiles = [
4- ".storybook/main.ts" ,
5- ".storybook/preview.tsx" ,
6- "next.config.ts" ,
7- "oxlint.config.ts" ,
8- "postcss.config.mjs" ,
9- "src/**/default.tsx" ,
10- "src/**/error.tsx" ,
11- "src/**/forbidden.tsx" ,
12- "src/**/global-error.tsx" ,
13- "src/**/instrumentation-client.ts" ,
14- "src/**/instrumentation.ts" ,
15- "src/**/layout.tsx" ,
16- "src/**/loading.tsx" ,
17- "src/**/not-found.tsx" ,
18- "src/**/page.tsx" ,
19- "src/**/proxy.ts" ,
20- "src/**/sitemap.ts" ,
21- "src/**/template.tsx" ,
22- "src/**/unauthorized.tsx" ,
23- "vitest.config.ts" ,
24- "vitest.globalSetup.ts" ,
25- ] ;
26-
273export default defineConfig ( {
4+ options : {
5+ typeCheck : true ,
6+ typeAware : true ,
7+ } ,
8+ env : {
9+ builtin : true ,
10+ browser : true ,
11+ node : true ,
12+ } ,
2813 plugins : [
2914 "import" ,
3015 "jsdoc" ,
@@ -37,21 +22,6 @@ export default defineConfig({
3722 "unicorn" ,
3823 "vitest" ,
3924 ] ,
40- env : {
41- builtin : true ,
42- browser : true ,
43- node : true ,
44- } ,
45- ignorePatterns : [
46- ".next/**" ,
47- "build/**" ,
48- "next-env.d.ts" ,
49- "node_modules/**" ,
50- "out/**" ,
51- "public/**" ,
52- "src/api/openapi/**" ,
53- "storybook-static/**" ,
54- ] ,
5525 jsPlugins : [
5626 "./scripts/oxlint-plugin-entry-point.mjs" ,
5727 "./scripts/oxlint-plugin-fn-style.mjs" ,
@@ -502,7 +472,29 @@ export default defineConfig({
502472 overrides : [
503473 {
504474 // Next.js special files + config files → allow default export, relax filename
505- files : nextjsSpecialFiles ,
475+ files : [
476+ ".storybook/main.ts" ,
477+ ".storybook/preview.tsx" ,
478+ "next.config.ts" ,
479+ "oxlint.config.ts" ,
480+ "postcss.config.mjs" ,
481+ "src/**/default.tsx" ,
482+ "src/**/error.tsx" ,
483+ "src/**/forbidden.tsx" ,
484+ "src/**/global-error.tsx" ,
485+ "src/**/instrumentation-client.ts" ,
486+ "src/**/instrumentation.ts" ,
487+ "src/**/layout.tsx" ,
488+ "src/**/loading.tsx" ,
489+ "src/**/not-found.tsx" ,
490+ "src/**/page.tsx" ,
491+ "src/**/proxy.ts" ,
492+ "src/**/sitemap.ts" ,
493+ "src/**/template.tsx" ,
494+ "src/**/unauthorized.tsx" ,
495+ "vitest.config.ts" ,
496+ "vitest.globalSetup.ts" ,
497+ ] ,
506498 rules : {
507499 "import/no-default-export" : "off" ,
508500 "unicorn/filename-case" : "off" ,
@@ -618,4 +610,14 @@ export default defineConfig({
618610 } ,
619611 } ,
620612 ] ,
613+ ignorePatterns : [
614+ ".next/**" ,
615+ "build/**" ,
616+ "next-env.d.ts" ,
617+ "node_modules/**" ,
618+ "out/**" ,
619+ "public/**" ,
620+ "src/api/openapi/**" ,
621+ "storybook-static/**" ,
622+ ] ,
621623} ) ;
0 commit comments