Skip to content

Commit 57f91e5

Browse files
committed
Replace lint-fix with smart lint-affected script
1 parent de0bbbd commit 57f91e5

File tree

3 files changed

+475
-123
lines changed

3 files changed

+475
-123
lines changed

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@
4949
"build:yao-pkg:node": "node scripts/build-yao-pkg-node.mjs",
5050
"build:yao-pkg:check-deps": "node scripts/check-build-deps.mjs",
5151
"check": "node scripts/check.mjs",
52-
"check:lint": "eslint --config .config/eslint.config.mjs --report-unused-disable-directives .",
52+
"check:lint": "node scripts/lint-affected.mjs --all",
5353
"check:tsc": "tsgo --noEmit",
5454
"check-ci": "pnpm run check:lint",
55+
"lint": "node scripts/lint-affected.mjs",
5556
"lint-ci": "pnpm run check:lint",
5657
"type-ci": "pnpm run check:tsc",
5758
"coverage": "node scripts/coverage.mjs",
@@ -64,13 +65,9 @@
6465
"clean:dist": "node scripts/clean.mjs --dist",
6566
"clean:dist:types": "node scripts/clean.mjs --dist-types",
6667
"clean:node_modules": "node scripts/clean.mjs --node-modules",
67-
"fix": "node scripts/lint-fix.mjs",
68+
"fix": "node scripts/lint-affected.mjs --fix",
6869
"knip:dependencies": "knip --config .config/knip.json --dependencies",
6970
"knip:exports": "knip --config .config/knip.json --include exports,duplicates",
70-
"lint": "oxlint -c=.config/oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
71-
"lint:dist:fix": "node scripts/lint-fix.mjs --dist",
72-
"lint:external:fix": "node scripts/lint-fix.mjs --external",
73-
"lint:fix": "node scripts/lint-fix.mjs",
7471
"lint-staged": "lint-staged",
7572
"precommit": "lint-staged",
7673
"prepare": "husky",

0 commit comments

Comments
 (0)