0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/tools/eslint-rules
Joyee Cheung de23055536
lib: remove env: node in eslint config for lib files
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>
2019-04-06 12:04:36 +08:00
..
alphabetize-errors.js tools: fix custom eslint rule errors 2018-02-22 12:10:22 +01:00
crypto-check.js tools: tidy function arguments in eslint rules 2019-03-16 20:00:55 -07:00
documented-errors.js tools: fix custom eslint rule errors 2018-02-22 12:10:22 +01:00
eslint-check.js tools: tidy function arguments in eslint rules 2019-03-16 20:00:55 -07:00
inspector-check.js tools: tidy function arguments in eslint rules 2019-03-16 20:00:55 -07:00
lowercase-name-for-primitive.js test,tools: refactor custom ESLint for readability 2018-06-06 21:04:25 -07:00
no-duplicate-requires.js benchmark,doc,lib,test: capitalize comments 2019-02-28 18:31:10 +01:00
no-unescaped-regexp-dot.js tools: replace var to let/const 2019-03-07 00:35:01 +01:00
non-ascii-character.js tools: non-Ascii linter for /lib only 2018-02-04 16:55:13 +01:00
number-isnan.js tools: add number-isnan rule 2017-12-19 13:21:53 -05:00
prefer-assert-iferror.js tools: replace var to let/const 2019-03-07 00:35:01 +01:00
prefer-assert-methods.js tools: auto fix custom eslint rule 2018-02-01 11:40:53 +01:00
prefer-common-expectserror.js tools: prefer common.expectsError in tests 2017-12-11 18:23:11 -05:00
prefer-common-mustnotcall.js tools: simplify prefer-common-mustnotcall rule 2017-12-11 21:04:48 -05:00
prefer-util-format-errors.js tools: fix custom eslint rule errors 2018-02-22 12:10:22 +01:00
required-modules.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
rules-utils.js tools: replace var to let/const 2019-03-07 00:35:01 +01:00