Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly checking that EXTEND_ESLINT is true #7538

Merged
merged 1 commit into from Sep 9, 2019
Merged

Explicitly checking that EXTEND_ESLINT is true #7538

merged 1 commit into from Sep 9, 2019

Conversation

BrockWills
Copy link
Contributor

The documentation for the new EXTEND_ESLINT env variable says it applies When set to true but the code only checks existence of the variable.

Setting EXTEND_ESLINT=false still enables extending eslint since process.env.EXTEND_ESLINT is technically set.

This PR just checks that process.env.EXTEND_ESLINT === 'true'

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Copy link
Contributor

@ianschmitz ianschmitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Thanks!

@ianschmitz ianschmitz added this to the 3.1.2 milestone Aug 15, 2019
@PaulRBerg
Copy link

PaulRBerg commented Aug 15, 2019

It's weird, but in my case I don't have any EXTEND_ESLINT env var set and I can override the config easily via a custom .eslintrc. I always thought that this is the default behaviour until a different problem lead me to this thread.

Using cra 3.1.0 and yarn 1.17.3.

@silverwind
Copy link

@PaulRBerg Third party tools that directly read .eslintrc always worked, but the linting step executed via react-scripts will ignore the file unless they run with EXTEND_ESLINT=true.

@ianschmitz ianschmitz closed this Sep 9, 2019
@ianschmitz ianschmitz reopened this Sep 9, 2019
@ianschmitz ianschmitz merged commit c9b9504 into facebook:master Sep 9, 2019
VasilyShelkov pushed a commit to VasilyShelkov/create-react-extension that referenced this pull request Sep 9, 2019
@lock lock bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants