admin-vben/stylelint.config.js

74 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-03-18 13:10:54 +00:00
module.exports = {
root: true,
2023-07-29 10:46:43 +00:00
extends: ['stylelint-config-standard', 'stylelint-config-recess-order'],
plugins: ['stylelint-order', 'stylelint-prettier'],
// customSyntax: 'postcss-html',
overrides: [
{
files: ['**/*.(css|html|vue)'],
customSyntax: 'postcss-html',
},
{
files: ['*.less', '**/*.less'],
customSyntax: 'postcss-less',
extends: ['stylelint-config-standard', 'stylelint-config-recommended-vue'],
},
],
2023-03-18 13:10:54 +00:00
rules: {
2023-07-29 10:46:43 +00:00
'prettier/prettier': true,
'at-rule-no-unknown': null,
'selector-not-notation': null,
'import-notation': null,
2023-03-18 13:10:54 +00:00
'function-no-unknown': null,
'selector-class-pattern': null,
'selector-pseudo-class-no-unknown': [
true,
{
2023-07-29 10:46:43 +00:00
ignorePseudoClasses: ['global', 'deep'],
},
2023-03-18 13:10:54 +00:00
],
'selector-pseudo-element-no-unknown': [
true,
{
2023-07-29 10:46:43 +00:00
ignorePseudoElements: ['v-deep'],
},
2023-03-18 13:10:54 +00:00
],
2023-07-29 10:46:43 +00:00
'media-feature-range-notation': null,
2023-03-18 13:10:54 +00:00
'no-empty-source': null,
2023-07-29 10:46:43 +00:00
'string-quotes': null,
2023-03-18 13:10:54 +00:00
'named-grid-areas-no-invalid': null,
'no-descending-specificity': null,
'font-family-no-missing-generic-family-keyword': null,
'rule-empty-line-before': [
'always',
{
2023-07-29 10:46:43 +00:00
ignore: ['after-comment', 'first-nested'],
},
2023-03-18 13:10:54 +00:00
],
'order/order': [
[
'dollar-variables',
'custom-properties',
'at-rules',
'declarations',
{
type: 'at-rule',
2023-07-29 10:46:43 +00:00
name: 'supports',
},
{
type: 'at-rule',
name: 'media',
2023-03-18 13:10:54 +00:00
},
{
type: 'at-rule',
2023-07-29 10:46:43 +00:00
name: 'include',
2023-03-18 13:10:54 +00:00
},
2023-07-29 10:46:43 +00:00
'rules',
2023-03-18 13:10:54 +00:00
],
2023-07-29 10:46:43 +00:00
{ severity: 'error' },
],
2023-03-18 13:10:54 +00:00
},
ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'],
}