Skip to content

Commit 8c48ce8

Browse files
committed
Update pnpm scripts
1 parent 1bc578b commit 8c48ce8

File tree

3 files changed

+244
-22
lines changed

3 files changed

+244
-22
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
node-version: '22'
2929

3030
- name: Run linting
31-
run: pnpm run check
31+
run: pnpm run check-ci

package.json

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"sideEffects": false,
4242
"scripts": {
4343
"check": "run-p -c --aggregate-output check:*",
44+
"check-ci": "pnpm check:lint",
4445
"check:lint": "eslint --report-unused-disable-directives .",
4546
"check:lint:fix": "pnpm run check:lint -- --fix",
4647
"check:tsc": "tsc",
@@ -52,10 +53,12 @@
5253
"fix": "run-s lint:fix check:lint:fix",
5354
"knip:dependencies": "knip --dependencies",
5455
"knip:exports": "knip --include exports,duplicates",
55-
"lint": "oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
56-
"lint:fix": "pnpm run lint -- --fix && pnpm run lint:fix:fast",
57-
"lint:fix:fast": "biome format --write",
58-
"lint-staged": "lint-staged",
56+
"lint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json .",
57+
"lint:fix": "run-s -c lint:fix:*",
58+
"lint:fix:oxlint": "dotenvx -q run -f .env.local -- oxlint -c=.oxlintrc.json --ignore-path=.oxlintignore --tsconfig=tsconfig.json --quiet --fix . | dev-null",
59+
"lint:fix:biome": "dotenvx -q run -f .env.local -- biome format --log-level=none --fix . | dev-null",
60+
"lint:fix:eslint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives --fix . | dev-null",
61+
"lint-staged": "dotenvx -q run -f .env.local -- lint-staged",
5962
"precommit": "lint-staged",
6063
"prepare": "husky",
6164
"test": "run-s check test:*",
@@ -76,6 +79,7 @@
7679
"all-the-package-names": "2.0.0",
7780
"all-the-package-names-v1.3905.0": "npm:[email protected]",
7881
"del-cli": "6.0.0",
82+
"dev-null-cli": "2.0.0",
7983
"eslint": "9.35.0",
8084
"eslint-plugin-import-x": "4.16.1",
8185
"eslint-plugin-n": "17.21.3",
@@ -95,29 +99,27 @@
9599
"validate-npm-package-name": "6.0.2",
96100
"vitest": "3.2.4"
97101
},
98-
"pnpm": {
99-
"overrides": {
100-
"vite": "7.1.5"
101-
}
102-
},
103-
"lint-staged": {
104-
"*.{cjs,cts,js,mjs,mts,ts}": [
105-
"pnpm run lint -- --fix",
106-
"biome format --write"
107-
],
108-
"*.{json,md}": [
109-
"pnpm run lint -- --fix"
110-
]
111-
},
112102
"engines": {
113-
"node": ">=18"
103+
"node": ">=18",
104+
"pnpm": ">=10.16.0"
114105
},
115106
"files": [
116-
"CHANGELOG.md",
117107
"*{.js,.ts}",
118108
"data/**/*.json",
119-
"src/**/*{.js,.ts}"
109+
"src/**/*{.js,.ts}",
110+
"CHANGELOG.md"
120111
],
112+
"lint-staged": {
113+
"*.{cjs,js,json,md,mjs,mts,ts}": [
114+
"pnpm run lint:fix:oxlint",
115+
"pnpm run lint:fix:biome -- --no-errors-on-unmatched --files-ignore-unknown=true --colors=off"
116+
]
117+
},
118+
"pnpm": {
119+
"overrides": {
120+
"vite": "7.1.5"
121+
}
122+
},
121123
"socket": {
122124
"categories": [
123125
"levelup"

0 commit comments

Comments
 (0)