Skip to content

Commit b34acff

Browse files
authored
chore: add duplicate web component check (#173)
- Add check:duplicates npm script - Add lint-staged with pre-commit hook to check on package-lock.json changes - Update @neovici/cfg to ^2.8.0 for check-duplicate-components binary Refs: NEO-805
1 parent 875875e commit b34acff

File tree

4 files changed

+479
-50
lines changed

4 files changed

+479
-50
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.{js,ts,mjs,cjs}": ["eslint --cache --fix"],
3+
"*.{js,ts,json,css,md}": ["prettier --write"],
4+
"package-lock.json": ["check-duplicate-components"]
5+
}

0 commit comments

Comments
 (0)