mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
de23055536
This patch removes the redundant `require-globals` custom eslint rule by removing `env: node` in the eslint config and whitelist the globals that can be accessed in native modules instead of black listing them. This makes sense for our `lib/` files because here we are creating the Node.js environment instead of running in a normal user land Node.js environment. PR-URL: https://github.com/nodejs/node/pull/27082 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
15 lines
262 B
YAML
15 lines
262 B
YAML
## Benchmark-specific linter rules
|
|
|
|
env:
|
|
node: true
|
|
es6: true
|
|
|
|
rules:
|
|
comma-dangle:
|
|
- error
|
|
- arrays: 'always-multiline'
|
|
objects: 'only-multiline'
|
|
imports: 'only-multiline'
|
|
exports: 'only-multiline'
|
|
prefer-arrow-callback: error
|