Skip to content

Commit a46f22a

Browse files
authoredFeb 8, 2023
Merge pull request #236 from Rich-Harris/publint
apply publint suggestions
2 parents c2b652a + ba774cb commit a46f22a

File tree

3 files changed

+290
-4
lines changed

3 files changed

+290
-4
lines changed
 

‎.github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ jobs:
3434
- name: Install
3535
run: npm i
3636

37+
- name: Lint
38+
if: ${{ matrix.node_version != '12.x' }}
39+
run: npm run lint
40+
3741
- name: Test
3842
run: npm test

‎package-lock.json

+282-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
"build": "rollup -c",
3434
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
3535
"format": "prettier --single-quote --print-width 100 --use-tabs --write src/*.js src/**/*.js",
36-
"lint": "eslint src test",
36+
"lint": "eslint src test && publint",
3737
"prepare": "npm run build",
38-
"prepublishOnly": "rm -rf dist && npm test",
38+
"prepublishOnly": "npm run lint && rm -rf dist && npm test",
3939
"release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
40-
"pretest": "npm run lint && npm run build",
40+
"pretest": "npm run build",
4141
"test": "mocha",
4242
"bench": "npm run build && node benchmark/index.mjs",
4343
"watch": "rollup -cw"
@@ -51,6 +51,7 @@
5151
"eslint": "^8.23.1",
5252
"mocha": "^10.0.0",
5353
"prettier": "^2.7.1",
54+
"publint": "^0.1.7",
5455
"rollup": "^2.79.1",
5556
"source-map-js": "^1.0.2",
5657
"source-map-support": "^0.5.21"

0 commit comments

Comments
 (0)
Please sign in to comment.