Skip to content

Commit 94f9bc0

Browse files
authored
Stylelint support (#1025)
1 parent f80f4e2 commit 94f9bc0

File tree

8 files changed

+2397
-149
lines changed

8 files changed

+2397
-149
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- run: npm install
3434
- run: npm run build
3535
- run: npm run lint
36+
- run: npm run stylelint
3637
- run: npm run test-unit
3738
- name: "Clean tree"
3839
run: "npm run test-clean-tree"

.stylelintrc.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": ["stylelint-config-standard"],
3+
"plugins": ["stylelint-csstree-validator"],
4+
"ignoreFiles": ["build/**/*.css", "Sources/**/*.css", "docs/**/*.css"],
5+
"rules": {
6+
"csstree/validator": {
7+
"ignoreProperties": ["text-wrap"]
8+
},
9+
"alpha-value-notation": null,
10+
"at-rule-empty-line-before": null,
11+
"color-function-notation": null,
12+
"color-hex-length": null,
13+
"comment-empty-line-before": null,
14+
"custom-property-empty-line-before": null,
15+
"custom-property-pattern": null,
16+
"declaration-block-no-redundant-longhand-properties": null,
17+
"declaration-empty-line-before": null,
18+
"function-url-quotes": null,
19+
"length-zero-no-unit": null,
20+
"media-feature-range-notation": null,
21+
"no-descending-specificity": null,
22+
"property-no-vendor-prefix": null,
23+
"rule-empty-line-before": null,
24+
"selector-attribute-quotes": null,
25+
"selector-class-pattern": null,
26+
"selector-pseudo-element-colon-notation": null,
27+
"shorthand-property-no-redundant-values": null,
28+
"no-duplicate-selectors": null,
29+
"comment-whitespace-inside": null,
30+
"declaration-block-no-duplicate-properties": null,
31+
"value-keyword-case": null,
32+
"keyframes-name-pattern": null,
33+
"block-no-empty": null,
34+
"selector-id-pattern": null,
35+
"declaration-block-no-shorthand-property-overrides": null,
36+
"font-family-no-missing-generic-family-keyword": null,
37+
"font-family-name-quotes": null,
38+
"value-no-vendor-prefix": null
39+
}
40+
}

0 commit comments

Comments
 (0)