Skip to content

Commit b20c253

Browse files
chore(deps): update oxlint monorepo (#2592)
* chore(deps): update oxlint monorepo * update config --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JUNICHI IMAI <[email protected]>
1 parent 915f41c commit b20c253

3 files changed

Lines changed: 209 additions & 207 deletions

File tree

oxlint.config.ts

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,15 @@
11
import { 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-
273
export 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
});

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "pnpm lint:oxlint && pnpm lint:fmt",
10-
"lint:oxlint": "oxlint --type-aware --type-check",
11-
"lint:oxlint:fix": "oxlint --fix --type-aware --type-check",
10+
"lint:oxlint": "oxlint",
11+
"lint:oxlint:fix": "oxlint --fix",
1212
"lint:fmt": "oxfmt --check .",
1313
"lint:fmt:fix": "oxfmt --write .",
1414
"lint:knip": "knip --cache && knip --strict --cache",
@@ -71,8 +71,8 @@
7171
"knip": "5.85.0",
7272
"msw": "2.12.10",
7373
"msw-storybook-addon": "2.0.6",
74-
"oxfmt": "0.35.0",
75-
"oxlint": "1.50.0",
74+
"oxfmt": "0.36.0",
75+
"oxlint": "1.51.0",
7676
"oxlint-tsgolint": "0.15.0",
7777
"playwright": "1.58.2",
7878
"storybook": "10.2.14",

0 commit comments

Comments
 (0)