-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93eb397
commit 0f55571
Showing
4 changed files
with
53 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export default { | ||
extends: [ | ||
'stylelint-config-html', | ||
'stylelint-config-recommended-scss', | ||
'stylelint-config-recommended-vue/scss', | ||
], | ||
plugins: [ | ||
'stylelint-order', | ||
'@kong/design-tokens/stylelint-plugin', | ||
'@stylistic/stylelint-plugin', | ||
], | ||
rules: { | ||
'order/properties-alphabetical-order': true, | ||
'@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).+$', | ||
{ | ||
message: "Expected custom property \"%s\" to be sourced from @kong/design-tokens with prefix '--kui-'", | ||
}, | ||
], | ||
'custom-property-no-missing-var-function': true, | ||
// Disable the following rules | ||
'no-descending-specificity': null, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.