Skip to content

Commit

Permalink
Incorporate some stylelint changes from trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Oct 25, 2024
1 parent ad53be0 commit 1b5921a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 25 deletions.
33 changes: 22 additions & 11 deletions packages/stylelint-config/test/selectors-invalid.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
.foo > .bar {
margin: 0;
#commentForm { /* Avoid camelcase. */
margin: 0;
}

a a {
margin: 0;
#comment_form { /* Avoid underscores. */
margin: 0;
}

div > a {
margin: 0;
div#comment_form { /* Avoid over-qualification. */
margin: 0;
}

p .class {
margin: 0;
#c1-xr { /* What is a c1-xr?! Use a better name. */
margin: 0;
}

span .class:after {
margin: 0;
input[type='text'] { /* Should be [type="text"] */
line-height: 110% /* Also doubly incorrect */
}

#Selector {
color: #000;
}

.selectorA {
color: #000;
}

.selector:after {
color: #000;
}
/*# sourceMappingURL=selectors-invalid.css.map */
24 changes: 10 additions & 14 deletions packages/stylelint-config/test/selectors-valid.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
.foo > .bar {
margin: 0;
#comment-form {
margin: 1em 0;
}

a.foo {
margin: 0;
input[type="text"] {
line-height: 1.1;
}

.foo > div {
margin: 0;
.selector::after {
color: #000;
}

p,
p .foo,
p .baz {
margin: 0;
.selector-class {
color: #000;
}

span,
span .foo::after {
color: #000;
#selector-id {
color: #000;
}
/*# sourceMappingURL=selectors-valid.css.map */

0 comments on commit 1b5921a

Please sign in to comment.