eslint-plugin-node icon indicating copy to clipboard operation
eslint-plugin-node copied to clipboard

Allow regex for allowModules

Open gpoitch opened this issue 3 years ago • 0 comments

Ability to use a string or regex for allowModules. For example, say I have a directory I alias in typescript/webpack/whatever to @foo, I want to to allow everything in that directory:

settings: {
    node: {
      allowModules: [/^@foo\//', 'bar']
    }
}

This should help address some other issues such as #217, #233 in a generic way.

gpoitch avatar Apr 07 '21 16:04 gpoitch