1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-09 16:02:10 +00:00

Fix stylelint

This commit is contained in:
Rohan Kumar 2022-04-13 18:22:07 -07:00
parent e29aa8c9ca
commit 4214a351ba
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,9 @@
{
"extends": "stylelint-config-standard",
"extends": "stylelint-config-recommended",
"rules": {
"indentation": "tab"
"font-family-no-duplicate-names": [ true, { "ignoreFontFamilyNames": ["monospace"] } ],
"indentation": "tab",
"max-nesting-depth": 1,
"selector-max-compound-selectors": 3
}
}

View file

@ -36,7 +36,7 @@ clean:
.PHONY: lint-css
lint-css:
stylelint --di --rd --rdd $(CSS_DIR)/main.css $(CSS_DIR)/dark.css
pnpx stylelint --di --rd --rdd $(CSS_DIR)/main.css $(CSS_DIR)/dark.css
csslint --quiet $(CSS_DIR)
.PHONY: hint

View file

@ -5,6 +5,8 @@
"@hint/hint-https-only": "^2.4.10",
"@hint/hint-performance-budget": "^2.4.10",
"@lhci/cli": "^0.8.0",
"hint": "^6.1.4"
"hint": "^6.1.4",
"stylelint": "^14.6.1",
"stylelint-config-standard": "^25.0.0"
}
}