Why I set env: { node: false }, but usage of __filename is still allowed? #14942
-
Tell us about your environment
What parser (default, Please show your full configuration: Configuration'vue2': {
env: {
browser: true,
es2020: true,
node: false,
},
parserOptions: {
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
legacyDecorators: false
},
},
} What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint. What did you expect to happen? What actually happened? Please copy-paste the actual, raw output from ESLint. Steps to reproduce this issue: Are you willing to submit a pull request to fix this bug? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @lovetingyuan, thanks for the issue. It looks like there's not enough information for us to know how to help you. If you're reporting a bug, please be sure to include:
Requesting a new rule? Please see Proposing a New Rule for instructions. Requesting a rule change? Please see Proposing a Rule Change for instructions. If it's something else, please just provide as much additional information as possible. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Oh, I found if I use "overrides", the outer "env" option will not work. So I have to set "env" inside override config. |
Beta Was this translation helpful? Give feedback.
Oh, I found if I use "overrides", the outer "env" option will not work. So I have to set "env" inside override config.