Ver Fonte

Add precommit lint to json file (#6855)

arthur791004 há 2 anos atrás
pai
commit
900efd2b5a
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      package.json

+ 3 - 0
package.json

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