Files
vue-ts-example-2025/stylelint.config.mjs
严浩 ac572c6844
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Successful in 2m16s
CI/CD Pipeline / playwright (push) Successful in 3m29s
/ playwright (push) Successful in 1m54s
/ build-and-test (push) Failing after 1m54s
build(stylelint): 将配置文件从 TypeScript 转换为 ESM 模块
将 stylelint 配置文件从 `.ts` 重命名为 `.mjs`,
2025-10-16 01:53:48 +08:00

35 lines
841 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** @type {import('stylelint').Config} */
export default {
extends: [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-config-standard-scss',
'stylelint-config-standard-vue/scss',
],
overrides: [
{
files: ['**/*.scss'],
customSyntax: 'postcss-scss',
},
{
files: ['**/*.less'],
customSyntax: 'postcss-less',
},
{
files: ['**/*.vue'],
customSyntax: 'postcss-html',
},
],
rules: {
// 允许非 kebab-case 的 IDVue 使用 __ID__ 约定)
'selector-id-pattern': null,
// >>>>>
// 禁用默认的 at-rule-no-unknown使用 SCSS 专用的规则
// 'at-rule-no-unknown': null,
// SCSS 专用的 at-rule 规则会自动处理 @include, @mixin 等
// 'scss/at-rule-no-unknown': true,
// <<<<<
},
};