Next.js Discord

Discord Forum

eslint not using project eslintrc.json

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Hello, for some time im having an issue where when ever i run npm run lint, the eslint is attempting to search for a eslintrc.json on my C:/ instead of my project where i run the command. I dont have eslint globally installed only within the project. This is only an issue to my nextjs project.


Failed to load config "next" to extend from.
Referenced from: C:.eslintrc.json

package.json:
"dependencies": {
"@fontsource/open-sans": "^5.0.3",
"@heroicons/react": "^2.0.18",
"@react-hook/resize-observer": "^1.2.6",
"@types/node": "20.3.3",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"bootstrap-icons": "^1.10.5",
"country-iso-3-to-2": "^1.1.1",
"country-locale-map": "^1.8.15",
"daisyui": "^2.52.0",
"eslint": "8.44.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "13.4.7",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"moment": "^2.29.4",
"next": "13.4.7",
"nextjs-progressbar": "^0.0.16",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
"react": "18.2.0",
"react-aria": "^3.26.0",
"react-dom": "18.2.0",
"sass": "^1.63.6",
"styled-components": "^6.0.2",
"swiper": "^10.0.2",
"typescript": "5.1.6",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@types/react-datepicker": "^4.11.2",
"@types/styled-components": "^5.1.26",
"autoprefixer": "^10.4.14",
"eslint-plugin-jsx-a11y": "^6.7.1",
"postcss": "^8.4.24",
"tailwindcss": "^3.3.2"
}
}

0 Replies