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.json
file you currently have:Of these,
eslint
,eslint-config-next
andprettier
should 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.