NLeSC / create-react-app

Create React apps with no build configuration.
Other
1 stars 1 forks source link

Casting rules, `<That>` vs `as That` #43

Open sverhoeven opened 7 years ago

sverhoeven commented 7 years ago

There are 2 tslint rules

Now the default is to prefer <That> or type-cast. I suggest we overwrite this with the newer and less jsx like version of as That.

This can be enabled by adding the following rule overwrites:

{
        "prefer-type-cast": false,
        "no-angle-bracket-type-assertion": true,
}