1.1.0 • Published 4 years ago

eslint-config-thai-soup v1.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

eslint-config-thai-soup

ESLint config for TypeScript and React project.

Installation

yarn add --dev eslint-config-thai-soup

Usage

It requires eslint, prettier, typescript.

  1. Install the correct versions of each package, which are listed by the command.
yarn info eslint-config-thai-soup peerDependencies
  1. In your ESLint config, specify thai-soup in the extends section and the path of your project's tsconfig.json in the parserOptions section. if you don't need React, you can use thai-soup/base.
{
  "extends": ["thai-soup"], // or thai-soup/base
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "rules": {
    // Additional, per-project rules
  }
}

Tips

I recommend Duncan Leung's article for faster ESlint performance

Why typescript-eslint Performance is Slow