Reactway's ESLint guidelines for TypeScript projects. Based on @typescript-eslint/recommended and prettier/@typescript-eslint.
npm install @reactway/eslint-config -D
Create config file in project root folder .eslintrc.json
.
{
"extends": ["@reactway"]
}
{
"extends": ["@reactway/eslint-config/react"]
}
If you're getting errors like:
C:\project-path\file-name.tsx(1,8): warning @typescript-eslint/no-unused-vars : 'React' is defined but never used.
Most probably you're configuring a React project and extended a non-React eslint config.
Released under the MIT license.