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

Changes to the eslint-recommended ruleset for 3.0.0 #1273

Closed
bradzacher opened this issue Nov 27, 2019 · 6 comments · Fixed by #1996
Closed

Changes to the eslint-recommended ruleset for 3.0.0 #1273

bradzacher opened this issue Nov 27, 2019 · 6 comments · Fixed by #1996
Labels
breaking change This change will require a new major version to be released package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin recommended-rules Discussion about recommended rule sets
Milestone

Comments

@bradzacher
Copy link
Member

bradzacher commented Nov 27, 2019

Reviewing rules, we can add some new rules to this set in the next major.

@wtgtybhertgeghgtwtg
Copy link

Will prefer-optional-chain and prefer-nullish-coalescing make the cut?

@bradzacher
Copy link
Member Author

bradzacher commented Nov 27, 2019

@wtgtybhertgeghgtwtg - the eslint-recommended set is different from the recommended set.

eslint-recommended is intended to be used with eslint's base recommended set, and it disables all rules that are known to be covered by the typescript typechecker.


It's highly likely that prefer-optional-chain and prefer-nullish-coalescing will make the cut into our recommended set though.

@glen-84
Copy link
Contributor

glen-84 commented Nov 28, 2019

  1. I hadn't mentioned no-setter-return because I thought that this set only disabled recommended rules (and no-setter-return is not marked as recommended).
  2. I'm not actually using this set, but I do wonder why this is considered a breaking change, since it is only used by TypeScript users, who will already be seeing the TypeScript errors. These users would either have broken code (because of the TS errors), or they would have neither TS errors nor the related ESLint errors.

@bradzacher
Copy link
Member Author

I do wonder why this is considered a breaking change

Some users do rely on linting to catch problems when using babel as their transpiler.
I've seen setups where people run eslint and babel via webpack, but not the typescript checker.
So adding rules to this would reduce their build safety, so it's best to make it breaking, just in case.

@bradzacher bradzacher changed the title New rules to add to the eslint-recommended ruleset Changes to the eslint-recommended ruleset Jan 13, 2020
@bradzacher bradzacher pinned this issue Jan 13, 2020
@bradzacher bradzacher changed the title Changes to the eslint-recommended ruleset Changes to the eslint-recommended ruleset Jan 13, 2020
@bradzacher bradzacher changed the title Changes to the eslint-recommended ruleset Changes to the eslint-recommended ruleset for 3.0.0 Jan 13, 2020
@aggmoulik
Copy link
Contributor

Hy, @bradzacher is there anything I can work on?

@bradzacher
Copy link
Member Author

@moulikcipherX there's no shortage of issues to look at.
There are plenty tagged with "good first issue" which should be doable.
Pretty much any issue without the "has PR" is fair game.

https://github.com/typescript-eslint/typescript-eslint/blob/master/CONTRIBUTING.md#pull-requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change This change will require a new major version to be released package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin recommended-rules Discussion about recommended rule sets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants