From cdab0378a7ac3c3cace3f77db16e6a1eae19b01c Mon Sep 17 00:00:00 2001 From: mateuszpmroz Date: Wed, 1 Apr 2020 16:07:49 +0200 Subject: [PATCH] modify lint-staged to be runned also on js and jsx files --- package.json | 5 ++--- screen/selftest.js | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 83e09e56e3..e982128c5a 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "test": "npm run unit && npm run jest", "jest": "node node_modules/jest/bin/jest.js tests/integration/*", "lint": "eslint *.js screen/**/*.js screen/ class/ models/ loc/ tests/integration/", - "lint:fix": "npm lint --fix", + "lint:fix": "npm run lint --fix", "unit": "./node_modules/.bin/mocha tests/unit/*" }, "jest": { @@ -156,8 +156,7 @@ "stream": "stream-browserify" }, "lint-staged": { - "src/**/*.{ts,tsx}": [ - "npm test", + "./**/*.{ts,tsx,js,jsx}": [ "npm run lint:fix" ] }, diff --git a/screen/selftest.js b/screen/selftest.js index 8fcdeca521..ed6f3cb1e2 100644 --- a/screen/selftest.js +++ b/screen/selftest.js @@ -67,8 +67,6 @@ export default class Selftest extends Component { isOk = false; } - // - // utxos as received from blockcypher let utxos = [ {