-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Design Meeting Notes, 1/25/2023 #52469
Comments
Shouldn't they use local workspace TS 5.0 version? Or is it about web only case? |
IIRC, VS Code doesn't use the workspace version until you opt into it - but either way, your team might be using a local workspace version of 4.9 while you are trying to upgrade to 5.0. |
Yeah, by default VS Code uses whatever TypeScript version it ships with (currently 4.9). This is a security feature, because the locally installed TypeScript version could potentially be malicious code. |
Prettier can sort imports via a plug-in - we use it because it has better overall support than eslint. https://github.com/trivago/prettier-plugin-sort-imports |
Hopefully the natural-sort utility they use is compatible with the |
ignoreDeprecations
in TS 4.9#51909
importsNotUsedAsValues
andpreserveValueImports
are deprecated in favor ofverbatimModuleSyntax
ignoreDeprecations
flag to temporarily disable this as you migrate off the flags.tsconfig.json
that works for both 4.9 and 5.0.ignoreDeprecations
back to 4.9Moving from barrel imports in our codebase
#51455
#51590
(ts as any).Yadda
for preserved const enums.Import Sorting
#52090
hasDecorators
andHasDecorators
, the two might flip.eslint/sort-imports
.toUppercase
, we didtoLowercase
for case insensitivity._
)Intl.Collator
to do sorting if desired.eslint-plugin-simple-import-sort
.The text was updated successfully, but these errors were encountered: