I am using NX Monorepo which comes with EsLint configured but without AirBnB Rules.
How can I use AirBnB Rules with the existing configuration?
I am using NX Monorepo which comes with EsLint configured but without AirBnB Rules.
How can I use AirBnB Rules with the existing configuration?
2
Answers
I ended up with config below, however I faced error related to vitest. It seems that airbnb’s eslint-plugin-import configuration doesn’t work well with monorepos. see linter error here
So I just disabled this rule, because nx handles dependencies itself.
Also I found two similar issues you can checkout:
This is my current override for TS
Most of the peerDependencies needed by these extend configs are already installed so double check before installing, in my case for React Integrated Repo I only installed:
I use
eslint-plugin-prettier
since its recommended to leave the formatting part to Prettier, so that’s optional. From there decide what to do with the clashing rules between NX conventions and the suggested by airbnb.