@shoutem/eslint-config-react-native

1.0.4 • Public • Published

@shoutem/eslint-config-react-native

npm version

This package provides Shoutem's React Native JS .eslintrc (with React plugins) as an extensible shared config.

Usage

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint, eslint-plugin-import, eslint-plugin-prettier, eslint-plugin-simple-import-sort, eslint-plugin-jsx-a11y, eslint-plugin-react, eslint-plugin-react-native, eslint-plugin-react-hooks and prettier.

  1. Install the correct versions of each package, which are listed by the command:
npm info "@shoutem/eslint-config-react-native@latest" peerDependencies

If using npm 5+, use this shortcut

npx install-peerdeps --dev @shoutem/eslint-config-react-native

If using npm < 5, you can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

npm install -g install-peerdeps
install-peerdeps --dev @shoutem/eslint-config-react-native
  1. Add "extends": "@shoutem/react-native" to your .eslintrc.

Package Sidebar

Install

npm i @shoutem/eslint-config-react-native

Weekly Downloads

645

Version

1.0.4

License

MIT

Unpacked Size

2.94 kB

Total Files

4

Last publish

Collaborators

  • shoutem-manager