In your package.json file you currently have:
...
"dependencies": {
"@chakra-ui/icons": "^2.0.13",
"@chakra-ui/react": "^2.4.2",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@types/node": "18.11.9",
"@types/react-dom": "18.0.9",
"dotenv": "^16.0.3",
"eslint": "8.28.0",
"eslint-config-next": "^13.0.5",
"firebase": "^9.14.0",
"framer-motion": "^6.5.1",
"next": "13.0.5",
"prettier": "^2.8.0",
"react-dom": "^18.2.0",
"react-faq-component": "^1.3.4",
"react-hook-form": "^7.39.5",
"react-tabs": "^6.0.0",
"react-youtube": "^10.1.0",
"redux": "^4.2.0",
"swiper": "^8.4.5",
"typescript": "4.9.3"
},
...
Of these, eslint, eslint-config-next and prettier should be in devDependencies. This prevents these packages from being deployed to your live environment(s), which cuts down the amount of Javascript you need to ship and also ensures that any security vulnerabilities in your dev packages will not escape your local development environments.
In your
package.jsonfile you currently have:Of these,
eslint,eslint-config-nextandprettiershould be indevDependencies. This prevents these packages from being deployed to your live environment(s), which cuts down the amount of Javascript you need to ship and also ensures that any security vulnerabilities in your dev packages will not escape your local development environments.