typescript-eslint: 2.0.0 Breaking Changes
I wanted somewhere to keep track of the breaking changes we should make as part of a 2.0.0 release.
Deprecated Rules:
- (pr #739) remove deprecated rule
prefer-interface(replaced byconsistent-type-definitions) - (pr #739) remove deprecated rule
no-triple-slash-reference(replaced bytriple-slash-reference) - (pr #731) remove deprecated rule
no-angle-bracket-type-assertion(replaced byconsistent-type-assertions) - (pr #731) remove deprecated rule
no-object-literal-type-assertion(replaced byconsistent-type-assertions)
Misc:
- (pr #645) Support eslint 6 (drop node 6 support)
- (pr #594) kill
isTypescriptFilechecks #524 - (pr #731) generalize
no-angle-bracket-type-assertion(#332) and merge inno-object-literal-type-assertion - (pr #760) protection against most common performance pitfall
- (pr #831)
explicit-function-return-typeallowExpressionsshouldn’t ignoreexport default () => {} renamewill do in v3@typescript-eslint/experimental-utilsto@typescript-eslint/utils(https://github.com/typescript-eslint/typescript-eslint/pull/425#pullrequestreview-235352249)look into renaming a number of rules #203will do with a later major bump…
Recommended stuff:
- reevaluate rule defaults
- (pr #729) make
explicit-function-return-typemore relaxed by default, as it’s the standard usage (#493) - (#733) Remove the
allowAnyoption from thepromise-function-asyncrule and make it the default (from comment below)
- (pr #729) make
- (pr #729) update the recommended rule set with new rules (and remove some rules) #651
- (pr #846) split the recommended into a base set not requiring type info, and an extension set requiring type info, so people can have a fast experience by default.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 20
- Comments: 19 (14 by maintainers)
I’m not very well at the moment, so we are pushing the release back a few more days. I have just published
2.0.0-alpha.5which contains all the commits to master since the last canary, so nobody should be blocked in any wayv2.0.0 is released! 🎉
FYI for any subscribers to this issue, we have begun merging breaking change PRs and the canary releases (i.e.
master) are now on 2.x.x.We will likely promote v2.x.x to stable in one week. We won’t leave such a big gap until v3.x.x but we also want to be mindful of churn, so if you do have breaking changes you want to see now is the time to champion/implement them 😃
Please also do us a favour and install from
@canaryand report any issues.Thanks!
allowAnyoption from thepromise-function-asyncrule and make it the default. https://github.com/typescript-eslint/typescript-eslint/pull/553Unfortunately we haven’t quite been able to get everything wrapped up within the week. We will let the updated v2 alphas bed in for one more week and then publish v2 to latest next weekend.
Please help us by testing out the latest alphas on your codebases!
2.0.0-alpha.4has been published and contains the new protection against performance issues which occur when files are being linted which fall outside your TypeScript Programs (#760)-UPDATE: see next comment2.0.0-alpha.5has not yet been published but will contain the updates to the recommended config. We will publish this as soon as it’s ready.Potential other changes that need discussions:
no-unnecessary-type-assertionandno-inferrable-typesIs there a duplicate item in the first post ?
It seems one of them should be
no-object-literal-type-assertion.Installed canary been using it for a 2 days and seems fine