Skip to content

Commit

Permalink
Added stylelint for npm run format
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Borsuk <[email protected]>
  • Loading branch information
biodranik committed Nov 29, 2022
1 parent 505d808 commit 60bca2d
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "stylelint-config-standard"
"customSyntax": "postcss-scss",
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-scss"
],
"rules": {
"at-rule-no-unknown": null,
"import-notation": "string",
"scss/at-rule-no-unknown": true,
"selector-class-pattern": null
}
}
74 changes: 73 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"js-beautify": "^1.14.7",
"node-html-markdown": "^1.2.2",
"node-html-parser": "^6.1.4",
"postcss-scss": "^4.0.6",
"prettier": "^2.8.0",
"stylelint": "^14.15.0",
"stylelint-config-recommended": "^9.0.0",
"stylelint-config-standard": "^29.0.0"
"stylelint-config-standard": "^29.0.0",
"stylelint-scss": "^4.3.0"
},
"scripts": {
"format": "stylelint --fix ./sass/*.scss && prettier --write *.md content/**/*.md && js-beautify -r templates/base.html",
Expand Down

0 comments on commit 60bca2d

Please sign in to comment.