Add script 'npm run lint:fix' to fix trivial lint errors

Bug: T247004
Change-Id: Id40b82f64a5c29af4a8e2c7935623df6761d25b1
This commit is contained in:
AronDemian 2020-03-05 22:23:16 +01:00
parent 834f4f837f
commit 71ec758beb
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
"scripts": {
"test": "npm -s run lint && npm run doc",
"lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n",
"lint:fix": "npm -s run lint:js -- --fix && npm -s run lint:styles -- --fix",
"lint:js": "eslint --cache --max-warnings 0 .",
"lint:styles": "stylelint \"**/*.{less,css}\"",
"lint:i18n": "banana-checker --requireLowerCase=0 i18n/",