ESLint config by Nick Olsen (ncko)
npm install @ncko/eslint-config- Usage
- Typescript
- React
Install @ncko/eslint-config along with eslint:
``shell`
yarn add -D eslint @ncko/eslint-config
In a .eslintrc file at the root of your project:
`json`
{
"extends": ["@ncko/eslint-config"]
}
There are also configs for typescript and react. Each have peer dependencies that must also be installed.
Install the typescript config's peer dependencies:
`shell`
yarn add -D typescript @typescript-eslint/eslint-plugin
In your .eslintrc file:
`json`
{
"extends": ["@ncko/eslint-config", "@ncko/eslint-config/typescript"]
}
Install the react config's peer dependencies:
`shell`
yarn add -D eslint-plugin-jsx-a11y eslint-plugin-react
In your .eslintrc file:
`json``
{
"extends": ["@ncko/eslint-config", "@ncko/eslint-config/react"]
}