Skip to content

Commit 311533d

Browse files
authored
perf(eslint): add oxlint plugin, use moeru-lint (#666)
1 parent 4a1a33f commit 311533d

File tree

3 files changed

+108
-5
lines changed

3 files changed

+108
-5
lines changed

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ words:
194194
- OPFS
195195
- opusscript
196196
- otelcol
197+
- oxlint
197198
- pglite
198199
- pgvector
199200
- picklist

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"build:crates": "cargo build --workspace",
3030
"test": "vitest --coverage",
3131
"test:run": "vitest run",
32-
"lint": "eslint --cache .",
33-
"lint:fix": "eslint --cache --fix .",
32+
"lint": "moeru-lint .",
33+
"lint:fix": "moeru-lint --fix .",
3434
"lint:rust": "cargo fmt --check && cargo clippy --workspace",
3535
"to-avif": "tsx docs/scripts/avif.ts",
3636
"typecheck": "pnpm -rF=\"./packages/*\" -F=\"./apps/*\" -F=\"./docs\" --parallel typecheck",
@@ -52,7 +52,9 @@
5252
"@vitest/coverage-v8": "^3.2.4",
5353
"bumpp": "^10.3.1",
5454
"eslint": "^9.37.0",
55+
"eslint-plugin-oxlint": "^1.23.0",
5556
"lint-staged": "^16.2.4",
57+
"oxlint": "^1.23.0",
5658
"publint": "^0.3.14",
5759
"rollup": "^4.52.4",
5860
"simple-git-hooks": "^2.13.1",
@@ -118,6 +120,6 @@
118120
"pre-commit": "pnpm lint-staged"
119121
},
120122
"lint-staged": {
121-
"*": "eslint --fix"
123+
"*": "moeru-lint --fix"
122124
}
123125
}

pnpm-lock.yaml

Lines changed: 102 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)