wagtail/.stylelintrc.js

35 wiersze
1017 B
JavaScript
Czysty Wina Historia

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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-wagtails 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,
},
};