@reactway/eslint-config

1.0.4 • Public • Published

@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.

Package Sidebar

Install

npm i @reactway/eslint-config

Weekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

9.23 kB

Total Files

5

Last publish

Collaborators

  • reactway-dev
  • martynas-zilinskas
  • quatrodev