add-prettier: imporve prettier scripts to make it consistent with scripts of eslint
parent
587f4f2091
commit
f40a74ecdd
11
package.json
11
package.json
|
@ -16,17 +16,16 @@
|
|||
"dev": "npm run build:template && npm run build:prism && npm run dev:tool",
|
||||
"dev:tool": "vue-cli-service serve src/nginxconfig/mount.js",
|
||||
"deploy:spaces:comment": "do-vue comment nginxconfig",
|
||||
"test": "npm run test:prettier && npm run test:eslint && npm run test:stylelint && npm run test:i18n-packs && npm run test:jest",
|
||||
"test": "npm run test:prettier:fix && npm run test:eslint && npm run test:stylelint && npm run test:i18n-packs && npm run test:jest",
|
||||
"test:jest": "jest --env=jsdom /test/.*.js?$",
|
||||
"test:fix": "npm run test:eslint:fix",
|
||||
"test:fix": "npm run test:prettier:fix && npm run test:eslint:fix",
|
||||
"test:eslint": "eslint 'src/**/*.{js,vue}' --cache",
|
||||
"test:eslint:fix": "npm run test:eslint -- --fix",
|
||||
"test:stylelint": "stylelint 'src/**/*.scss' --config node_modules/do-bulma/.stylelintrc.json",
|
||||
"test:i18n-packs": "node --es-module-specifier-resolution=node src/nginxconfig/i18n/verify.js",
|
||||
"test:prettier": "npm run prettier:check",
|
||||
"prepare": "husky install",
|
||||
"prettier": "prettier --write 'src/**/*.{js,vue}'",
|
||||
"prettier:check": "prettier 'src/**/*.{js,vue}' --check"
|
||||
"test:prettier": "prettier 'src/**/*.{js,vue}' --check",
|
||||
"test:prettier:fix": "prettier --write 'src/**/*.{js,vue}'",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"jest": {
|
||||
"testRegex": "/test/.*.js?$"
|
||||
|
|
Loading…
Reference in New Issue