@blucass/eslint-config-react

2.1.0 • Public • Published

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')]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @blucass/eslint-config-react

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

5.78 kB

Total Files

11

Last publish

Collaborators

  • blucass