Install Stylelint for CSS styling

This commit is contained in:
Christian Wolf 2024-10-24 12:47:47 +02:00
parent 84361f06c0
commit d0fe145af0
3 changed files with 1452 additions and 0 deletions

4
.stylelintrc.json Normal file
View File

@ -0,0 +1,4 @@
{
"extends": "stylelint-config-standard-scss"
}

1443
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,8 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "vite build", "build": "vite build",
"stylelint": "stylelint assets/css/*.scss assets/css/parts/*.scss",
"stylelint-fix": "stylelint --fix assets/css/*.scss assets/css/parts/*.scss",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {
@ -18,6 +20,9 @@
"nanogallery2": "^3.0.5" "nanogallery2": "^3.0.5"
}, },
"devDependencies": { "devDependencies": {
"stylelint": "^16.10.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-config-standard-scss": "^13.1.0",
"vite": "^5.4.10" "vite": "^5.4.10"
} }
} }