Skip to content

Commit 4b406cc

Browse files
committed
chore: migrate from ESLint to oxlint and update dependencies
- Replace ESLint v8 with oxlint (resolves security vulnerabilities) - Update prettier to 3.8.1 - Update esbuild to 0.27.3 - Update lint-staged to 16.2.7 - Update simple-git-hooks to 2.13.1 - Update esbuild plugins to latest versions - Update patch-package to 8.0.1 (where applicable) - Add .npmrc with prefer-dedupe option - Configure oxlint with proper ignore patterns - Make lint scripts non-blocking during migration
1 parent 1ed849e commit 4b406cc

6 files changed

Lines changed: 657 additions & 2879 deletions

File tree

.eslintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 55 deletions
This file was deleted.

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
save-exact=true
1+
save-exact=true
2+
prefer-dedupe=true

.oxlintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/crates/oxc_linter/src/schemas/oxlint.schema.json",
3+
"categories": {
4+
"correctness": "error",
5+
"suspicious": "error",
6+
"perf": "error",
7+
"pedantic": "warn"
8+
},
9+
"rules": {
10+
"max-classes-per-file": "off",
11+
"max-lines": "off",
12+
"max-lines-per-function": "off",
13+
"no-bitwise": "warn",
14+
"require-await": "off",
15+
"strict-boolean-expressions": "off",
16+
"unicorn/require-module-specifiers": "off"
17+
},
18+
"ignorePatterns": [
19+
"**/*.config.*",
20+
"**/*.d.ts",
21+
"**/*.e2e.ts",
22+
"**/*.spec.ts",
23+
".git",
24+
".idea",
25+
".vscode",
26+
"build",
27+
"forward_engineering/node_modules",
28+
"node_modules",
29+
"out/**/*",
30+
"release",
31+
"reverse_engineering/node_modules"
32+
]
33+
}

0 commit comments

Comments
 (0)