Add tests for extending ESLint
See original GitHub issueThis is a good first PR!
We should add some tests to cover #7036. They should cover both JavaScript and TypeScript support.
They can probably be added to test/fixtures
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Unit Tests - 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 >How to Test Your ESLint Config | Robin writes < code | prose
Finally, adding eslint __eslinttests__ --report-unused-disable-directives as an NPM script called test:eslintConfig means you can create another ...
Read more >How to use ESLint with Jest - Stack Overflow
For Yarn yarn add eslint-plugin-jest -D # For NPM npm i ... You could add a .eslintrc.yml file in your __tests__ folders, that...
Read more >eslint-plugin-testing-library - npm
npm install --save-dev eslint-plugin-testing-library # or $ yarn add ... Just do this instead { extends: ['plugin:testing-library/react'], } ...
Read more >Next.js Setup | ESLint Jest React Testing Library and Absolute ...
ESLint : Install & Configure · extends sets up a set of base rules to use as a starting point. · env tells...
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
Hey @danangan, feel free to take over the PR if you want, I am still stuck at the same issue. If you can get it solved, go for it!!
@ianschmitz I created a PR #7816, it covers tests for javascript. For typescript, all typescript tests suits fail with this error:
Failed to load parser '@typescript-eslint/parser declared in 'BaseConfig >> /Users/......./create-react-app/packages/eslint-config-react-app/index.js#overrides[0]': Cannot find module 'typescript'
Can you please help me out here?