eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
React Native plugin for ESLint
Without using any rule of react-native, warnings and errors shows next to files and folders in vscode, like the image bellow. But when I use any rule, it doesn't show...
Basically, could [the settings in this issue](https://github.com/benmosher/eslint-plugin-import/issues/279#issuecomment-215052176) be included in the `eslint-plugin-react-native`? ``` json "settings": { "import/resolver": { "node": { "extensions": [".js", ".ios.js", ".android.js"] } } } ```
Hope the title makes sense. Not the most familiar with ESLInt rules etc. I've had to do the following to suppress for the moment: ``` // eslint-disable-next-line no-undef navigator.geolocation.getCurrentPosition( ```
The docs suggest ``` "ecmaFeatures": { "jsx": true }, ``` But for me, using eslint 4.19.0, I get the following warning: > [eslint] The 'ecmaFeatures' config file property is deprecated,...
Does eslint-plugin-react-native suport typescript?
Assume component: ``` class Foo extends Component { render() { return ( Bar ) } } ``` Then `no-inline-styles` reports: ``` 10:22 error Inline style: { margin: NaN } react-native/no-inline-styles...
Hi! The `no-color-literals` does not mark the following case as error: ```js export default StyleSheet.create({ container: { color: '#fff' } }); ``` If I pull out the stylesheet into a...
Had an idea for a rule to throw in this case: ```javascript const React = require('react'); const { StyleSheet, View } = require('react-native'); const styles = StyleSheet.create({ list: {} });...
By using the following syntax `const style = {...commonStyle, ...specificStyle}`. I can combine two stylesheets into one. However, even though the styles are used through the `style` object, the styles...
I would expect the following to pass, but it does not. ```javascript const styles = StyleSheet.create({ foo: { /* styles */ } }) () => { const bar = 'foo'...