Skip to content
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

fix(deno): update types for deno ^1.4.0 #329

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

luke-john
Copy link
Contributor

@luke-john luke-john commented Sep 30, 2020

In version 1.4 Deno adopted;

This requires the use of;

  • type only imports for values which are only used as types (importsNotUsedAsValues)

I've added more details at yargs/yargs#1771.

related prs:


While creating this pr, I was unable to get run the yarn fix command, this seems to be an unrelated issue though.

$ standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'
standardx: Unexpected linter output:

Error: Failed to load config "standard" to extend from.
Referenced from: BaseConfig

In version 1.4 Deno adopted;

- the tsconfig setting [importsNotUsedAsValues](https://www.typescriptlang.org/tsconfig#importsNotUsedAsValues) - denoland/deno#7413

This requires the use of;
- type only imports for values which are only used as types (`importsNotUsedAsValues`)
@bcoe
Copy link
Member

bcoe commented Sep 30, 2020

this is great, but what if we update the Deno version for tests accordingly, so that we catch the broken behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants