@public-js/eslint-plugin-react-native
v0.1.2
Published
Helpful ESLint rules for React Native
Downloads
9
Readme
@public-js/eslint-plugin-react-native
Helpful ESLint rules for React Native
Installing
Add the package to your project by running:
npm i -D @public-js/eslint-plugin-react-native
Add the following to your ESLint config or modify the existing properties:
module.exports = {
// ...
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: { jsx: true },
},
plugins: [
// ...
'@public-js/eslint-plugin-react-native',
],
// ...
};
Rules
- 🔧 - Some problems reported by the rule can be fixed automatically by the
--fix
option - 💡 - Some problems reported by the rule can be fixed manually with IDE suggestions
| Name | Description | | | | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------- | :-- | :-- | | stylesheet-rational-order | Sorts related property declarations by grouping together. | 🔧 | 💡 |
Resources
License
MIT, full license text. Read more about it on TLDRLegal.