Error in Vercel Pipeline while creating a build for react + vite + eslint + prettier +husky How can I avoid my build getting failed, should we skip precommits rules while creating build or not, if yes then what are changes do I need to make in package.json
My package.json file
{
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --fix --max-warnings=0",
"format": "prettier . --write",
"prepare": "husky install"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.9.0"
},
"devDependencies": {
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react-swc": "^3.0.0",
"autoprefixer": "^10.4.14",
"eslint": "^7.32.0 || ^8.2.0",
"eslint-config-prettier": "^8.7.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"tailwindcss": "^3.2.7",
"vite": "^4.1.0"
},
"lint-staged": {
"*.jsx": "yarn run lint",
"*.--write": "yarn run format"
}
}