mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
chore: add lint:fix script for fixing lint errors (#1493)
* chore: Add fmt command for fixing lint errors * rename to lint:fix
This commit is contained in:
parent
d02f8eafe8
commit
ce19a3b445
@ -15,6 +15,7 @@
|
|||||||
"prepare": "cordova-js build > templates/project/assets/www/cordova.js",
|
"prepare": "cordova-js build > templates/project/assets/www/cordova.js",
|
||||||
"test": "npm run lint && npm run cover && npm run java-unit-tests",
|
"test": "npm run lint && npm run cover && npm run java-unit-tests",
|
||||||
"lint": "eslint lib spec test \"templates/cordova/**/!(*.*)\"",
|
"lint": "eslint lib spec test \"templates/cordova/**/!(*.*)\"",
|
||||||
|
"lint:fix": "npm run lint -- --fix",
|
||||||
"unit-tests": "jasmine --config=spec/unit/jasmine.json",
|
"unit-tests": "jasmine --config=spec/unit/jasmine.json",
|
||||||
"cover": "nyc jasmine --config=spec/coverage.json",
|
"cover": "nyc jasmine --config=spec/coverage.json",
|
||||||
"e2e-tests": "jasmine --config=spec/e2e/jasmine.json",
|
"e2e-tests": "jasmine --config=spec/e2e/jasmine.json",
|
||||||
|
Loading…
Reference in New Issue
Block a user