-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancement: new base rule extensionNew base rule extension required to handle a TS specific caseNew base rule extension required to handle a TS specific casegood first issueGood for newcomersGood for newcomershas 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
const foo = {}as object;
{
"rules": {
"keyword-spacing": "warn",
}
}
Expected Result
Warning about a missing space before as
.
Actual Result
No warning.
Additional Info
It would be nice to have a @typescript-eslint/keyword-spacing
rule to cover the typescript keywords.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.23.0 |
@typescript-eslint/parser |
2.23.0 |
TypeScript |
3.8.3 |
ESLint |
6.8.0 |
node |
12.16.1 |
npm |
6.13.4 |
sindresorhus
Metadata
Metadata
Assignees
Labels
enhancement: new base rule extensionNew base rule extension required to handle a TS specific caseNew base rule extension required to handle a TS specific casegood first issueGood for newcomersGood for newcomershas 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