eslint-config-react-native-lit
v1.0.4
Published
Highly opinionated ESLint config for React Native used by University of Sydney.
Downloads
105
Maintainers
Readme
ESLint Config React Native
- Airbnb Javascript Style Guide - A mostly reasonable approach to JavaScript.
- Prettier - An opinionated code formatter.
- ESLint Plugin React - React specific linting rules for ESLint.
- ESLint Plugin React Native - React Native plugin for ESLint.
- ESLint Plugin Imports - ESLint plugin with rules that help validate proper imports.
- ESLint Plugin Accessibility - Static AST checker for a11y rules on JSX elements.
- ESLint Plugin React Redux - Enforcing best practices for react-redux.
- ESLint Plugin React Hooks - This ESLint plugin enforces the Rules of Hooks.
- ESLint Plugin Jest - ESLint plugin for Jest.
- ESLint Plugin Comments - Additional ESLint rules for directive comments of ESLint.
Installation
$ npm install eslint-config-react-native-lit --save-dev
$ yarn add -D eslint-config-react-native-lit
Usage
.eslintrc
{
"extends": ["react-native-lit"]
}
package.json
"eslintConfig": {
"extends": ["react-native-lit"]
},
Rules Order of Precedence
- Recommended Prettier React rules.
- Recommended Airbnb React rules which includes imports and accessibility and React's Rule of Hooks.
- Recommended ESLint React Native rules except sort styles alphabetically.
- Recommended ESLint React Redux rules.
- Recommended ESLint Jest and style rules.
- Recommended ESLint comments rules.