mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
7e6d92c485
Closes: https://github.com/nodejs/node/issues/52567 PR-URL: https://github.com/nodejs/node/pull/52780 Fixes: https://github.com/nodejs/node/issues/52567 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
30 lines
577 B
JavaScript
30 lines
577 B
JavaScript
import { requireEslintTool } from './eslint.config_utils.mjs';
|
|
|
|
const globals = requireEslintTool('globals');
|
|
|
|
export default [
|
|
{
|
|
files: ['tools/**/*.{js,mjs,cjs}'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
},
|
|
rules: {
|
|
'camelcase': [
|
|
'error',
|
|
{
|
|
properties: 'never',
|
|
ignoreDestructuring: true,
|
|
allow: ['child_process'],
|
|
},
|
|
],
|
|
'no-unused-vars': [
|
|
'error',
|
|
{ args: 'after-used' },
|
|
],
|
|
'prefer-arrow-callback': 'error',
|
|
},
|
|
},
|
|
];
|