-
-
Notifications
You must be signed in to change notification settings - Fork 9
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 Config (unnamed): Key "language"
in ESLint@9.5.0+
#362
Conversation
It seems that Example:
The new ESLint supports the feature of adding languages via plugins, and the |
The config returned from eslint-interactive/src/eslint/linter.ts Lines 52 to 53 in 1a62bd2
However, |
async function calculateConfigForFile(eslint: ESLint, filePath: string): Promise<Linter.FlatConfig[]> { | ||
const configs = await eslint.calculateConfigForFile(filePath); | ||
// `language` property has been added to the object returned by `ESLint.prototype.calculateConfigForFile(filePath)` since ESLint v9.5.0. | ||
// But, `Linter.prototype.verify()` does not accept `language` option. So, remove it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be a bug of ESLint.
TODO: Send a bug report to ESLint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ref: eslint/eslint#18939
5aa2b66
to
68c5dcf
Compare
Config (unnamed): Key "language"
Config (unnamed): Key "language"
in ESLint@9.5.0+
close: #360