6 ms·
Yes. There are so few TS features that are non-type-level and non-standard. One option is to lint against these few features and call it a day. { "rules"
by danfo 6y ago
Yes. There are so few TS features that are non-type-level and non-standard. One option is to lint against these few features and call it a day.
{
"rules": {
"no-restricted-syntax": [
"error",
{
"selector": "TSEnumDeclaration",
"message": "Enum restricted."
},
{
"selector": "ClassDeclaration[abstract=true]",
"message": "Abstract class restricted."
},
{
"selector": "TSParameterProperty",
"message": "Parameter property restricted."
}
]
}
}
(TS decorators are already marked experimental)