Search code examples
typescriptvue.jseslintgit-submodules

How to exclude folder that is out of root directory in eslint?


That is the project structure I have:

-lib (git submodule with js library)
-A (vue.js+typesript+eslint app that uses lib)
-B (other module with express app)

While running A app I'm facing errors with eslint at lib:

Error: Failed to load config "airbnb" to extend from.

How can I exclude lib from eslint processing at A app?

I tried to add .eslintignore to root directory and A directory. Also tried to add ignorePatterns to A eslint configs. Nothing helped.

Appreciate if someone can help.


Solution

  • Solved this issue by configuring .eslintignore correctly. Just added the following line:

    ../lib/*