eslint-config-deftly-rn
v0.1.8
Published
Deftly ESLint configuration for React Native projects.
Downloads
3
Maintainers
Readme
eslint-config-deftly-rn
Deftly ESLint configuration for React Native projects; includes eslint-config-deftly
configuration in addition to React Native-specific rules. This is configured to work with Prettier.
Installation
You'll first need to install ESLint and the config peer dependencies. If the project was bootstrapped using CRNA, you only need to install the plugins:
$ yarn add -D eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y eslint babel-eslint
Next, install eslint-config-deftly-rn
:
$ yarn add -D eslint-config-deftly-rn
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-config-deftly-rn
globally.
Usage
Add deftly-rn
to the extends section of your .eslintrc.js
configuration file. You can omit the eslint-config-
prefix:
{
'extends': [
'deftly-rn'
]
}