瀏覽代碼

Add precommit lint to json file (#6855)

arthur791004 2 年之前
父節點
當前提交
900efd2b5a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      package.json

+ 3 - 0
package.json

@@ -55,6 +55,9 @@
 	"lint-staged": {
 		"*.scss": [
 			"wp-scripts lint-style --fix --custom-syntax postcss-scss"
+		],
+		"*.json": [
+			"wp-scripts format"
 		]
 	},
 	"dependencies": {