Skip to content

Commit cc7d0db

Browse files
chore: optimize lint-staged configuration
1 parent 7226765 commit cc7d0db

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,18 @@
4242
"automated": "git fetch origin main && git reset --hard origin/main && git pull && npm i && npm run all && python3 scripts/upload.py"
4343
},
4444
"lint-staged": {
45-
"*.js": "eslint --cache --fix",
46-
"*.css": "stylelint **/docs/*.css --ignore-pattern **/docs/fonts/ --fix",
47-
"*": "prettier --ignore-unknown --write"
45+
"!(*.css|*.md)": [
46+
"eslint --fix",
47+
"prettier --write --ignore-unknown"
48+
],
49+
"*.css": [
50+
"stylelint **/docs/*.css --ignore-pattern **/docs/fonts/ --fix",
51+
"prettier --write"
52+
],
53+
"*.md": [
54+
"markdownlint --ignore node_modules --fix",
55+
"prettier --write"
56+
]
4857
},
4958
"dependencies": {
5059
"marked": "^15.0.8",

0 commit comments

Comments
 (0)