eslint-config-deftly-rn

0.1.8 • Public • Published

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'
    ]
}

Package Sidebar

Install

npm i eslint-config-deftly-rn

Weekly Downloads

7

Version

0.1.8

License

ISC

Unpacked Size

5.3 kB

Total Files

8

Last publish

Collaborators

  • ddeftly