mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
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>
38 lines
789 B
JavaScript
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.`
|
|
}
|
|
})
|
|
]
|
|
}
|
|
}
|
|
]
|