-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infrastructure: Update Stylelint #2077
Conversation
@@ -17,6 +17,8 @@ | |||
] | |||
}, | |||
], | |||
"selector-class-pattern": null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the suppress issues
examples/css/github.css
77:1 ✖ Expected class selector to be kebab-case selector-class-pattern
examples/dialog-modal/css/dialog.css
30:1 ✖ Expected class selector to be kebab-case selector-class-pattern
34:1 ✖ Expected class selector to be kebab-case selector-class-pattern
38:1 ✖ Expected class selector to be kebab-case selector-class-pattern
38:14 ✖ Expected class selector to be kebab-case selector-class-pattern
48:1 ✖ Expected class selector to be kebab-case selector-class-pattern
48:14 ✖ Expected class selector to be kebab-case selector-class-pattern
57:1 ✖ Expected class selector to be kebab-case selector-class-pattern
62:1 ✖ Expected class selector to be kebab-case selector-class-pattern
62:19 ✖ Expected class selector to be kebab-case selector-class-pattern
68:1 ✖ Expected class selector to be kebab-case selector-class-pattern
68:19 ✖ Expected class selector to be kebab-case selector-class-pattern
74:1 ✖ Expected class selector to be kebab-case selector-class-pattern
74:19 ✖ Expected class selector to be kebab-case selector-class-pattern
80:1 ✖ Expected class selector to be kebab-case selector-class-pattern
80:19 ✖ Expected class selector to be kebab-case selector-class-pattern
86:1 ✖ Expected class selector to be kebab-case selector-class-pattern
91:1 ✖ Expected class selector to be kebab-case selector-class-pattern
99:1 ✖ Expected class selector to be kebab-case selector-class-pattern
103:1 ✖ Expected class selector to be kebab-case selector-class-pattern
examples/grid/css/layoutGrids.css
20:3 ✖ Expected class selector to be kebab-case selector-class-pattern
25:1 ✖ Expected class selector to be kebab-case selector-class-pattern
105:1 ✖ Expected class selector to be kebab-case selector-class-pattern
127:1 ✖ Expected id selector to be kebab-case selector-id-pattern
172:1 ✖ Expected class selector to be kebab-case selector-class-pattern
178:1 ✖ Expected class selector to be kebab-case selector-class-pattern
182:1 ✖ Expected class selector to be kebab-case selector-class-pattern
examples/listbox/css/listbox.css
19:17 ✖ Expected id selector to be kebab-case selector-id-pattern
examples/slider/css/slider-color-viewer.css
51:15 ✖ Expected class selector to be kebab-case selector-class-pattern
2d3ef5c
to
fced00e
Compare
@mcking65 the diff is a little ugly, so summarizing the changes a bit:
|
4b7aeb2
to
c44ef2c
Compare
@@ -1,7 +1,7 @@ | |||
.accordion { | |||
margin: 0; | |||
padding: 0; | |||
border: 2px solid hsl(0, 0%, 52%); | |||
border: 2px solid hsl(0deg 0% 52%); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change https://github.com/w3c/aria-practices/wiki/Code-Guide#syntax-1 to say to use spaces instead of commas in rgb()
, hsl()
et. al.?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be autofixed to either "modern" (spaces) or "legacy" (commas)
https://stylelint.io/user-guide/rules/list/color-function-notation
Support seems pretty good, so I think we can go with "modern".
https://caniuse.com/mdn-css_types_color_rgb_function_accepts_alpha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I autofixed the bulk of this using whatever the default is by the preset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can merge this. Updating the wiki is tracked in #2110
Autofix and address most new rules. Ignore the kebab case rules
c44ef2c
to
ad5557d
Compare
@howard-e can you merge? |
Autofix and address most new rules.
Ignore the kebab case rules