eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
React Native plugin for ESLint
According to the Issue #248, this PR adds support of using regular expression in skip parameter in config file, as [suggested here.](https://github.com/Intellicode/eslint-plugin-react-native/issues/248#issuecomment-673130844) It helps to avoid linter warnings in custom...
Issue: https://github.com/Intellicode/eslint-plugin-react-native/issues/165#issuecomment-983636750
It would be nice to be able to white list specific colors that are okay to use. For us it's mainly `white` and `black`.
Added an option for rule 'no-inline-styles'. - "allowStylePropertiesLessThan" – allow style properties count less than a specific number. for e.g. `2` will allow `{fontSize: 15}` but not `{fontSize: 15, fontColor:...
Hi team, In Typescript environment I am facing below issue, can you please let me know what I can do for this? ``` Oops! Something went wrong! :( ESLint: 7.32.0...
I've managed to reduce the problem to the following: ```tsx // Just to check if eslint is alive, to get indent warn const a = 4; const Q: React.FC React.ReactNode}>...
In some components such as View, text can not be placed directly inside (it must be wrapped with a Text component). Could you add a rule for this ? Ideally...
```jsx {getMsgType(msg)} ``` Gives 2x `Whitespace(s) cannot be used outside of a tag`. Which is wrong, however I can't workaround it with skip: ``` 'react-native/no-raw-text': [ 'error', { 'skip': [...
using "eslint-plugin-react": "^7.17.0","eslint-plugin-react-native": "^3.8.1" Here's the stack trace: ``` TypeError: Cannot read property 'expression' of null at JSXAttribute (/Users/App/node_modules/eslint-plugin-react-native/lib/rules/no-single-element-style-arrays.js:40:24) at /Users/App/node_modules/eslint/lib/util/safe-emitter.js:47:58 at Array.forEach () at Object.emit (/Users/App/node_modules/eslint/lib/util/safe-emitter.js:47:38) at NodeEventGenerator.applySelector (/Users/App/node_modules/eslint/lib/util/node-event-generator.js:251:26)...
Seeing that I'm using the no inline styles rule in a production system I would see a benefit to allowing to override the messages with instructions on what would be...