Next.js Discord

Discord Forum

can't fix this linting issue

Unanswered
Havana posted this in #help-forum
Open in Discord
Avatar
HavanaOP
this is showing linting issue in the files i haven't touched . I am trying to contribute to an open source repo for hacktoberfest. this error is occurring when i try to commit changes. i have changed only the code related to tailwind. i haven't changed any data type neither created unused variables
Image
Image
Image

15 Replies

Avatar
Eslint isn't supposed to run on files in .next folder
you can safely add that to ignore in eslint config
Avatar
HavanaOP
so should i edit eslint.config file and updates rules ?
Avatar
do not update the rules, add that folder in ignore
Avatar
HavanaOP
in git ignore?
Avatar
show your eslint file
Avatar
HavanaOP
Image
Avatar
add
ignorePatterns: ['.next/','node_modules/']

just below that files array
Avatar
HavanaOP
got this
Image
Avatar
rename ignorePatterns to ignore
Avatar
HavanaOP
didn't work
should i check with version?
Avatar
I don't think eslint v9 is even support in nextjs :Thonk:
Avatar
HavanaOP
i tried everything, and searched everywhere to find the solution. i deleted locally cloned folder and i tried with just changing one line as dummy it worked fine. all i did is changing tailwind and it is causing all these errors
Image