As per the provide guidelines to setup SafeQL in our next.js e-commerce project I updated my Upleveled ESLint config.
CI=true npx install-peerdeps@latest --yarn --dev @upleveled/eslint-config-upleveled node node_modules/@upleveled/eslint-config-upleveled/scripts/install.js
I was getting 'ERR undefined after running the above code.
What was I trying to do? What did I expect to happen?
I followed the steps to disable SafeQL , commented out the code inside .eslintrc.cjs file and then installed ESLint config using the code below
I expected it to be successfully installed and not to show the ERR undefined which worked but when I tried to run Preflight on my project , I got the error that my ESLint config version ( 2.16.2) is outdated and I should update it to 2.16.3 .
After successfully updating the ESLing config version when I tried to run preflight again I started getting the below mentioned error:
✖ ESLint config is latest version
› Your ESLint config file .eslintrc.cjs does not match the configuration file template. Please reinstall the config using the instructions on
https://www.npmjs.com/package/@upleveled/eslint-config-upleveled
What I tried to solve it
I updated the ESlint config to the latest version.
Deleted node_modules and reinstalled it.
I checked the .eslintrc.cjs file is commented out.
What happened?
As per the provide guidelines to setup SafeQL in our next.js e-commerce project I updated my Upleveled ESLint config.
CI=true npx install-peerdeps@latest --yarn --dev @upleveled/eslint-config-upleveled node node_modules/@upleveled/eslint-config-upleveled/scripts/install.js
I was getting 'ERR undefined after running the above code.
What was I trying to do? What did I expect to happen?
I followed the steps to disable SafeQL , commented out the code inside .eslintrc.cjs file and then installed ESLint config using the code below
I expected it to be successfully installed and not to show the ERR undefined which worked but when I tried to run Preflight on my project , I got the error that my ESLint config version (
2.16.2
) is outdated and I should update it to2.16.3
.After successfully updating the ESLing config version when I tried to run preflight again I started getting the below mentioned error:
What I tried to solve it