reactway / eslint-config

Reactway's ESLint guidelines for TypeScript projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@reactway/eslint-config

npm Azure DevOps builds

Reactway's ESLint guidelines for TypeScript projects. Based on @typescript-eslint/recommended and prettier/@typescript-eslint.

Get started

npm install @reactway/eslint-config -D

How to use?

Create config file in project root folder .eslintrc.json.

Node projects

{
    "extends": ["@reactway"]
}

React projects

{
    "extends": ["@reactway/eslint-config/react"]
}

Troubleshooting

1. 'React' is defined but never used.

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.

License

Released under the MIT license.

About

Reactway's ESLint guidelines for TypeScript projects.

License:MIT License


Languages

Language:JavaScript 93.0%Language:TypeScript 6.5%Language:SCSS 0.5%