Add Stylelint, lint stylesheet

This commit is contained in:
Ben Goldsworthy 2022-11-30 13:09:17 -06:00
parent ddf235a61b
commit 644b75fdb4
4 changed files with 1873 additions and 154 deletions

3
.stylelintrc.json Normal file
View file

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

1708
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,13 +2,22 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build" "build": "vite build",
"lint": "npm run lint:php; npm run lint:css",
"lint:fix": "npm run lint:php:fix; npm run lint:css:fix",
"lint:php": "./vendor/bin/phpcs",
"lint:php:fix": "./vendor/bin/phpcbf",
"lint:css": "npx stylelint ./public/css/app.css",
"lint:css:fix": "npm run lint:css -- --fix"
}, },
"devDependencies": { "devDependencies": {
"axios": "^0.27", "axios": "^0.27",
"laravel-vite-plugin": "^0.5.0", "laravel-vite-plugin": "^0.5.0",
"lodash": "^4.17.19", "lodash": "^4.17.19",
"postcss": "^8.1.14", "postcss": "^8.1.14",
"stylelint": "^14.15.0",
"stylelint-config-standard": "^29.0.0",
"vite": "^3.0.0" "vite": "^3.0.0"
} },
"dependencies": {}
} }

View file

@ -223,8 +223,7 @@ body {
#routeContainer { #routeContainer {
grid-template-columns: 60% 40%; grid-template-columns: 60% 40%;
grid-template-rows: 100%; grid-template-rows: 100%;
grid-template-areas: grid-template-areas: "map checkins";
"map checkins";
} }
.page-header { .page-header {