config: rename lint:check to prelint so it runs before every lint

This commit is contained in:
Xymorot 2019-12-16 21:25:50 +01:00
parent 8cc332f804
commit cef724aa21
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
"posttest": "npm run test:after",
"coverage:fast": "nyc npm run test:fast",
"coverage": "nyc npm run test",
"lint:check": "eslint --print-config forge.config.js | eslint-config-prettier-check",
"prelint": "eslint --print-config forge.config.js | eslint-config-prettier-check",
"lint": "eslint ./**/*.{js,ts} --max-warnings 1",
"lint:fix": "eslint . --fix",
"prettier": "prettier --ignore-path .gitignore -c **/*.{html,handlebars,json,{c,sc,sa,le}ss,yml,svelte,md,ts,js}",
@ -42,7 +42,7 @@
"fix": "npm run lint:check && npm run lint:fix && npm run prettier:fix",
"forge:make": "electron-forge --platform win32 --arch x64 make",
"forge": "npm audit && npm run build && npm run forge:make",
"precommit": "npm run build && npm run prettier && npm run lint:check && npm run lint && npm run coverage:fast",
"precommit": "npm run build && npm run prettier && npm run lint && npm run coverage:fast",
"prepush": "npm run build && npm run coverage"
},
"dependencies": {