forked from Samsung/ONE-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Use stylelint in place of csslint (Samsung#1114)
* [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
1 parent
bd7c4ae
commit 3d3c50c
Showing
5 changed files
with
1,550 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
Oops, something went wrong.