Skip to content

Commit 3957b40

Browse files
xf-lunny
authored andcommitted
Add less linter via npx (#6936)
1 parent c0fc6cd commit 3957b40

20 files changed

+2155
-427
lines changed

.lesshintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"idSelector": false,
3+
"importPath": false,
4+
"importantRule": false,
5+
"maxCharPerLine": false,
6+
"propertyOrdering": false,
7+
"qualifyingElement": false,
8+
"spaceAroundComma": false,
9+
"stringQuotes": "double",
10+
"universalSelector": false,
11+
"zeroUnit": "no_unit"
12+
}

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ generate-stylesheets:
388388
exit 1; \
389389
fi;
390390
$(eval BROWSERS := "> 1%, last 2 firefox versions, last 2 safari versions, ie 11")
391+
npx lesshint public/less/
391392
npx lessc --clean-css="--s0 -b" public/less/index.less public/css/index.css
392393
$(foreach file, $(filter-out public/less/themes/_base.less, $(wildcard public/less/themes/*)),npx lessc --clean-css="--s0 -b" public/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
393394
$(foreach file, $(wildcard public/css/*),npx postcss --use autoprefixer --autoprefixer.browsers $(BROWSERS) -o $(file) $(file);)

0 commit comments

Comments
 (0)