Create configuration for stylelint

This commit is contained in:
Christian Wolf 2024-01-12 21:47:33 +01:00
parent ae74427295
commit 5c4175b01a
3 changed files with 2923 additions and 3 deletions

5
.stylelintrc.json Normal file
View File

@ -0,0 +1,5 @@
{
"extends": [
"stylelint-config-standard-scss"
]
}

2912
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,9 @@
"main": "index.js",
"scripts": {
"server": "hugo-extended server --bind 0.0.0.0",
"build": "hugo-extended --minify"
"build": "hugo-extended --minify",
"stylelint:check": "stylelint \"**/*.scss\"",
"stylelint:fix": "stylelint --fix \"**/*.scss\""
},
"repository": {
"type": "git",
@ -14,6 +16,9 @@
"author": "Christian Wolf",
"license": "ISC",
"devDependencies": {
"hugo-extended": "^0.121.2"
"hugo-extended": "^0.121.2",
"stylelint": "^16.1.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^13.0.0"
}
}