-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
EXTEND_ESLINT=true not working #9047
Comments
I'll take a look at this for you in the coming days. |
Hi @Barik85, I see that code is used, but removed on create-react-app/packages/react-scripts/config/webpack.config.js Lines 364 to 370 in f5c3bdb
The issue in your case seems to be that you used |
Why removed it on eject? |
Describe the bug
I created .env file in root directory with
EXTEND_ESLINT=true
then created .eslint.json file with my config for eslint
but while running npm start this config doesn't work!
So I had to run
npm run eject
in file '/config/webpack.config.js' on the line 38 I have found
const isExtendingEslintConfig = process.env.EXTEND_ESLINT === 'true';
but this variable never used.
So on line 339 I just added useEslintrc: isExtendingEslintConfig, and it begans work correctly!
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
(paste the output of the command here.)
Steps to reproduce
EXTEND_ESLINT=true
Expected behavior
Expect it will consider rules from .eslintrc.json
Actual behavior
Ignoring rules from .eslintrc.json
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: