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

Feature/styles destructuring support

Open tulitheprogrammer opened this issue 4 years ago • 1 comments

I've added a support for the use of destructuring assignment for styles:

For example:

      const styles = StyleSheet.create({
        name: {}
      });
      const Hello = React.createClass({
        render: function() {
          const { name } = styles;
          return <Text style={name}>Hello {this.props.name}</Text>;
        }
      });

tulitheprogrammer avatar Nov 01 '21 15:11 tulitheprogrammer

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
85.0% 85.0% Duplication

sonarqubecloud[bot] avatar Nov 01 '21 15:11 sonarqubecloud[bot]