From 0bf03c4a35ea0f62840818a4d8b57b78e06a28cd Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 17 Jul 2021 18:06:57 +0200 Subject: [PATCH] add a command to automatically lint files --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 9d550579f..ad62060cb 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "build:dir": "yarn build -- --dir -c.compression=store -c.mac.identity=null", "crossenv": "./node_modules/cross-env/dist/bin/cross-env", "lint": "eslint 'ui/**/*.{js,jsx}' && eslint 'web/**/*.{js,jsx}' && eslint 'electron/**/*.js' && flow", + "lint-fix": "eslint --fix 'ui/**/*.{js,jsx}' && eslint --fix 'web/**/*.{js,jsx}' && eslint --fix 'electron/**/*.js' && flow", "format": "prettier 'src/**/*.{js,jsx,scss,json}' --write", "flow-defs": "flow-typed install", "precommit": "lint-staged",