@iambrennanwalsh/eslint-config
v0.1.5
Published
Personal ESLint config of @iambrennanwalsh.
Downloads
2
Readme
eslint-config
Personal ESLint configuration of @iambrennanwalsh.
Usage
- Install the
@iambrennanwalsh/eslint-config
package usingnpm
oryarn
.
Note: Until this ongoing issue with ESLint is fixed, you must also install @rushstack/eslint-patch
.
npm install @iambrennanwalsh/eslint-config @rushstack/eslint-patch
// or
yarn add @iambrennanwalsh/eslint-config @rushstack/eslint-patch
- Create an ESLint config file (
.eslintrc
) with the root of your project.
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
"root": true,
"extends": [
`@iambrennanwalsh`
]
}
- Extend additional config files. If extending the Prettier config, be sure it comes very last within your
extends
array.
- TypeScript:
@iambrennanwalsh/eslint-config/src/typescript
- React:
@iambrennanwalsh/eslint-config/src/react
- Jest:
@iambrennanwalsh/eslint-config/src/jest
- Webpack:
@iambrennanwalsh/eslint-config/src/webpack
- Prettier:
@iambrennanwalsh/eslint-config/src/prettier