1.1.0 • Published 4 years ago
eslint-config-thai-soup v1.1.0
eslint-config-thai-soup
ESLint config for TypeScript and React project.
Installation
yarn add --dev eslint-config-thai-soupUsage
It requires eslint, prettier, typescript.
- Install the correct versions of each package, which are listed by the command.
yarn info eslint-config-thai-soup peerDependencies- In your ESLint config, specify
thai-soupin the extends section and the path of your project's tsconfig.json in the parserOptions section. if you don't need React, you can usethai-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