Permalink
Please
sign in to comment.
Browse files
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: #27082 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
- Loading branch information...
Showing
with
57 additions
and 117 deletions.
- +2 −1 .eslintrc.js
- +4 −0 benchmark/.eslintrc.yaml
- +21 −1 lib/.eslintrc.yaml
- +15 −8 lib/buffer.js
- +2 −2 lib/crypto.js
- +1 −0 lib/internal/bootstrap/loaders.js
- +1 −1 lib/internal/modules/cjs/helpers.js
- +3 −3 lib/util.js
- +4 −0 test/.eslintrc.yaml
- +0 −51 test/parallel/test-eslint-require-buffer.js
- +4 −0 tools/.eslintrc.yaml
- +0 −50 tools/eslint-rules/require-globals.js
0 comments on commit
de23055