Skip to content

Commit ac7a53c

Browse files
authored
fix: init Stylelint for CSS (#472)
* added stylelint for css * added style:lint to pck.json and edited conflicting files * added unknown-units rule and edited corresponding file
1 parent cfb5291 commit ac7a53c

File tree

7 files changed

+1277
-84
lines changed

7 files changed

+1277
-84
lines changed

.stylelintrc.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
rules:
2+
block-closing-brace-empty-line-before: never
3+
block-no-empty: true
4+
block-opening-brace-space-before: always
5+
color-no-invalid-hex: true
6+
declaration-bang-space-before: always
7+
declaration-block-trailing-semicolon: always
8+
declaration-colon-space-after: always
9+
declaration-colon-space-before: never
10+
declaration-property-value-blacklist: [ { '/^outline$/': 'none' }]
11+
font-family-no-duplicate-names: true
12+
indentation: 4
13+
keyframe-declaration-no-important: true
14+
length-zero-no-unit: true
15+
max-empty-lines: 2
16+
no-duplicate-selectors: true
17+
no-empty-source: true
18+
no-eol-whitespace: true
19+
no-extra-semicolons: true
20+
number-leading-zero: always
21+
number-no-trailing-zeros: true
22+
property-case: lower
23+
selector-list-comma-space-after: always-single-line
24+
selector-list-comma-space-before: never
25+
selector-pseudo-class-no-unknown: true
26+
selector-pseudo-element-case: lower
27+
selector-pseudo-element-colon-notation: single
28+
string-no-newline: true
29+
unit-case: lower
30+
unit-no-unknown: true

0 commit comments

Comments
 (0)