Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Helpful ESLint rules for React Native

License

Notifications You must be signed in to change notification settings

public-js/eslint-plugin-react-native

Repository files navigation

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

Resources

License

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