4

I want to use the airbnb's eslinter without installing any react plugins. Is that possible?

Basically, all I want is to use this: eslint-config-airbnb. But it seems that it comes bundled with some react specific stuff, as it requires:

It requires eslint, eslint-plugin-import, eslint-plugin-react, and eslint-plugin-jsx-a11y.

If I don't separately install those other plugins, my Atom editor will complain:

Error: Failed to load plugin react: Cannot find module 'eslint-plugin-react' Referenced from: airbnb Referenced from: /../../.eslintrc

So how can I use the eslint-config-airbnb without those react plugins? (Since I won't be using react).

1 Answer 1

8

If you don't care for the react rules, your best bet would be to use eslint-config-airbnb-base instead.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.