Intellicode / eslint-plugin-react-native

React Native plugin for ESLint
MIT License
722 stars 130 forks source link

Unhandled case no-inline-styles + typescript when add type casting `as T` #296

Closed retyui closed 1 year ago

retyui commented 3 years ago

Our tricky developers found a way to ignore eslint rule:

// 1) Work as expected (eslint error : no-inline-styles )
<View style={{width: 1}} /> 

// 2) No error 😕
<View style={{width: 1} as ViewStyle} /> 

Can you fix it?

retyui commented 1 year ago

dead pkg