config: refactor and add some lint scripts

This commit is contained in:
Xymorot 2019-11-22 21:07:36 +01:00
parent 4f28d63136
commit 8bfaba185b
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,9 @@
"test": "mocha",
"coverage:fast": "nyc npm run test:fast",
"coverage": "nyc npm run test",
"lint:check": "npm run eslint:check && npm run tslint:check",
"lint": "npm run eslint && npm run tslint",
"lint:fix": "npm run eslint:fix && npm run tslint:fix",
"eslint:check": "eslint --print-config gulpfile.js | eslint-config-prettier-check",
"eslint": "eslint .",
"eslint:fix": "eslint . --fix",
@ -26,10 +28,11 @@
"tslint:fix": "tslint -p tsconfig.json --fix",
"prettier": "prettier --ignore-path .gitignore -c **/*.{html,handlebars,json,{c,sc,sa,le}ss,yml,svelte,md,ts,js}",
"prettier:fix": "prettier --ignore-path .gitignore --write **/*.{html,handlebars,json,{c,sc,sa,le}ss,yml,svelte,md,ts,js}",
"fix": "npm run lint:check && npm run lint:fix && npm run prettier:fix",
"forge:start": "electron-forge start",
"forge:make": "electron-forge --platform win32 --arch x64 make",
"forge": "npm run build && npm run forge:make",
"precommit": "npm run build && npm run prettier && npm run eslint:check && npm run tslint:check && npm run lint && npm run coverage:fast",
"precommit": "npm run build && npm run prettier && npm run lint:check && npm run lint && npm run coverage:fast",
"prepush": "npm run coverage"
},
"dependencies": {