eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
Unhandled case no-inline-styles + typescript when add type casting `as T`
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?