Switch to using resin-lint for automatic lint fixing

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-02-07 15:17:25 +00:00
parent 3a8209f4ba
commit ab63f46b7e
3 changed files with 772 additions and 986 deletions

View File

@ -3,9 +3,7 @@
"resin-lint"
],
"*.ts": [
"prettier --config ./node_modules/resin-lint/config/.prettierrc --write",
"resin-lint --typescript --no-prettier",
"git add"
"resin-lint --typescript --fix",
],
"test/**/*.coffee": [
"resin-lint --tests"

1746
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
"coverage": "istanbul report text && istanbul report html",
"test:fast": "TEST=1 mocha --opts test/fast-mocha.opts",
"test:debug": "npm run test:build && TEST=1 mocha --inspect-brk",
"prettify": "prettier --config ./node_modules/resin-lint/config/.prettierrc --write \"{src,test,typings}/**/*.ts\"",
"prettify": "resin-lint --typescript --fix src/ test/ typings/",
"typescript:test-build": "tsc --project tsconfig.json",
"typescript:release": "tsc --project tsconfig.release.json && cp -r build/src/* build && rm -rf build/src",
"coffeescript:test": "coffee -m -c -o build .",
@ -83,13 +83,13 @@
"express": "^4.0.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"fp-ts": "^2.0.0",
"husky": "^1.3.0",
"husky": "^4.2.1",
"io-ts": "^2.0.1",
"io-ts-reporters": "^1.0.0",
"istanbul": "^0.4.5",
"json-mask": "^0.3.8",
"knex": "~0.15.2",
"lint-staged": "^8.1.0",
"lint-staged": "^10.0.7",
"livepush": "^2.0.2",
"lockfile": "^1.0.1",
"lodash": "^4.17.13",
@ -105,7 +105,7 @@
"prettier": "1.19.1",
"pretty-ms": "^4.0.0",
"request": "^2.51.0",
"resin-lint": "^3.1.1",
"resin-lint": "^3.2.4",
"resin-register-device": "^3.0.0",
"resumable-request": "^2.0.0",
"rimraf": "^2.6.2",