Skip to content

Commit 72bd444

Browse files
committed
ignore eslint-* and rimraf in preversion depcheck
It currently warns about rimraf (used in several scripts) and eslint-plugin-import (not sure why the ESLint checks don't match it). Suppress these. Signed-off-by: Kevin Locke <[email protected]>
1 parent 819680b commit 72bd444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"lint-js": "eslint --report-unused-disable-directives . && echo ESLint passed.",
4545
"postpublish": "git -C doc push && git push --follow-tags origin main gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md",
4646
"postversion": "rimraf doc && git clone -b gh-pages -l -q . doc && npm run doc && git -C doc add . && git -C doc commit -n -m \"Docs for v$npm_package_version\"",
47-
"preversion": "npm run test-cov && c8 check-coverage --statements 95 && depcheck --ignore-dirs doc && david && node ./bin/git-branch-is.js main && hub-ci-status -vv --wait",
47+
"preversion": "npm run test-cov && c8 check-coverage --statements 95 && depcheck --ignore-dirs doc --ignores=\"eslint-*,rimraf\" && david && node ./bin/git-branch-is.js main && hub-ci-status -vv --wait",
4848
"test": "npm run lint && npm run test-unit",
4949
"test-cov": "npm run lint && npm run test-unit-cov",
5050
"pretest-unit": "node test-bin/set-up-test-repos.js",

0 commit comments

Comments
 (0)