Procházet zdrojové kódy

Try: Update and fix lint-style (#5537)

* Update @wordpress packages & lint-staged

* Remove = from lint-style command

* Add defaultSeverity rule and custom-syntax config
Sarah Norris před 3 roky
rodič
revize
69f3feadb4
2 změnil soubory, kde provedl 348 přidání a 242 odebrání
  1. 339 237
      package-lock.json
  2. 9 5
      package.json

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 339 - 237
package-lock.json


+ 9 - 5
package.json

@@ -27,20 +27,24 @@
 	},
 	},
 	"devDependencies": {
 	"devDependencies": {
 		"@octokit/rest": "^18.12.0",
 		"@octokit/rest": "^18.12.0",
-		"@wordpress/prettier-config": "^1.1.1",
-		"@wordpress/scripts": "^19.2.2",
-		"@wordpress/stylelint-config": "^19.1.0",
+		"@wordpress/prettier-config": "^1.1.2",
+		"@wordpress/scripts": "^21.0.2",
+		"@wordpress/stylelint-config": "^20.0.1",
 		"chokidar-cli": "^3.0.0",
 		"chokidar-cli": "^3.0.0",
 		"fs-extra": "^10.0.0",
 		"fs-extra": "^10.0.0",
 		"husky": "^7.0.4",
 		"husky": "^7.0.4",
 		"inquirer": "^8.2.0",
 		"inquirer": "^8.2.0",
-		"lint-staged": "^12.1.7",
+		"lint-staged": "^12.3.4",
 		"lodash": "^4.17.21",
 		"lodash": "^4.17.21",
 		"open": "^8.4.0"
 		"open": "^8.4.0"
 	},
 	},
+	"stylelint": {
+		"extends": "@wordpress/stylelint-config",
+		"defaultSeverity": "warning"
+	},
 	"lint-staged": {
 	"lint-staged": {
 		"*.scss": [
 		"*.scss": [
-			"wp-scripts lint-style --fix="
+			"wp-scripts lint-style --fix --custom-syntax postcss-scss"
 		]
 		]
 	},
 	},
 	"dependencies": {
 	"dependencies": {

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů