28 lines
988 B
JavaScript
28 lines
988 B
JavaScript
const stylelintConfig = {
|
|
extends: [
|
|
'stylelint-config-standard',
|
|
'stylelint-config-html/astro',
|
|
'stylelint-config-clean-order',
|
|
],
|
|
overrides: [
|
|
{
|
|
files: ['src/styles/mixins/**/*.css'],
|
|
rules: { 'nesting-selector-no-missing-scoping-root': null },
|
|
},
|
|
],
|
|
rules: {
|
|
'declaration-empty-line-before': null,
|
|
'declaration-block-no-redundant-longhand-properties': null,
|
|
'no-descending-specificity': null,
|
|
'selector-class-pattern': null,
|
|
'custom-property-pattern': null,
|
|
'at-rule-no-unknown': [true, { ignoreAtRules: ['custom-media', 'define-mixin', 'mixin'] }],
|
|
'at-rule-prelude-no-invalid': [true, { ignoreAtRules: ['define-mixin', 'mixin'] }],
|
|
'function-no-unknown': [true, { ignoreFunctions: ['/^\\$[a-zA-Z][\\w-]*$/'] }],
|
|
'value-keyword-case': ['lower', { ignoreKeywords: ['/^\\$[a-zA-Z][\\w-]*$/'] }],
|
|
},
|
|
ignoreFiles: ['dist/**', '.astro/**', 'node_modules/**', 'public/**'],
|
|
}
|
|
|
|
export default stylelintConfig
|