0.2.1 • Published 2 years ago
@fellwork/eslint-config v0.2.1
fellwork/eslint-config
Shared configuration for ESLint.
Features
Default parsers
Default configuration includes plugins/config for the following:
- babel
- eslint-comments
- standard
- html
- import
- jest
- jsonc
- markdown
- md
- n
- promise
- react
- unicorn
- vue
- yml
- @typescript-eslint
Usage
First, install the required packages:
yarn add -D eslint @fellwork/eslint-config
pnpm add -D eslint @fellwork/eslint-config
npm i --save-dev eslint @fellwork/eslint-config
For TypeScript projects, also install TypeScript:
yarn add -D typescript
pnpm add -D typescript
npm i --save-dev typescript
JSON: extend the config in .eslintrc.json
:
{
"extends": "@fellwork"
}
JS: extend the config in .eslintrc.js
:
module.exports = {
extends: ['@fellwork']
}