-
-
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 rulepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estreeIssues related to @typescript-eslint/typescript-estree
Description
Sorry for not using the template, it didn't seem to apply in this case. This ticket is related to #66. Feel free to close if you think it is covered by other tickets.
TypeScript have merged in a new feature as const
(slated for TypeScript 3.4, see microsoft/TypeScript#29510). This should get around many of the times where I need to say things like:
return {
type: ChunkContents.LINK,
content: linkMatch[2],
ref: linkMatch[1],
} as {
type: ChunkContents.LINK;
content: string;
ref: string;
};
It would be great to get the rule no-object-literal-type-assertion
to support as const
but disallow as someOtherType
(at least as an option).
qm3ster, tetsuharuohzeki, SimonSiefke, busybeaver and nstepien
Metadata
Metadata
Assignees
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulepackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estreeIssues related to @typescript-eslint/typescript-estree