-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dev] Replace sass-lint with stylelint (#86177)
Co-authored-by: Tyler Smalley <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Dave Snider <[email protected]>
- Loading branch information
1 parent
d2de5d0
commit 51ba94d
Showing
151 changed files
with
1,068 additions
and
1,075 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
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,2 @@ | ||
# use stylelint | ||
*.scss |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
x-pack/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss | ||
build | ||
target |
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,84 @@ | ||
plugins: | ||
- stylelint-scss | ||
rules: | ||
color-no-invalid-hex: true | ||
function-calc-no-invalid: true | ||
string-no-newline: true | ||
unit-no-unknown: true | ||
property-no-unknown: | ||
- true | ||
# Used in css modules | ||
- ignoreProperties: | ||
- composes | ||
block-no-empty: true | ||
selector-pseudo-class-no-unknown: | ||
- true | ||
# Used in css modules | ||
- ignorePseudoClasses: | ||
- local | ||
- global | ||
selector-pseudo-element-no-unknown: true | ||
media-feature-name-no-unknown: true | ||
at-rule-no-unknown: | ||
- true | ||
# Sass related mixins | ||
- ignoreAtRules: | ||
- include | ||
- mixin | ||
- if | ||
- else | ||
- each | ||
- extend | ||
- function | ||
- return | ||
- for | ||
comment-no-empty: true | ||
no-duplicate-at-import-rules: true | ||
no-duplicate-selectors: true | ||
no-extra-semicolons: true | ||
alpha-value-notation: number | ||
color-named: never | ||
length-zero-no-unit: true | ||
no-eol-whitespace: true | ||
max-empty-lines: 1 | ||
# no-descending-specificity: true | ||
number-leading-zero: never | ||
color-hex-case: upper | ||
string-quotes: single | ||
indentation: 2 | ||
declaration-block-no-duplicate-properties: | ||
- true | ||
# We use some rare duplicate property values for browser variance | ||
- ignoreProperties: | ||
- font-size | ||
- word-break | ||
- composes | ||
- filter | ||
- background | ||
- width | ||
- transition | ||
- display | ||
|
||
# ($var / 2) rather than ($var/2) | ||
function-calc-no-unspaced-operator: true | ||
|
||
# something { not something{ | ||
block-opening-brace-space-before: always | ||
|
||
# TODO: # Allows input[type=search] | ||
selector-no-qualifying-type: | ||
- true | ||
- ignore: | ||
- attribute | ||
|
||
# Put a line-break between sections of CSS, but allow quicky one-liners for legibility | ||
block-closing-brace-newline-after: | ||
- always-multi-line | ||
- ignoreAtRules: | ||
- if | ||
- else | ||
|
||
# camelCase mixin, function, and variable names | ||
scss/at-mixin-pattern: "^[a-z][a-zA-Z0-9]+$" | ||
scss/at-function-pattern: "^[a-z][a-zA-Z0-9]+$" | ||
scss/dollar-variable-pattern: "^[a-z][a-zA-Z0-9]+$" |
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
1 change: 1 addition & 0 deletions
1
packages/kbn-optimizer/src/__fixtures__/mock_repo/plugins/bar/public/index.scss
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
body { | ||
/* stylelint-disable-next-line color-named */ | ||
color: green; | ||
} |
1 change: 1 addition & 0 deletions
1
...ges/kbn-optimizer/src/__fixtures__/mock_repo/plugins/bar/public/legacy/_other_styles.scss
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
p { | ||
/* stylelint-disable-next-line color-named */ | ||
background-color: rebeccapurple; | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/kbn-optimizer/src/__fixtures__/mock_repo/plugins/bar/public/legacy/styles.scss
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "./other_styles.scss"; | ||
@import './other_styles.scss'; | ||
|
||
body { | ||
width: $globalStyleConstant; | ||
|
Oops, something went wrong.