-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
{
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/restrict-plus-operands": "error"
}
}
1n + 1n
Expected Result
No errors.
Actual Result
The operands are not numbers, but they're bigint
s which are still addable without type conversion.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
1.4.0 |
@typescript-eslint/parser |
1.4.0 |
TypeScript |
3.2.1 |
ESLint |
X.Y.Z |
node |
X.Y.Z |
npm |
X.Y.Z |
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