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

Supports ESLint v8.#1317

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
dbaeumer merged 3 commits intomicrosoft:mainfromota-meshi:eslint-v8
Aug 23, 2021
Merged

Supports ESLint v8.#1317

dbaeumer merged 3 commits intomicrosoft:mainfromota-meshi:eslint-v8
Aug 23, 2021

Conversation

ota-meshi
Copy link
Contributor

@ota-meshiota-meshi commentedAug 15, 2021
edited
Loading

This PR supports ESLint v8.
Specifically, change it to use theESLint class instead of the removedCLIEngine.

However, for backward compatibility, ifCLIEngine is present, useCLIEngine. SeeESLintClassEmulator class.

I checked that this change works by making sure that the marker appears in each of the environments whereeslint@8.0.0-beta.0,eslint@7.32.0, andeslint@6.8.0 are installed.

@dbaeumer
Copy link
Member

@ota-meshi thanks a lot for the PR. Will have a look this week. Saw that the first eslint 8.0.0 beta got released lately.

ota-meshi reacted with thumbs up emojiota-meshi reacted with heart emoji

Copy link
Member

@dbaeumerdbaeumer left a comment

Choose a reason for hiding this comment

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

Great work. I would suggest we do the minor word tweak.

Then I will publish an new internal version of the plugin so that users can do some insider testing before we release a new version. Is this OK for you?

@@ -899,7 +935,7 @@ function resolveSettings(document: TextDocument): Promise<TextDocumentSettings>
if (!settings.silent) {
connection.console.error(`Failed to load eslint library from ${libraryPath}. See output panel for more information.`);
}
} else if (library.CLIEngine === undefined) {
} else if (library.CLIEngine === undefined && library.ESLint === undefined) {
settings.validate = Validate.off;
connection.console.error(`The eslint library loaded from ${libraryPath} doesn\'t export a CLIEngine. You need at least eslint@1.0.0`);
Copy link
Member

Choose a reason for hiding this comment

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

Should we also mention ESLint class. Something likeneither exports a CLIEngine nor an ESLint class

@ota-meshi
Copy link
ContributorAuthor

Thank you for the review! I changed the message.

Then I will publish an new internal version of the plugin so that users can do some insider testing before we release a new version. Is this OK for you?

It's OK with me!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dbaeumerdbaeumerdbaeumer approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ota-meshi@dbaeumer

[8]ページ先頭

©2009-2025 Movatter.jp