mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-22 02:18:39 +01:00
14280ad7ea
- Rewrite all styles to use logical properties - Update Stylelint configuration to include logical properties checks
35 lines
1017 B
JavaScript
35 lines
1017 B
JavaScript
module.exports = {
|
||
extends: '@wagtail/stylelint-config-wagtail',
|
||
rules: {
|
||
'scss/at-rule-no-unknown': [
|
||
true,
|
||
{
|
||
ignoreAtRules: [
|
||
'tailwind',
|
||
'apply',
|
||
'variants',
|
||
'responsive',
|
||
'screen',
|
||
'layer',
|
||
],
|
||
},
|
||
],
|
||
'no-invalid-position-at-import-rule': [
|
||
true,
|
||
{
|
||
ignoreAtRules: ['tailwind', 'use'],
|
||
},
|
||
],
|
||
// Would be valuable for strict BEM components but is too hard to enforce with legacy code.
|
||
'no-descending-specificity': null,
|
||
// 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,
|
||
},
|
||
};
|