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",