question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix eslint errors in all exercises

See original GitHub issue

I 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:

  1. 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).
  2. Remove the exercise name from .eslintignore file
  3. Run npm run lint - This should show errors in those exercises.
  4. 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:closed
  • Created 5 years ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
thanhcngcommented, Dec 10, 2018

I’d like to work on this pls

1reaction
tejasbubanecommented, Nov 7, 2018

@lukejpreston

Are there even any errors left?

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).

but eslint --fix will auto fix loads

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found