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 by consistent-type-definitions)
  • (pr #739) remove deprecated rule no-triple-slash-reference (replaced by triple-slash-reference)
  • (pr #731) remove deprecated rule no-angle-bracket-type-assertion (replaced by consistent-type-assertions)
  • (pr #731) remove deprecated rule no-object-literal-type-assertion (replaced by consistent-type-assertions)

Misc:

Recommended stuff:

  • reevaluate rule defaults
    • (pr #729) make explicit-function-return-type more relaxed by default, as it’s the standard usage (#493)
    • (#733) Remove the allowAny option from the promise-function-async rule and make it the default (from comment below)
  • (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)

Most upvoted comments

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.5 which contains all the commits to master since the last canary, so nobody should be blocked in any way

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 @canary and report any issues.

Thanks!

Unfortunately 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.4 has been published and contains the new protection against performance issues which occur when files are being linted which fall outside your TypeScript Programs (#760)

- 2.0.0-alpha.5 has not yet been published but will contain the updates to the recommended config. We will publish this as soon as it’s ready. UPDATE: see next comment

Potential other changes that need discussions:

Is there a duplicate item in the first post ?

2019-07-25_095808

It seems one of them should be no-object-literal-type-assertion.

Installed canary been using it for a 2 days and seems fine