Skip to content

Commit

Permalink
chore(generator): simplify stylelint configuration and trigger, by de…
Browse files Browse the repository at this point in the history
…claration a .stylelintignore file
  • Loading branch information
murdos committed Aug 22, 2024
1 parent 8e1087c commit 1513910
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export default {
'*.{js,cjs,ts,tsx,vue}': ['eslint --fix', 'prettier --write'],
'src/main/style/**/*.{css,scss}': ['stylelint --fix', 'prettier --write'],
'src/main/glyph/**/*.{css,scss}': ['prettier --write'],
'*.{css,scss}': ['stylelint --fix', 'prettier --write'],
'*.pug': ['eslint --fix', 'prettier --write'],
'*.{md,json,yml,html,java,xml,feature}': ['prettier --write'],
};
3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/main/glyph/
src/test/
target/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"lint": "eslint . --fix --plugin eslint-plugin-pug src/main/style/**/*.pug && npm run lint:sass && npm run prettier:format",
"lint:ci": "eslint . && npm run prettier:check",
"lint:sass": "npm run lint:ci:sass -- --fix",
"lint:ci:sass": "stylelint 'src/main/style/**/*.{css,scss}'",
"lint:ci:sass": "stylelint '**/*.{css,scss}'",
"prepare": "husky",
"prettier:check": "prettier --check .",
"prettier:format": "prettier --write .",
Expand Down

0 comments on commit 1513910

Please sign in to comment.