浏览代码

Add linting scripts

Ben Dwyer 4 年之前
父节点
当前提交
bc9d5163fa
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      package.json

+ 3 - 1
package.json

@@ -10,7 +10,9 @@
 		"sandbox:push": "./sandbox.sh push",
 		"sandbox:push:ignore": "./sandbox.sh push --ignore",
 		"sandbox:push:force": "./sandbox.sh push --force",
-		"sandbox:watch": "chokidar '**/*' -i '*/node_modules' -i '.git' -c './sandbox.sh push --ignore' --initial"
+		"sandbox:watch": "chokidar '**/*' -i '*/node_modules' -i '.git' -c './sandbox.sh push --ignore' --initial",
+		"lint-css": "wp-scripts lint-style '**/*.scss'",
+		"lint-css:fix": "npm run lint-css -- --fix"
 	},
 	"devDependencies": {
 		"@wordpress/prettier-config": "^1.0.1",