0.1.4 • Published 6 years ago
eslint-config-deftly v0.1.4
eslint-config-deftly
Deftly core ESLint configuration; contains the base ESLint rulesets we use for our web & mobile projects. 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 CRA, 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-eslintNext, install eslint-config-deftly:
$ yarn add -D eslint-config-deftlyNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-config-deftly globally.
Usage
Add deftly to the extends section of your .eslintrc.js configuration file. You can omit the eslint-config- prefix:
{
'extends': [
'deftly'
]
}