Running make lint will now fix the typescript files

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2020-02-13 11:14:46 +01:00
parent 80e0231727
commit ed90f21188
2 changed files with 2 additions and 4 deletions

View File

@ -124,7 +124,7 @@ TARGETS = \
help \
info \
lint \
lint-js \
lint-ts \
lint-sass \
lint-cpp \
lint-spell \
@ -149,7 +149,7 @@ sass:
node-sass lib/gui/app/scss/main.scss > lib/gui/css/main.css
lint-ts:
resin-lint --typescript typings lib tests scripts/clean-shrinkwrap.ts webpack.config.ts
resin-lint --fix --typescript typings lib tests scripts/clean-shrinkwrap.ts webpack.config.ts
lint-sass:
sass-lint lib/gui/scss

View File

@ -20,7 +20,6 @@
},
"scripts": {
"test": "make lint test sanity-checks",
"prettier": "prettier --config ./node_modules/resin-lint/config/.prettierrc --write \"lib/**/*.ts\" \"lib/**/*.tsx\" \"tests/**/*.ts\" \"webpack.config.ts\" \"scripts/clean-shrinkwrap.ts\"",
"start": "./node_modules/.bin/electron .",
"postshrinkwrap": "ts-node ./scripts/clean-shrinkwrap.ts",
"configure": "node-gyp configure",
@ -39,7 +38,6 @@
},
"lint-staged": {
"./**/*.{ts,tsx}": [
"npm run prettier",
"make lint-ts",
"git add"
]