Skip to content

Commit

Permalink
feat: add custom properties checks
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Mar 24, 2021
1 parent aa4d21a commit 93e2682
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 523 deletions.
16 changes: 14 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
],
plugins: [
'stylelint-order',
'stylelint-value-no-unknown-custom-properties',
],
rules: {
/**
Expand Down Expand Up @@ -237,13 +238,14 @@ module.exports = {
{
ignoreProperties: [
'appearance',
'box-orient',
'composes',
'compose-with',
'voice-family',
'-webkit-appearance',
'-webkit-overflow-scrolling',
'-webkit-tap-highlight-color',
'-webkit-line-clamp',
'composes',
'compose-with',
],
ignoreSelectors: [
':export',
Expand Down Expand Up @@ -1393,5 +1395,15 @@ module.exports = {
severity: 'warning',
},
],
/**
* https://github.com/csstools/stylelint-value-no-unknown-custom-properties
* Check custom properties values.
*/
'csstools/value-no-unknown-custom-properties': [
true,
{
severity: 'warning',
},
],
},
};
Loading

0 comments on commit 93e2682

Please sign in to comment.