eslint-plugin-react-native icon indicating copy to clipboard operation
eslint-plugin-react-native copied to clipboard

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

Open retyui opened this issue 4 years ago • 0 comments

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 avatar Oct 03 '21 20:10 retyui