Fix eslint errors in all exercises
See original GitHub issueI have configured eslint in https://github.com/exercism/javascript/pull/479
But have not fixed errors in any exercise apart from hello-world
. Instead I added all exercises to .eslintignore.
The plan is to do this:
- Pick one exercise (You can pick many but we prefer to have separate PRs so that it is easy to review - but if there are not many changes - you can pick 2-3 at once).
- Remove the exercise name from
.eslintignore
file - Run
npm run lint
- This should show errors in those exercises. - Fix those errors - commit and raise a PR 🎉
Note: The eslint
configuration is not final. I did not have a good look at all errors, just put a sensible default in place. While fixing, if you encounter some error that you feel we should allow(ignore), feel free to comment on this issue.
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (17 by maintainers)
Top Results From Across the Web
Quickly fix all linter errors in a file with the ESLint extension
Today's VS Code extension tip: ESLint fix all actions Quickly fix all linter problems for a given ESLint rule or fix all auto...
Read more >Command Line Interface - 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 use ESLint in Webpack 5 - Setup Tutorial
Exercises : Fix all the code style violations in your source code; Try out more ESLint rules yourself. Shareable ESLint Configuration. Now ...
Read more >Setting up Create React App, VS Code, ESLint, and Prettier
A brief guide to configuring VS Code to automatically format code in your CRA app using ESLint and Prettier.
Read more >Fullstack part3 | Validation and ESLint - Full stack open
Let's expand the error handler to deal with these validation errors: ... Exercises 3.19.-3.21. ... Add ESlint to your application and fix all...
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’d like to work on this pls
@lukejpreston
We have disabled eslint errors using .eslintignore for all exercises and plan to fix errors in 1-2 exercises at a time. This is to make CI happy for now while using it to fix errors by removing the exercises we fix. (See PRs attached to this issue for reference).
It fixes most of them but not all are fixable. You are free to use it but we would like to have each PR fix only 1-2 exercises entirely. This way it is easy to manage/review PRs.