Skip to content

Why I set env: { node: false }, but usage of __filename is still allowed? #14942

Answered by lovetingyuan
lovetingyuan asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I found if I use "overrides", the outer "env" option will not work. So I have to set "env" inside override config.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ljharb
Comment options

Comment options

You must be logged in to vote
4 replies
@ljharb
Comment options

@lovetingyuan
Comment options

@ljharb
Comment options

@lovetingyuan
Comment options

Answer selected by lovetingyuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug ESLint is working incorrectly needs info Not enough information has been provided to triage this issue repro:needed
3 participants
Converted from issue

This discussion was converted from issue #14940 on August 17, 2021 20:29.