0.1.2 • Published 2 years ago

@public-js/eslint-plugin-react-native v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@public-js/eslint-plugin-react-native

Build Version Downloads Size

Codacy LGTM Codecov Code Climate

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-orderSorts related property declarations by grouping together.🔧💡

Resources

License

MIT, full license text. Read more about it on TLDRLegal.