diff --git a/package.json b/package.json index af89daa..fb54081 100644 --- a/package.json +++ b/package.json @@ -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": {