Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

978 B
Raw Blame
import stylelint from '@lobehub/stylelint-config';

export default {
  ...stylelint,
  rules: {
    ...stylelint.rules,
    // Review rule: no all-caps labels ("这个为什么要这样大写?不应该有这样的展示,全都改掉").
    'declaration-property-value-disallowed-list': [
      { 'text-transform': ['uppercase'] },
      {
        message:
          'Do not set text-transform: uppercase; write the label in the case it should read.',
      },
    ],
    // Custom properties mirror the camelCase antd token names (--colorText).
    'custom-property-pattern': null,
    // CSS modules scope selectors with :global / :local.
    'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global', 'local'] }],
    // Temporarily disabled for gradual migration
    'declaration-property-value-keyword-no-deprecated': null,
    'declaration-property-value-no-unknown': null,
    'selector-class-pattern': null,
    'selector-id-pattern': null,
  },
};