You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import_from'lodash'// <- node/no-unsupported-features complains here
eslint-plugin-node shouldn't care about unsupported features (or any other rules) when node: false. This is especially troublesome since ESLint doesn't provide a way to disable an entire plugin on a per-folder basis.
However, I don't think it's feasible.
Plugin rules cannot get the value of env which is defined by config files.
Also, there are people which don't use env to avoid defining unnecessary globals.
Is it possible to configure ESLint, such that it will only check
eslint-plugin-node
rules when thenode
environment is enabled?For example,
eslint-plugin-node
rules would be applied if the following directive existed:(for files that execute in a Node.js context)
The text was updated successfully, but these errors were encountered: