Live data from Hacker News

ESLint 7.0

eslint.org

1–10 of 93 posts

Re: ESLint 7.0

#3
I didn't like programming in JavaScript so much because I think the syntax makes it a little harder to read than necessary.

However, I confess that after adopting ESLint in my workflow, things have improved considerably. I can ask it to warn me on unused stuff, to enforce the lack of semicolons, to format and indent my code correctly on save... it's a very useful tool. If you have something against JavaScript in general, give it a try.

Re: ESLint 7.0

#4
I haven't done TypeScript/JavaScript in a while. What's the status of ESLint taking over from TSLint (for both the tool itself and the vscode extensions)?

Re: ESLint 7.0

#5
post #4

I haven't done TypeScript/JavaScript in a while. What's the status of ESLint taking over from TSLint (for both the tool itself and the vscode extensions)?

I think the transition is nearly ironed out, I'd say the only concerns are the edge cases but everyday usage should be fine:

https://github.com/typescript-eslint/typescript-eslint

Haven't ran into too many issues within the last 8 months or so. Only in Spring 2019 was it bad IME.

Re: ESLint 7.0

#6
post #4

I haven't done TypeScript/JavaScript in a while. What's the status of ESLint taking over from TSLint (for both the tool itself and the vscode extensions)?

[deleted]

Re: ESLint 7.0

#7
There is a rule in eslint that warns you when a promise is dangling and hasn't been handled.

Please use that rule. So many bugs in the JS world is because of dangling promises.

Re: ESLint 7.0

#8
post #7

There is a rule in eslint that warns you when a promise is dangling and hasn't been handled. Please use that rule . So many bugs in the JS world is because of dangling promises.

hundreds of rules to read, is this on its recommended list if it's so critical? is its name 'no-floating-promises'?

Re: ESLint 7.0

#9
post #8
post #7

There is a rule in eslint that warns you when a promise is dangling and hasn't been handled. Please use that rule . So many bugs in the JS world is because of dangling promises.

hundreds of rules to read, is this on its recommended list if it's so critical? is its name 'no-floating-promises'?

> is its name 'no-floating-promises'

Yes, and I subscribe to the parent's sentiment: this rule is essential

Post reply on HN