Skip to content

Commit 5267b8a

Browse files
Boshenclaude
andcommitted
Add oxlint with type-aware linting
- Add oxlint and oxlint-tsgolint for type-aware linting - Configure .oxlintrc.json to disable noisy rules - Update lint script to run oxlint on src and tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9caa70c commit 5267b8a

File tree

3 files changed

+170
-1
lines changed

3 files changed

+170
-1
lines changed

.oxlintrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3+
"rules": {
4+
"no-unused-vars": "off",
5+
"no-useless-catch": "off",
6+
"unicorn/prefer-string-starts-ends-with": "off",
7+
"typescript/no-redundant-type-constituents": "off",
8+
"typescript/unbound-method": "off"
9+
}
10+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "vitest",
3737
"prepublishOnly": "npm run build && node scripts/copy-licenses.js",
3838
"format": "prettier \"src/**/*.ts\" \"scripts/**/*.js\" \"tests/*.ts\" --write --print-width 100 --single-quote --no-semi",
39-
"lint": "knip",
39+
"lint": "knip && oxlint --type-aware src tests/*.ts",
4040
"release-channel": "node ./scripts/release-channel.js",
4141
"release-notes": "node ./scripts/release-notes.js"
4242
},
@@ -62,6 +62,8 @@
6262
"license-checker": "^25.0.1",
6363
"line-column": "^1.0.2",
6464
"marko": "^5.37.46",
65+
"oxlint": "^1.43.0",
66+
"oxlint-tsgolint": "^0.11.4",
6567
"postcss": "^8.5.6",
6668
"postcss-import": "^16.1.1",
6769
"prettier": "^3.7.3",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)