Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Linter type import in index.d.ts#2572

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
FloEdelmann merged 1 commit intovuejs:masterfromocavue:ocavue/dts
Oct 14, 2024

Conversation

ocavue
Copy link
Contributor

@ocavueocavue commentedOct 11, 2024
edited
Loading

Thanks for adding TypeScript declarations in the latest v9.29.0.

I found an issue when using the new declaration. In thelib/index.d.ts, theLinter namespace is pointing totypings/eslint/index.d.ts. However,typings/ is not included in thefinal NPM package, therefore the declarations inindex.d.ts is not working.

This issue can be fixed by adding a single lineimport type { Linter } from 'eslint' as shown in this PR.

Other code-styling changes included in this PR are made by Prettier based oneslint-plugin-vue's Prettier config.


Just FYI, the latest eslint has already includes TypeScript declarations, which means you don't need@types/eslint and perhaps alsotypings/eslint/index.d.ts anymore onceeslint-plugin-vue updated to the latest version of eslint (currentlyeslint-plugin-vue is still using eslint@8).

@ocavueocavue marked this pull request as ready for reviewOctober 11, 2024 22:54
@FloEdelmannFloEdelmann linked an issueOct 14, 2024 that may beclosed by this pull request
2 tasks
Copy link
Member

@FloEdelmannFloEdelmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks, this looks good!

Also, given there is already a duplicate PR (#2575), this seems to fix the issue for others as well.

@FloEdelmannFloEdelmann merged commitaa476d6 intovuejs:masterOct 14, 2024
18 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@FloEdelmannFloEdelmannFloEdelmann approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

The new config types in 9.29.0 are broken
2 participants
@ocavue@FloEdelmann

[8]ページ先頭

©2009-2025 Movatter.jp