Support as const in no-object-literal-type-assertion #166
Labels
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
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:It would be great to get the rule
no-object-literal-type-assertion
to supportas const
but disallowas someOtherType
(at least as an option).The text was updated successfully, but these errors were encountered: