From 288c844adbdb32199a10cd46128b79e4f741372f Mon Sep 17 00:00:00 2001 From: BcRikko Date: Mon, 24 Sep 2018 20:30:07 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20stylelint=E3=81=AE=E3=83=AB?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8f26267..74f0956 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "description": "NES.css is NES-style CSS Framework.", "scripts": { + "watch": "npm run build:sass -- --watch", "build": "npm run build:clean && npm run build:stylelint && npm run build:sass && npm run build:autoprefix && npm run build:cleancss", "stylelint": "stylelint scss/**/*.scss", "build:stylelint": "npm run stylelint -- --fix", @@ -48,13 +49,6 @@ "stylelint-config-standard": "^18.2.0", "stylelint-scss": "^3.3.1" }, - "stylelint": { - "extends": [ - "stylelint-config-standard", - "stylelint-config-recess-order", - "./node_modules/prettier-stylelint/config.js" - ] - }, "browserslist": [ "> 1%" ], @@ -62,5 +56,20 @@ "hooks": { "pre-commit": "lint-staged" } + }, + "stylelint": { + "plugins": [ + "stylelint-scss" + ], + "extends": [ + "stylelint-config-standard", + "stylelint-config-recess-order", + "./node_modules/prettier-stylelint/config.js" + ], + "rules": { + "string-quotes": "double", + "at-rule-no-unknown": null, + "scss/at-rule-no-unknown": true + } } }