Skip to content

Commit

Permalink
Update stylelint-related packages (#536)
Browse files Browse the repository at this point in the history
npm i {stylelint{,-config-{standard-scss,wikimedia}},@namics/stylelint-bem}@latest

Most of the changes are made by `npm run fix:stylelint`; removing the
now-unused disabling of plugin/stylelint-bem-namics in LanguageInput and
LexicalCategoryInput was done manually.

Bug: T348108
  • Loading branch information
lucaswerkmeister authored Oct 9, 2023
1 parent db4e81c commit e9e4beb
Show file tree
Hide file tree
Showing 9 changed files with 1,117 additions and 415 deletions.
1,494 changes: 1,098 additions & 396 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"vuex": "^4.0.2"
},
"devDependencies": {
"@namics/stylelint-bem": "^8.1.0",
"@namics/stylelint-bem": "^9.0.0",
"@rushstack/eslint-patch": "^1.3.2",
"@types/jest": "^29.5.5",
"@types/lodash": "^4.14.199",
Expand All @@ -78,10 +78,10 @@
"prettier": "^2.8.8",
"sass": "^1.69.0",
"start-server-and-test": "^2.0.0",
"stylelint": "^14.16.1",
"stylelint": "^15.10.3",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard-scss": "^6.1.0",
"stylelint-config-wikimedia": "^0.15.0",
"stylelint-config-standard-scss": "^11.0.0",
"stylelint-config-wikimedia": "^0.16.1",
"ts-jest": "^29.1.1",
"typescript": "~4.7.0",
"vite": "^3.2.7",
Expand Down
6 changes: 3 additions & 3 deletions src/components/LanguageInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ export default {
</template>

<style lang="scss">
@import "@wmde/wikit-tokens/variables";
@import '@wmde/wikit-tokens/variables';
/* stylelint-disable plugin/stylelint-bem-namics, selector-class-pattern */
/* stylelint-disable selector-class-pattern */
.wbl-snl-language-lookup .wikit .wikit-Lookup__label-wrapper {
gap: $dimension-spacing-xsmall;
}
/* stylelint-enable plugin/stylelint-bem-namics, selector-class-pattern */
/* stylelint-enable selector-class-pattern */
</style>
2 changes: 1 addition & 1 deletion src/components/LemmaInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default {
</template>

<style lang="scss">
@import "@wmde/wikit-tokens/variables";
@import '@wmde/wikit-tokens/variables';
/* stylelint-disable plugin/stylelint-bem-namics, selector-class-pattern */
.wbl-snl-lemma-input.wikit .wikit-TextInput__label-wrapper {
Expand Down
6 changes: 3 additions & 3 deletions src/components/LexicalCategoryInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export default {
</template>

<style lang="scss">
@import "@wmde/wikit-tokens/variables";
/* stylelint-disable plugin/stylelint-bem-namics, selector-class-pattern */
@import '@wmde/wikit-tokens/variables';
/* stylelint-disable selector-class-pattern */
.wbl-snl-lexical-category-lookup .wikit .wikit-Lookup__label-wrapper {
gap: $dimension-spacing-xsmall;
}
/* stylelint-enable plugin/stylelint-bem-namics, selector-class-pattern */
/* stylelint-enable selector-class-pattern */
</style>
4 changes: 2 additions & 2 deletions src/components/NewLexemeForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ export default {
</template>

<style scoped lang="scss">
@import "@wmde/wikit-tokens/variables";
@import "@wmde/wikit-vue-components/src/styles/mixins/Typography";
@import '@wmde/wikit-tokens/variables';
@import '@wmde/wikit-vue-components/src/styles/mixins/Typography';
.wbl-snl-form {
& > * + * {
Expand Down
6 changes: 3 additions & 3 deletions src/components/RequiredAsterisk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ export default {
</template>

<style lang="scss" scoped>
@import "@wmde/wikit-tokens/variables";
@import '@wmde/wikit-tokens/variables';
.wbl-snl-required-asterisk {
font-size: $font-size-xxlarge;
line-height: 0;
&:not(:first-child) {
&:not( :first-child ) {
margin-inline-start: $dimension-spacing-small;
}
&:not(:last-child) {
&:not( :last-child ) {
margin-inline-end: $dimension-spacing-small;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SearchExisting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const searchMessage = computed( () => messages.get(
</template>

<style lang="scss" scoped>
@import "@wmde/wikit-tokens/variables";
@import "@wmde/wikit-vue-components/src/styles/mixins/Typography";
@import '@wmde/wikit-tokens/variables';
@import '@wmde/wikit-vue-components/src/styles/mixins/Typography';
.wbl-snl-search-existing {
@include body;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SpellingVariantInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default {
</template>

<style lang="scss">
@import "@wmde/wikit-tokens/variables";
@import '@wmde/wikit-tokens/variables';
.wbl-snl-spelling-variant-lookup {
/* stylelint-disable plugin/stylelint-bem-namics, selector-class-pattern */
Expand Down

0 comments on commit e9e4beb

Please sign in to comment.