tools: import rather than require ESLint plugins

Refs: https://github.com/nodejs/node/pull/57314
PR-URL: https://github.com/nodejs/node/pull/57315
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Michaël Zasso 2025-03-07 15:52:52 +01:00 committed by GitHub
parent 9325697379
commit 27f98c3cd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 16 additions and 20 deletions

View file

@ -1,6 +1,4 @@
import { requireEslintTool } from '../tools/eslint/eslint.config_utils.mjs';
const globals = requireEslintTool('globals');
import { globals } from '../tools/eslint/eslint.config_utils.mjs';
export default [
{