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

no-unused-styles: False positive when using dot access on style.

Open joshuapinter opened this issue 2 years ago • 0 comments

For example:

width={ styles.thumbnail.width }

This will raise an error with the following style:

thumbnail: {
  width: "30%"
},
eslint: error
react-native/no-unused-styles - Unused style detected: styles.thumbnail

Using dot notation is ignored when determining which defined styles are used.

joshuapinter avatar Jul 28 '21 03:07 joshuapinter