Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended eslint rules #16

Open
1 of 3 tasks
shreshthmohan opened this issue Mar 18, 2022 · 0 comments
Open
1 of 3 tasks

Recommended eslint rules #16

shreshthmohan opened this issue Mar 18, 2022 · 0 comments

Comments

@shreshthmohan
Copy link
Owner

shreshthmohan commented Mar 18, 2022

JavaScript

  1. no-var
  2. prefer-const
  3. guard-for-in: Simply use Object.keys instead. And for...of for iterating over the values of an object.
  • Some of these are likely already included with eslint's recommended rule-set. Check. (A) No, they aren't. See here
  • How to list all used eslint rules
  • Explain the problem with var (variable can be accessed and changed outside of block, show what issues it can cause)

TypeScript

  1. strict-boolean-expressions
@shreshthmohan shreshthmohan changed the title Add strict-boolean-expressions eslint typescript rule to ts projects Recommended eslint rules Mar 18, 2022
@shreshthmohan shreshthmohan added the draft A blog post that is a draft label Sep 6, 2022
@shreshthmohan shreshthmohan added status:published and removed draft A blog post that is a draft labels Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant