mirror of
https://github.com/WordPress/create-block-theme.git
synced 2025-10-03 16:11:13 +08:00
Use npm:wp-prettier instead of prettier
This commit is contained in:
parent
3014f81a4e
commit
882dbdda16
3 changed files with 21 additions and 3344 deletions
|
@ -1,8 +1,8 @@
|
||||||
module.exports = (api) => {
|
module.exports = ( api ) => {
|
||||||
api.cache(true);
|
api.cache( true );
|
||||||
|
|
||||||
return {
|
return {
|
||||||
presets: ['@wordpress/babel-preset-default'],
|
presets: [ '@wordpress/babel-preset-default' ],
|
||||||
plugins: ['@emotion/babel-plugin', 'babel-plugin-inline-json-import'],
|
plugins: [ '@emotion/babel-plugin', 'babel-plugin-inline-json-import' ],
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
3354
package-lock.json
generated
3354
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -21,7 +21,7 @@
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
"@wordpress/block-library": "^8.2.0",
|
"@emotion/babel-plugin": "^11.10.5",
|
||||||
"@wordpress/browserslist-config": "^5.8.0",
|
"@wordpress/browserslist-config": "^5.8.0",
|
||||||
"@wordpress/element": "^5.2.0",
|
"@wordpress/element": "^5.2.0",
|
||||||
"@wordpress/prettier-config": "^2.9.0",
|
"@wordpress/prettier-config": "^2.9.0",
|
||||||
|
@ -30,6 +30,7 @@
|
||||||
"babel-plugin-inline-json-import": "^0.3.2",
|
"babel-plugin-inline-json-import": "^0.3.2",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.1.0",
|
"lint-staged": "^13.1.0",
|
||||||
|
"prettier": "npm:wp-prettier@2.6.2",
|
||||||
"semver": "^7.3.8",
|
"semver": "^7.3.8",
|
||||||
"simple-git": "^3.14.1"
|
"simple-git": "^3.14.1"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue