@nulogy/eslint-config-nulogy
v1.0.0
Published
A shareable config for Nulogy frontend apps
Downloads
148
Keywords
Readme
@nulogy/eslint-config-nulogy
A custom ESLint config with recommended settings for Apollo/TypeScript/React/JSON development at Nulogy.
This configuration is based on typescript-eslint. For supporting JSON files eslint-plugin-json
is being used. Support for Prettier has been also added.
Usage
Install this using:
yarn add -D @nulogy/eslint-config-nulogy
In order to use this configuration, you also have to install the peer dependencies eslint
, prettier
and typescript
:
yarn add -D eslint prettier
yarn add typescript
Then add extends: "@nulogy/nulogy"
to your .eslintrc.*
file like so:
.eslintrc.js
:
module.exports = {
extends: "@nulogy/nulogy"
}
You may also want to add a .prettierignore
file, especially to filter out __generated__
files from Apollo Codegen.
TODOs
- Extract rules that have been customized
- Consider using
eslint-config-react-app