Skip to content

Commit 2189f73

Browse files
committed
Add stylelint-find-new-rules as a CI test check
1 parent 749b00d commit 2189f73

File tree

4 files changed

+318
-1
lines changed

4 files changed

+318
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
npm ci --no-optional --no-audit --progress=false
2020
npm run lint
2121
npm run test
22+
npm run test:rules
2223
npm pack --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' && rm *.tgz
2324
env:
2425
CI: true

package-lock.json

Lines changed: 168 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"eslint": "6.2.2",
3030
"jest": "24.9.0",
3131
"prettier": "1.18.2",
32-
"stylelint": "10.1.0"
32+
"stylelint": "10.1.0",
33+
"stylelint-find-new-rules": "1.0.2"
3334
},
3435
"dependencies": {
3536
"stylelint-config-prettier": "^5.2.0",
@@ -43,6 +44,7 @@
4344
"lint": "eslint --report-unused-disable-directives . && prettier --check '**/?(.)*.{md,css,scss,js,json,yaml,yml,html}'",
4445
"format": "prettier --write '**/?(.)*.{md,css,scss,js,json,yaml,yml,html}'",
4546
"test": "jest --coverage",
47+
"test:rules": "stylelint-find-new-rules src/unused.js --unused --deprecated --invalid",
4648
"test:watch": "jest --watch"
4749
}
4850
}

0 commit comments

Comments
 (0)