-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
{
"rules": {
"@typescript-eslint/<rule>": ["<setting>"]
}
}
// your repro code case
try {
} catch (error) {
throw new Error(`Could not foobar: ${error.message}`)
}
Expected Result
Should not error, because any
is assignable to string
the same way that a string literal type is. (This would be a case though for no-implicit-any
#791 , but that's not the goal of this rule)
Actual Result
"Invalid type of template literal expression."
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.22.0 |
@typescript-eslint/parser |
X.Y.Z |
TypeScript |
X.Y.Z |
ESLint |
X.Y.Z |
node |
X.Y.Z |
npm |
X.Y.Z |
glen-84
Metadata
Metadata
Assignees
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin