I'm using AdonisJs (NodeJS framework) and they created a function called use
to import file like they'd be namespaces, for example use('App/Services/User')
instead of require('../app/Services/User')
.
The problem is that eslint will throw the error 'use' is not defined no-undef
.
At this time I have two ways:
- Putting an eslint comment to disable alert for that line in each file, but it's annoying
- Use
require
instead ofuse
, but it's a lot useful the function.
Is there a way to disable "one time for all" the specific no-undef
for the use
function in the whole project?