mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00

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>
27 lines
520 B
JavaScript
27 lines
520 B
JavaScript
import { globals } from './eslint.config_utils.mjs';
|
|
|
|
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',
|
|
},
|
|
},
|
|
];
|