Skip to content

Commit

Permalink
[CI] Use stylelint in place of csslint (Samsung#1114)
Browse files Browse the repository at this point in the history
* [CI] Use stylelint in place of csslint

This commit introduces usage of `stylelint` utility instead of
deprecated and unmaintained `csslint`. YAML configuration contains
options to turn errors in existing code into warnings to avoid CI
failure - it's possible to re-enable these restrictions after existing
code re-styling.

ONE-vscode-DCO-1.0-Signed-off-by: Alexander Moiseev <[email protected]>

* Permit type-fest 0.6 and 0.18

* Exclude .stylelint.yml from packaging in .vscodeignore
  • Loading branch information
ai-moiseev authored Jul 29, 2022
1 parent bd7c4ae commit 3d3c50c
Show file tree
Hide file tree
Showing 5 changed files with 1,550 additions and 25 deletions.
33 changes: 33 additions & 0 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
extends: stylelint-config-standard
rules:
alpha-value-notation: [number, { severity: warning }]
block-closing-brace-newline-after: [always, { severity: warning }]
color-function-notation: [modern, { severity: warning }]
color-hex-length: [short, { severity: warning }]
comment-empty-line-before: [always, { severity: warning }]
custom-property-pattern: [null]
declaration-block-no-duplicate-properties: [true, { severity: warning }]
declaration-block-semicolon-newline-after: [always-multi-line, { severity: warning }]
declaration-block-single-line-max-declarations: [8, { severity: warning }]
declaration-block-trailing-semicolon: [always, { severity: warning }]
declaration-colon-space-after: [always, { severity: warning }]
font-family-name-quotes: [always-unless-keyword, { severity: warning }]
indentation: [2, { severity: warning }]
length-zero-no-unit: [true, { severity: warning }]
max-empty-lines: [2, { severity: warning }]
max-line-length: [100, { severity: warning }]
no-descending-specificity: [true, { severity: warning }]
no-duplicate-selectors: [true, { severity: warning }]
no-eol-whitespace: [true, { severity: warning }]
number-no-trailing-zeros: [true, { severity: warning }]
property-no-vendor-prefix: [true, { severity: warning }]
rule-empty-line-before: [null]
selector-attribute-quotes: [never, { severity: warning }]
selector-class-pattern: [null]
selector-combinator-space-after: [always, { severity: warning }]
selector-combinator-space-before: [always, { severity: warning }]
selector-id-pattern: [null]
selector-pseudo-element-colon-notation: [single, { severity: warning }]
shorthand-property-no-redundant-values: [true, { severity: warning }]
string-quotes: [double, { severity: warning }]
value-keyword-case: [lower, { severity: warning }]
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ out/Tests/**
**/.htmlhintrc
**/tsconfig.json
**/.eslintrc.json
**/.stylelintrc.yml
**/format.patch
**/*.map
**/*.ts
12 changes: 12 additions & 0 deletions infra/license/package-judgment.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,24 @@
"permitted": "yes"
},

"[email protected]": {
"licenses": "(MIT OR CC0-1.0)",
"repository": "https://github.com/sindresorhus/type-fest",
"permitted": "yes"
},

"[email protected]": {
"licenses": "(MIT OR CC0-1.0)",
"repository": "https://github.com/sindresorhus/type-fest",
"permitted": "yes"
},

"[email protected]": {
"licenses": "(MIT OR CC0-1.0)",
"repository": "https://github.com/sindresorhus/type-fest",
"permitted": "yes"
},

"[email protected]": {
"licenses": "(MIT OR CC0-1.0)",
"repository": "https://github.com/sindresorhus/type-fest",
Expand Down
Loading

0 comments on commit 3d3c50c

Please sign in to comment.