Skip to content

Commit

Permalink
chore: add Stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Oct 5, 2023
1 parent be2a66e commit 0e5948f
Show file tree
Hide file tree
Showing 5 changed files with 1,352 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
.output/
22 changes: 22 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-idiomatic-order",
"stylelint-config-html",
"stylelint-prettier/recommended"
],

"rules": {
"import-notation": "string",
"selector-class-pattern": null
},

"overrides": [
{
"files": ["*.astro"],
"rules": {
"prettier/prettier": null
}
}
]
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"typescriptreact",
"astro"
],
"stylelint.validate": ["css", "html", "astro"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
},
"[javascript][javascriptreact][typescript][typescriptreact][astro]": {
"editor.formatOnSave": false
Expand Down
Loading

0 comments on commit 0e5948f

Please sign in to comment.