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

React Native plugin for ESLint

Results 91 eslint-plugin-react-native issues
Sort by recently updated
recently updated
newest added

If you use `StyleSheet.create({})` without `StyleSheet` import it causes no error

This does not detect unused styles in react native web. https://github.com/necolas/react-native-web

no-unused-styles reports unused style detected when the style object property names are quoted ``` const styles = StyleSheet.create({ 'container': { alignItems: 'center', backgroundColor: Color.white, flex: 1, justifyContent: 'center' } });...

I often loose my mind looking for vicious a bug whereas I only forgot to import one of the native elements I am using... The no-undef classic rule is not...

| 🚨🔥⚠️ _Action required_: Switch to the new [Greenkeeper](https://git.io/uptodate) now! 🚨🔥⚠️ | | --- | | This version of Greenkeper will be __shutdown on May 31st.__ | | With [Integrations](https://developer.github.com/early-access/integrations/)...

greenkeeper

I often add conditional styles to my components and `no-unused-styles` doesn't see that the style is actually used in the code. ```javascript const styles = StyleSheet.create({ container: { padding: 1,...

Copy/Paste from https://github.com/facebook/react-native/blob/master/.eslintrc#L19-L52

Hello, I was wondering how to properly setup this plugin in order I stop getting warnings like `9:15 warning No magic number: 20 no-magic-numbers` within styles block such as: ```...

``` const styles = StyleSheet.create({}); const Hello = React.createClass({ render: function() { return Hello {this.props.name}; } }); ``` Should throw a warning regarding `styles.name`

idea

Considered this component having a `variant` prop with values `white` and `primary`, affecting the selection of the styles object: ```typescript import React, { FC } from 'react'; import { StyleSheet,...