Files
zgene 6bed393c12
Backend Tests / backend-unit-test (push) Has been cancelled
Backend Tests / benchmark-test (push) Has been cancelled
CI@main / Node.js v22 (ubuntu-latest) (push) Has been cancelled
Thrift Syntax Validation / validate-thrift (push) Has been cancelled
License Check / License Check (push) Has been cancelled
first commit
2026-05-14 13:29:56 +08:00

40 lines
1.1 KiB
JavaScript

module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-standard-less',
'stylelint-config-clean-order',
],
plugins: ['./plugins/plugin-disallow-nesting-level-one-global.js'],
rules: {
// Variable naming rules to adapt to the code style in the warehouse
'custom-property-pattern': '^([A-Za-z0-9]*)([-_]+[A-Za-z0-9]+)*$',
// There is a problem with judging the less function
'less/no-duplicate-variables': null,
'media-feature-range-notation': null,
'max-nesting-depth': [
3,
{
ignore: ['pseudo-classes'],
ignoreRules: ['/:global/'],
message: 'Expected nesting depth to be no more than 3.',
},
],
'plugin/disallow-first-level-global': true,
'selector-class-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*(_[a-z0-9]+)?$',
{
resolveNestedSelectors: true,
message: 'Expected class pattern is $block-$element_$modifier.',
},
],
'declaration-no-important': true,
'color-function-notation': null,
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind'],
},
],
},
};