node/tools/eslint/eslint.config_partial.mjs

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',
},
},
];