You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@reactway/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactway/eslint-config

Reactway's ESLint guidelines for TypeScript projects.

1.0.4
latest
npmnpm
Version published
Maintainers
3
Created
Source

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

Keywords

eslint

FAQs

Package last updated on 01 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts