Skip to content

Commit 3572c9e

Browse files
committed
Rename lint script and add a "fix" one too
1 parent 3a3ae79 commit 3572c9e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
run: npm ci
2525

2626
- name: Lint
27-
run: npm run xo
27+
run: npm run lint

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
},
1818
"scripts": {
1919
"mocha": "mocha",
20-
"xo": "xo",
21-
"test": "npm run xo && npm run mocha",
20+
"lint": "xo",
21+
"fix": "xo --fix",
22+
"test": "npm run lint && npm run mocha",
2223
"test:grunt": "grunt ci --force",
2324
"test:ci": "npm run mocha && npm run test:grunt",
2425
"test:coverage": "c8 npm run test:ci"

0 commit comments

Comments
 (0)