Browse Source

Add linting scripts

Ben Dwyer 4 năm trước cách đây
mục cha
commit
bc9d5163fa
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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",