From 4339d1d29e661073ca0b764368fff6ef40c21d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3=E8=80=81=E6=9C=B1?= Date: Mon, 11 Feb 2019 18:19:34 +0800 Subject: [PATCH] support stylelint declaration-block-no-ignored-properties rule --- .stylelintrc.json | 4 +++- package.json | 1 + src/components/DescriptionList/index.less | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index a0a447bf..8e106916 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -4,8 +4,10 @@ "stylelint-config-css-modules", "stylelint-config-prettier" ], + "plugins": ["stylelint-declaration-block-no-ignored-properties"], "rules": { "declaration-empty-line-before": null, - "no-descending-specificity": null + "no-descending-specificity": null, + "plugin/declaration-block-no-ignored-properties": true } } diff --git a/package.json b/package.json index 1e7ac6cf..15d5d8b8 100644 --- a/package.json +++ b/package.json @@ -93,6 +93,7 @@ "stylelint-config-css-modules": "^1.3.0", "stylelint-config-prettier": "^4.0.0", "stylelint-config-standard": "^18.2.0", + "stylelint-declaration-block-no-ignored-properties": "^1.1.0", "tslint": "^5.12.1", "tslint-config-prettier": "^1.17.0", "tslint-react": "^3.6.0", diff --git a/src/components/DescriptionList/index.less b/src/components/DescriptionList/index.less index cc1ae33a..6c5db1f4 100644 --- a/src/components/DescriptionList/index.less +++ b/src/components/DescriptionList/index.less @@ -20,7 +20,6 @@ // Line-height is 22px IE dom height will calculate error line-height: 20px; padding-bottom: 16px; - margin-right: 8px; color: @heading-color; white-space: nowrap; display: table-cell;