-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add stylelint to project #841
Changes from all commits
8fd87ec
dafa396
620d386
444d8a4
a42d832
3e56d78
d611e01
50a5bb7
6cf4f0f
0338511
d5983fd
010d912
413a161
abc02d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"rules": { | ||
"selector-class-pattern": [null] | ||
}, | ||
"extends": [ | ||
"stylelint-config-standard-scss", | ||
"stylelint-config-recommended-vue/scss" | ||
] | ||
} |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,8 @@ defineExpose({validate, serializeInput, validationError}); | |
</script> | ||
|
||
<style lang="scss"> | ||
@import '~@wmde/wikit-tokens/dist/_variables.scss'; | ||
/* stylelint-disable-next-line scss/load-no-partial-leading-underscore */ | ||
@import '~@wmde/wikit-tokens/dist/_variables'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops, i think we can remove this. but out of the scope of this task There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I don't think this is part of this task. Is this a leftover from the tokens? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah i guess so. i'll do it as part of the grid system |
||
|
||
.cdx-field__control { | ||
position: relative; | ||
|
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.
Reasoning behind the decision of disabling the
selector-class-pattern
rule:We are loosely following the BEM naming convention and this rule expects classes to be named using kebab case. Installing a plugin to reinforce the BEM convention would mean we also need to update all the class names that are not using it and that is too much overhead for the current task.