Skip to content

Commit

Permalink
fix: stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Jun 21, 2024
1 parent 8e8a78f commit 1690b1f
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .stylelintrc.cjs → .stylelintrc.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
extends: [
'stylelint-config-html',
'stylelint-config-recommended-scss',
Expand All @@ -7,22 +7,23 @@ module.exports = {
plugins: [
'stylelint-order',
'@kong/design-tokens/stylelint-plugin',
'@stylistic/stylelint-plugin',
],
rules: {
// Disallow relative font units since we don't know the base font size in other apps
'unit-disallowed-list': ['rem', 'em'],
'order/properties-alphabetical-order': true,
'unit-disallowed-list': [
['rem', 'em'],
],
'@kong/design-tokens/use-proper-token': true,
'@stylistic/indentation': [2, { baseIndentLevel: 0 }],
// Only allow @kong/design-tokens or `--kong-ui-*` CSS custom properties
'custom-property-pattern': [
'^(kui-).+$',
'^(kui).+$',
{
message: "Expected custom property \"%s\" to be sourced from @kong/design-tokens with prefix '--kui-'",
},
],
'@kong/design-tokens/use-proper-token': true,
'custom-property-no-missing-var-function': true,
// Disable the following rules
'custom-property-no-missing-var-function': null,
'no-descending-specificity': null,
},
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@shikijs/markdown-it": "^1.6.3",
"@stylistic/stylelint-plugin": "^2.1.2",
"@types/jsdom": "^21.1.6",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it-attrs": "^4.1.3",
Expand Down
54 changes: 53 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/MarkdownUi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ const markdownPanesMaxHeight = computed((): string => `${props.maxHeight}px`)
:deep() {
.toolbar-button {
&:focus-visible {
&:focus-visible {
border-color: var(--kui-color-border, $kui-color-border);
box-shadow: none;
}
Expand Down

0 comments on commit 1690b1f

Please sign in to comment.