From b452c14f0ba0cb2b7e8734c72ef4d6b1f0de5efc Mon Sep 17 00:00:00 2001 From: scottrosen14 Date: Thu, 21 Nov 2024 10:30:46 -0600 Subject: [PATCH] Edit scripts --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ae9e9db2e..04df21f6b 100644 --- a/package.json +++ b/package.json @@ -66,9 +66,9 @@ "build": "react-scripts build", "test": "jest", "eject": "react-scripts eject", - "fix": "eslint --fix --ext js,jsx,ts,tsx . && prettier -w .", - "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,scss}\"", - "lint": "eslint --ext js,jsx --max-warnings 0 . && prettier -c .", + "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", + "lint": "eslint . --ext .js,.jsx,.ts,.tsx", + "lint:fix": "npm run lint --fix && npm run format", "prepare-husky": "husky", "cy:dev": "npm start & wait-on http://localhost:3000 && STAGE_ENV=development cypress run", "cy:prod": "npm run build && STAGE_ENV=production cypress run", @@ -88,8 +88,8 @@ ] }, "lint-staged": { - "*.{js,jsx,ts,tsx}": "eslint --fix", - "*": "prettier -w" + "*.{js,jsx,ts,tsx}": "npm run lint:fix", + "*": "npm run format" }, "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11",