From 345c2443be5dc8dae6fd90fd4d5787f9dfff67b1 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 25 Oct 2023 10:35:30 +0800 Subject: [PATCH] chore: stylelint config (cherry picked from commit bf2c59c6e04bb05a933691c368bc318bca3dffe3) --- stylelint.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stylelint.config.js b/stylelint.config.js index b970bd25..890b45bc 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -16,8 +16,8 @@ module.exports = { ignoreAtRules: ['function', 'if', 'each', 'include', 'mixin'] } ], - // 命名规范 - "selector-class-pattern": null, + 'media-query-no-invalid': null, + 'function-no-unknown': null, 'no-empty-source': null, 'named-grid-areas-no-invalid': null, 'unicode-bom': 'never', @@ -215,6 +215,8 @@ module.exports = { extends: ['stylelint-config-recommended', 'stylelint-config-html'], rules: { 'keyframes-name-pattern': null, + 'selector-class-pattern': null, + 'no-duplicate-selectors': null, 'selector-pseudo-class-no-unknown': [ true, {