2021-12-23 03:42:22 +01:00
|
|
|
|
module.exports = {
|
|
|
|
|
extends: '@wagtail/stylelint-config-wagtail',
|
|
|
|
|
rules: {
|
2022-02-27 17:08:38 +01:00
|
|
|
|
'scss/at-rule-no-unknown': [
|
|
|
|
|
true,
|
|
|
|
|
{
|
|
|
|
|
ignoreAtRules: [
|
|
|
|
|
'tailwind',
|
|
|
|
|
'apply',
|
|
|
|
|
'variants',
|
|
|
|
|
'responsive',
|
|
|
|
|
'screen',
|
|
|
|
|
'layer',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
'no-invalid-position-at-import-rule': [
|
|
|
|
|
true,
|
|
|
|
|
{
|
|
|
|
|
ignoreAtRules: ['tailwind', 'use'],
|
|
|
|
|
},
|
|
|
|
|
],
|
2021-12-23 03:42:22 +01:00
|
|
|
|
// Would be valuable for strict BEM components but is too hard to enforce with legacy code.
|
|
|
|
|
'no-descending-specificity': null,
|
2022-03-15 14:21:06 +01:00
|
|
|
|
// Override stylelint-config-wagtail’s options to allow all float and clear values for now.
|
|
|
|
|
'declaration-property-value-allowed-list': {
|
|
|
|
|
// 'clear': ['both', 'none'],
|
|
|
|
|
// 'float': ['inline-start', 'inline-end', 'none', 'unset'],
|
|
|
|
|
'text-align': ['start', 'end', 'center'],
|
|
|
|
|
},
|
|
|
|
|
// Disable declaration-strict-value until we are in a position to enforce it.
|
|
|
|
|
'scale-unlimited/declaration-strict-value': null,
|
2021-12-23 03:42:22 +01:00
|
|
|
|
},
|
|
|
|
|
};
|