Skip to content

Commit 7852c0c

Browse files
XhmikosRMichael Perrotte
authored andcommitted
Use the npm lint script on CI.
This should be more consistent since it should use the specified standard version and not the latest one. PR-URL: #604 Credit: @XhmikosR Close: #604 Reviewed-by: @mikemimik
1 parent b1aeeb6 commit 7852c0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
# run: sudo PATH=$PATH $(which node) . run tap -- "test/tap/*.js" --coverage --timeout 600
4646

4747
- name: Lint
48-
run: npx standard
48+
run: node . run lint
4949

5050
- name: Validate licenses
5151
run: node . run licenses

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296
"licenses": "licensee --production --errors-only",
297297
"tap": "tap -J --timeout 300 --no-esm",
298298
"tap-cover": "tap -J --nyc-arg=--cache --coverage --timeout 600 --no-esm",
299-
"pretest": "standard",
299+
"lint": "standard",
300+
"pretest": "npm run lint",
300301
"test": "npm run test-tap --",
301302
"test:nocleanup": "NO_TEST_CLEANUP=1 npm run test --",
302303
"sudotest": "sudo npm run tap -- \"test/tap/*.js\"",

0 commit comments

Comments
 (0)