Support TypeScript v4.x
See original GitHub issueVersions:
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:
- Created 3 years ago
- Reactions:2
- Comments:23 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.