From 6e93ab92f3aa341a004d53cac1bbfec58dd9fd16 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:13:08 +0800 Subject: [PATCH] add stylelint shareable config for css modules --- .stylelintrc.json | 10 ++++++---- package.json | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index b533bdd6..a0a447bf 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,9 +1,11 @@ { - "extends": ["stylelint-config-standard", "stylelint-config-prettier"], + "extends": [ + "stylelint-config-standard", + "stylelint-config-css-modules", + "stylelint-config-prettier" + ], "rules": { "declaration-empty-line-before": null, - "no-descending-specificity": null, - "selector-pseudo-class-no-unknown": null, - "selector-pseudo-element-colon-notation": null + "no-descending-specificity": null } } diff --git a/package.json b/package.json index 7b6a2ec0..1e7ac6cf 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "prettier": "1.16.3", "slash2": "^2.0.0", "stylelint": "^9.10.1", + "stylelint-config-css-modules": "^1.3.0", "stylelint-config-prettier": "^4.0.0", "stylelint-config-standard": "^18.2.0", "tslint": "^5.12.1",