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

I've added a support for the use of destructuring assignment for styles: For example: ```js const styles = StyleSheet.create({ name: {} }); const Hello = React.createClass({ render: function() { const...

I am interested in having the ability to order styles which may include switch statements, as the project may want to use different styling for portrait and landscape orientation. As...

The styles are are marked as errors when the styles are destructed. [Destructuring Assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) ```javascript class App extends Component { render() { const { container, welcome, instructions } = styles;...

Unless I'm doing something wrong, the no-raw-text rule doesn't seem to work when using styled-components. This makes it largely useless I think? Would be nice to be able to use...

I'm using the ESLint plugin in VSCode, and when I'm in the middle of typing out my component style (e.g. ``) in VSCode, I'm getting the following error: ``` TypeError:...

Our tricky developers found a way to ignore eslint rule: ```tsx // 1) Work as expected (eslint error : no-inline-styles ) // 2) No error 😕 ``` Can you fix...

The no-raw-text rule could be made much more robust by using TypeScript types. Currently, the rule detects simple usage like `foo` and `{'foo'}` but using any variables prevents detection `{textVar}`....

For example: ```js width={ styles.thumbnail.width } ``` This will raise an error with the following style: ```js thumbnail: { width: "30%" }, ``` ``` eslint: error react-native/no-unused-styles - Unused style...

On "eslint-plugin-react-native": "3.9.1" there seems to be a false positive error/warning ``` Message from {username} ``` There seems to be a problem with Nested Text for this rule.

The Touchable series of components are discouraged now according to the React Native documentation with the following statement on the documentation: > If you're looking for a more extensive and...