Bug 1557413 - add a fix:eslint target to package.json
This commit is contained in:
Родитель
0dfae2b3af
Коммит
0f140de5cc
|
@ -143,6 +143,8 @@
|
|||
"tdd": "npm run tddmc",
|
||||
"vendor": "npm-run-all vendor:*",
|
||||
"vendor:react": "node ./bin/vendor-react.js",
|
||||
"fix": "npm-run-all fix:*",
|
||||
"fix:eslint": "npm run lint:eslint -- --fix",
|
||||
"help": "yamscripts help",
|
||||
"yamscripts": "yamscripts compile",
|
||||
"__": "# NOTE: THESE SCRIPTS ARE COMPILED!!! EDIT yamscripts.yml instead!!!"
|
||||
|
|
|
@ -83,3 +83,8 @@ scripts:
|
|||
# Utility scripts for use when vendoring in Node packages
|
||||
vendor:
|
||||
react: node ./bin/vendor-react.js
|
||||
|
||||
fix:
|
||||
# Note that since we're currently running eslint-plugin-prettier,
|
||||
# running fix:eslint will also reformat changed JS files using prettier.
|
||||
eslint: =>lint:eslint -- --fix
|
||||
|
|
Загрузка…
Ссылка в новой задаче