@jchiam/eslint-config

4.0.0 • Public • Published

ESLint Config

npm

This is a shareable eslint config.

Usage

npm i -D @jchiam/eslint-config

Add .eslintrc to project.

{
  "extends": [
    "@jchiam/eslint-config/recommended",
    "@jchiam/eslint-config/react"
  ]
  "rules": {}
}

Override rules as needed in local .eslintrc.

Breaking Changes

v3 to v4

The original config file has been split from index.js to recommended.js and react.js. Extending both config files is equivalent to the original usage. This was done to allow for non-React projects to extend only the base config file to avoid any React-related warnings from ESLint.

From:

{
  "extends": "@jchiam",
  "rules": {}
}

To:

{
  "extends": [
    "@jchiam/eslint-config/recommended",
    "@jchiam/eslint-config/react"
  ]
  "rules": {}
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jchiam/eslint-config

Weekly Downloads

29

Version

4.0.0

License

none

Unpacked Size

5.74 kB

Total Files

4

Last publish

Collaborators

  • jchiam