Enabling more ESLint rules?
Answered
Blue-gray Gnatcatcher posted this in #help-forum
Blue-gray GnatcatcherOP
Hi all, I'm trying to fix bugs with our codebase and came across some bugs that should've been caught by the linter. Upon futher inspection it seems like either linting is not working at all in my project or the ruleset is too generous. I'm wondering how to enforce a stricter ruleset or at least enable some rules like the
I tried installing typescript-eslint but it conflicts with the default eslint-config-next that came with the project. How do I enable additional rules? I took a look at the documentation but it just says to use
no-floating-promises rule (https://typescript-eslint.io/rules/no-floating-promises/)I tried installing typescript-eslint but it conflicts with the default eslint-config-next that came with the project. How do I enable additional rules? I took a look at the documentation but it just says to use
next/core-web-vitals for the strictest ruleset, which I'm already doing. Any clarifications would be appreciated!Answered by Blue-gray Gnatcatcher
Never mind, adding
eslint:recommended as the first plugin fixed it.1 Reply
Blue-gray GnatcatcherOP
Never mind, adding
eslint:recommended as the first plugin fixed it.Answer