question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support TypeScript v4.x

See original GitHub issue

Versions:

  • prettier-eslint version: 11.0.0

Problem description:

TypeScript has recently released a new update which bumped the major. Unfortunately, TypeScript doesn’t adhere to semver (see microsoft/TypeScript#14116). This unfortunately means that if a user’s project depends on TypeScript v4.0, npm/yarn will install a separate TypeScript v3.9 just for this package in order to fulfill the dependency version ranges.

Suggested solution:

Using >=3.9.2 as the dependency version for the typescript package should fix this issue while keeping keeping the option to use older, still compatible TypeScript versions. See https://docs.npmjs.com/files/package.json#dependencies.

Relevant: #391

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
zimmecommented, Feb 28, 2021

As for this specific issue. I do believe we walt to changed all the typescript/vue/other parsers to optional dependencies and check if thery’re available and only use them in those cases.

As well as loosening the version ranges on those dependencies.

1reaction
zimmecommented, Feb 28, 2021

I don’t really use this library any longer as I don’t need my prettier setting being inferred from my eslint settings, which is what this library provides over just using prettier && eslint --fix. So there is still a “need” for this package but the recommended way of using prettier with eslint is to actually use eslint-config-prettier which disables all eslint rules that conflict with prettier.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 4.0
Variadic Tuple Types ... Consider a function in JavaScript called concat that takes two array or tuple types and concatenates them together to...
Read more >
Announcing TypeScript 4.0 - Microsoft Developer Blogs
Today we are thrilled to announce the availability of TypeScript 4.0! This version of the language represents our next generation of ...
Read more >
Ember v4 TypeScript Support Update
This update for Ember v4 types brings two major changes with two big benefits. The two major changes: All APIs which were deprecated...
Read more >
TypeScript Support - Vuex
Typing $store Property in Vue Component #. Vuex doesn't provide typings for this.$store property out of the box. When used with TypeScript, you ......
Read more >
Setting up your TypeScript environment - ArcGIS Developers
... CDN visit https://github.com/Esri/jsapi-resources/4.x/typescript/demo. ... You can then check you have TypeScript installed by using tsc -v and it ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found