mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
Running make lint
will now fix the typescript files
Change-type: patch
This commit is contained in:
parent
80e0231727
commit
ed90f21188
4
Makefile
4
Makefile
@ -124,7 +124,7 @@ TARGETS = \
|
|||||||
help \
|
help \
|
||||||
info \
|
info \
|
||||||
lint \
|
lint \
|
||||||
lint-js \
|
lint-ts \
|
||||||
lint-sass \
|
lint-sass \
|
||||||
lint-cpp \
|
lint-cpp \
|
||||||
lint-spell \
|
lint-spell \
|
||||||
@ -149,7 +149,7 @@ sass:
|
|||||||
node-sass lib/gui/app/scss/main.scss > lib/gui/css/main.css
|
node-sass lib/gui/app/scss/main.scss > lib/gui/css/main.css
|
||||||
|
|
||||||
lint-ts:
|
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:
|
lint-sass:
|
||||||
sass-lint lib/gui/scss
|
sass-lint lib/gui/scss
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "make lint test sanity-checks",
|
"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 .",
|
"start": "./node_modules/.bin/electron .",
|
||||||
"postshrinkwrap": "ts-node ./scripts/clean-shrinkwrap.ts",
|
"postshrinkwrap": "ts-node ./scripts/clean-shrinkwrap.ts",
|
||||||
"configure": "node-gyp configure",
|
"configure": "node-gyp configure",
|
||||||
@ -39,7 +38,6 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"./**/*.{ts,tsx}": [
|
"./**/*.{ts,tsx}": [
|
||||||
"npm run prettier",
|
|
||||||
"make lint-ts",
|
"make lint-ts",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user