first commit
This commit is contained in:
27
stylelint.config.mjs
Normal file
27
stylelint.config.mjs
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user