My NodeJS project has the following structure:
project
|
|- client
| |
| |- .eslintrc.yml
| | ...
|
|- server
...
Both client and server folders contain JS code.
For code linting I use eslint with the following config:
extends: ../node_modules/eslint-config-airbnb/.eslintrc
rules:
import/no-commonjs:
- error
env:
browser: true
I use Intellij IDEA's integration with ESLint for the real-time linting. The problem is that IDEA checks all the files in the project, while I want it to only check files from the client folder.

client?