Используем stylelint-config-recommended-scss вместо stylelint-config-standard-scss + настройка severity

This commit is contained in:
2026-09-02 23:03:33 +04:00
parent 3f2566b9d1
commit 2fc1a44b6c
3 changed files with 127 additions and 116 deletions

View File

@@ -14,42 +14,33 @@ export default {
'no-invalid-double-slash-comments': null,
'no-invalid-position-declaration': [true, { ignoreAtRules: ['media'] }],
'property-disallowed-list': [
'animation',
'background',
'border',
'flex',
'font',
'grid',
'margin',
'padding',
'transition',
['animation', 'background', 'border', 'flex', 'font', 'grid', 'margin', 'padding', 'transition'],
{
severity: 'warning',
},
],
'color-hex-length': 'long',
'font-weight-notation': 'named-where-possible',
'container-name-pattern': null,
'custom-media-pattern': null,
'custom-property-pattern': null,
'keyframes-name-pattern': null,
'layer-name-pattern': null,
'selector-class-pattern': null,
'selector-id-pattern': null,
'declaration-block-no-redundant-longhand-properties': null,
'scss/double-slash-comment-empty-line-before': null,
'color-hex-length': ['long', { severity: 'warning' }],
'font-weight-notation': ['named-where-possible', { severity: 'warning' }],
'order/order': [
[
{
type: 'at-rule',
name: 'use',
},
'dollar-variables',
'custom-properties',
'declarations',
{
type: 'at-rule',
name: 'include',
},
'at-rules',
'rules',
],
{
type: 'at-rule',
name: 'use',
severity: 'warning',
},
'dollar-variables',
'custom-properties',
'declarations',
{
type: 'at-rule',
name: 'include',
},
'at-rules',
'rules',
],
'order/properties-alphabetical-order': true,
'order/properties-alphabetical-order': [true, { severity: 'warning' }],
},
};

View File

@@ -12,10 +12,10 @@
"access": "public"
},
"dependencies": {
"postcss": "^8.5.6",
"postcss-html": "^1.8.1",
"stylelint-config-standard-scss": "^17.0.0",
"stylelint-order": "^7.0.1"
"postcss": "^8.5.26",
"postcss-html": "^2.0.0",
"stylelint-config-recommended-scss": "^17.0.1",
"stylelint-order": "^8.1.1"
},
"peerDependencies": {
"stylelint": "^17.0.0"