From dc39e24d18368a533d5de39ea0051bdc370de3a9 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Tue, 15 Feb 2022 17:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4stylelint=E8=A7=84=E5=88=99?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .stylelintrc | 4 +--- package.json | 3 --- pnpm-lock.yaml | 27 -------------------------- src/assets/styles/resources/utils.scss | 3 ++- 4 files changed, 3 insertions(+), 34 deletions(-) diff --git a/.stylelintrc b/.stylelintrc index a315ed5a..9a6b84cb 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,8 +1,6 @@ { "extends": [ "stylelint-config-standard", - "stylelint-config-standard-scss", - "stylelint-config-recommended", "stylelint-config-recommended-vue/scss" ], "overrides": [ @@ -27,11 +25,11 @@ "selector-class-pattern": null, "scss/no-global-function-names": null, "scss/at-import-partial-extension": null, - "scss/double-slash-comment-empty-line-before": null, "function-no-unknown": [ true, { "ignoreFunctions": [ + "v-bind", "lighten", "darken" ] diff --git a/package.json b/package.json index 77cc2a70..3baf9240 100644 --- a/package.json +++ b/package.json @@ -49,12 +49,9 @@ "postcss-scss": "^4.0.3", "sass": "^1.49.7", "stylelint": "^14.5.0", - "stylelint-config-html": "^1.0.0", - "stylelint-config-recommended": "^7.0.0", "stylelint-config-recommended-scss": "^5.0.2", "stylelint-config-recommended-vue": "^1.3.0", "stylelint-config-standard": "^25.0.0", - "stylelint-config-standard-scss": "^3.0.0", "stylelint-scss": "^4.1.0", "svgo": "^2.8.0", "unplugin-auto-import": "^0.5.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6f99da52..26674f5c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,12 +30,9 @@ specifiers: qs: ^6.10.3 sass: ^1.49.7 stylelint: ^14.5.0 - stylelint-config-html: ^1.0.0 - stylelint-config-recommended: ^7.0.0 stylelint-config-recommended-scss: ^5.0.2 stylelint-config-recommended-vue: ^1.3.0 stylelint-config-standard: ^25.0.0 - stylelint-config-standard-scss: ^3.0.0 stylelint-scss: ^4.1.0 svgo: ^2.8.0 tinymce: ^5.10.3 @@ -89,12 +86,9 @@ devDependencies: postcss-scss: 4.0.3 sass: 1.49.7 stylelint: 14.5.0 - stylelint-config-html: 1.0.0_2fdfe057bbf58b3dfbbb46d8950182ee - stylelint-config-recommended: 7.0.0_stylelint@14.5.0 stylelint-config-recommended-scss: 5.0.2_stylelint@14.5.0 stylelint-config-recommended-vue: 1.3.0_2fdfe057bbf58b3dfbbb46d8950182ee stylelint-config-standard: 25.0.0_stylelint@14.5.0 - stylelint-config-standard-scss: 3.0.0_stylelint@14.5.0 stylelint-scss: 4.1.0_stylelint@14.5.0 svgo: 2.8.0 unplugin-auto-import: 0.5.11_@vueuse+core@7.6.2+vite@2.8.2 @@ -5328,27 +5322,6 @@ packages: stylelint: 14.5.0 dev: true - /stylelint-config-standard-scss/3.0.0_stylelint@14.5.0: - resolution: {integrity: sha512-zt3ZbzIbllN1iCmc94e4pDxqpkzeR6CJo5DDXzltshuXr+82B8ylHyMMARNnUYrZH80B7wgY7UkKTYCFM0UUyw==} - peerDependencies: - stylelint: ^14.0.0 - dependencies: - stylelint: 14.5.0 - stylelint-config-recommended-scss: 5.0.2_stylelint@14.5.0 - stylelint-config-standard: 24.0.0_stylelint@14.5.0 - transitivePeerDependencies: - - postcss - dev: true - - /stylelint-config-standard/24.0.0_stylelint@14.5.0: - resolution: {integrity: sha512-+RtU7fbNT+VlNbdXJvnjc3USNPZRiRVp/d2DxOF/vBDDTi0kH5RX2Ny6errdtZJH3boO+bmqIYEllEmok4jiuw==} - peerDependencies: - stylelint: ^14.0.0 - dependencies: - stylelint: 14.5.0 - stylelint-config-recommended: 6.0.0_stylelint@14.5.0 - dev: true - /stylelint-config-standard/25.0.0_stylelint@14.5.0: resolution: {integrity: sha512-21HnP3VSpaT1wFjFvv9VjvOGDtAviv47uTp3uFmzcN+3Lt+RYRv6oAplLaV51Kf792JSxJ6svCJh/G18E9VnCA==} peerDependencies: diff --git a/src/assets/styles/resources/utils.scss b/src/assets/styles/resources/utils.scss index f426b756..c3686ffc 100644 --- a/src/assets/styles/resources/utils.scss +++ b/src/assets/styles/resources/utils.scss @@ -12,7 +12,8 @@ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - } @else { + } + @else { /* stylelint-disable-next-line value-no-vendor-prefix */ display: -webkit-box; -webkit-box-orient: vertical;