New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@blucass/eslint-config-react

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blucass/eslint-config-react

A set of lint config rules for react project


Version published
Maintainers
1
Created

eslint-config-react

A set of lint config rules for React project.

Installation

yarn add -D @blucass/eslint-config-react

# or

npm install -D @blucass/eslint-config-react

Usage

It's easy to integrate if you're using typescript. In your eslint config file, set extends:

module.exports = {
  extends: ['@blucass/react']
}

# or

module.exports = require('@blucass/eslint-config-react')

That's all!

Just for JS

NOTE:you must provide a babel config file such as babel.config.js in the root directory, since will not parse any experimental syntax when no configuration file is found. See more.

If you are just using js/jsx, what means you don't need typescript lint rules. The package also support it with @blucass/eslint-config-react/lib/eslint.

module.exports = {
  extends: [require.resolve('@blucass/eslint-config-react/lib/eslint')]
}

FAQs

Package last updated on 01 Aug 2022

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