EXTEND_ESLINT=true not working
See original GitHub issueDescribe the bug
Actually it re-opens https://github.com/facebook/create-react-app/issues/9047 I created .env file in root directory with EXTEND_ESLINT=true then created .eslintrc.json file with my config for eslint but while running npm start this config doesn’t work!
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
- npx create-react-app my-app --template typescript
- add .env file in root directory with EXTEND_ESLINT=true
- add .eslint.json with some rules, for example “no-unused-vars”: [“error”]
- Try to check if the rule is working. In App.tsx I added
const a= '';
Expected behavior
Expect it will consider rules from .eslintrc.json and fail to build app.
Actual behavior
Ignoring rules from .eslintrc.json
Reproducible demo
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Extending ESLint config not working · Issue #7510 - GitHub
I was just coming to file this same issue. The problem is that we're checking the extends property for react-app , but by...
Read more >create-react-app — how to set EXTEND_ESLINT to true?
In the project root directory, you can create the .env file with EXTEND_ESLINT set to true so as to extend the ESLint config:...
Read more >Configuration Files - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Auto Format with ESLint and Prettier for React TypeScript Project
ESLint is a linter that finds problems in your code and shows errors and warnings. ... formatOnSave": true, // Prettier auto format on...
Read more >How to Format Code on Save in VS Code with ESlint
ESLint Still Not Formatting on Save? ... If you already have the ESLint extension installed, VS Code may show a prompt asking if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I quote an answer from #9007 :
and if this is your problem, I hope that my proposal #9085 would be accepted, and someone could implement it.
From our point of view, the issue is still present.