Skip to content

Commit

Permalink
test(lint): disabled the check for `node/no-unsupported-features/es-s…
Browse files Browse the repository at this point in the history
…yntax` when loading plugins

based on mysticatea/eslint-plugin-node#250
  • Loading branch information
travi committed Sep 17, 2022
1 parent 97fdd48 commit eeae4d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/plugins/utils.js
Expand Up @@ -49,6 +49,8 @@ async function loadPlugin({cwd}, name, pluginsPath) {
? dirname(resolveFrom.silent(__dirname, pluginsPath[name]) || resolveFrom(cwd, pluginsPath[name]))
: __dirname;

// See https://github.com/mysticatea/eslint-plugin-node/issues/250
// eslint-disable-next-line node/no-unsupported-features/es-syntax
return isFunction(name) ? name : (await import(resolveFrom.silent(basePath, name) || resolveFrom(cwd, name))).default;
}

Expand Down

0 comments on commit eeae4d3

Please sign in to comment.