From 4214a351babfa5a524611ab122e687ff11fb8694 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 13 Apr 2022 18:22:07 -0700 Subject: [PATCH] Fix stylelint --- .stylelintrc.json | 7 +++++-- Makefile | 2 +- package.json | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 7fd1f96..3a9dc4d 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -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 } } diff --git a/Makefile b/Makefile index f469fad..34c9c1f 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/package.json b/package.json index 772ee21..b44329e 100644 --- a/package.json +++ b/package.json @@ -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" } }