-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/no-unused-vars": "warn"
}
}
import "next-auth";
declare module "next-auth" {
interface User {
id: string;
givenName: string;
familyName: string;
}
}
import { PrismaClient } from "@prisma/client";
// Namespace declarations are also problematic
declare namespace globalThis {
let prisma: PrismaClient; // Value can be anything else
}
Expected Result
No warnings should be emitted.
Actual Result
Invalid warnings are emitted inside declare
blocks, unlike in v4.8.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.9.0 |
@typescript-eslint/parser |
4.9.0 |
TypeScript |
4.1.2 |
ESLint |
7.14.0 |
node |
14.15.0 |
wannadream, axxag, Christopher2K and whitetrefoil
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin