node/deps/undici/src/eslint.config.js
Node.js GitHub Bot ac131bdc01
deps: update undici to 7.16.0
PR-URL: https://github.com/nodejs/node/pull/59830
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2025-09-11 17:21:54 +00:00

38 lines
789 B
JavaScript

'use strict'
const neo = require('neostandard')
const { installedExports } = require('./lib/global')
module.exports = [
...neo({
ignores: [
'lib/llhttp',
'test/fixtures/cache-tests',
'undici-fetch.js',
'test/web-platform-tests/wpt'
],
noJsx: true,
ts: true
}),
{
rules: {
'@stylistic/comma-dangle': ['error', {
arrays: 'never',
objects: 'never',
imports: 'never',
exports: 'never',
functions: 'never'
}],
'@typescript-eslint/no-redeclare': 'off',
'no-restricted-globals': ['error',
...installedExports.map(name => {
return {
name,
message: `Use undici-own ${name} instead of the global.`
}
})
]
}
}
]