From 34d4265d4c567035c6210728f15a48ea896562ba Mon Sep 17 00:00:00 2001 From: kacper-trebacz-atos <89577026+kacper-trebacz-atos@users.noreply.github.com> Date: Thu, 26 Aug 2021 11:56:51 +0200 Subject: [PATCH] make lint fix work on windows Linter did not work for me single quotes '' made eslint find no files. I also changed it to look in src. Otherwise it was looking also in node_modules and it took forever to complete --- ui/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/package.json b/ui/package.json index e9db0662..9e4e7d39 100644 --- a/ui/package.json +++ b/ui/package.json @@ -5,8 +5,8 @@ "license": "UNLICENSED", "private": true, "scripts": { - "lint": "eslint '**/*.{js,ts,tsx,json}' && echo 'Lint complete.'", - "lint:fix": "eslint '**/*.{js,ts,tsx,json}' --fix && echo 'Lint --fix complete.'", + "lint": "eslint src/**/*.{js,ts,tsx,json} && echo 'Lint complete.'", + "lint:fix": "eslint src/**/*.{js,ts,tsx,json} --fix && echo 'Lint --fix complete.'", "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test"