Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

cloudreach/eslint-config-cloudreach

 
 

Repository files navigation

eslint-config-cloudreach

Cloudreach's ESLint configuration

This is the sharable ESLint config used in Cloudreach projects.

Usage

Default

The default ESLint configuration lints for ES5.

Install the default configuration package and eslint dependency:

npm i -S -D eslint-config-cloudreach eslint

Add the config to a .eslintrc.json file using the ESLint extends attribute:

{
  "extends": "cloudreach"
}

ES8

The ES8 ESLint configuration lints for ES8.

Install the default configuration package and eslint dependency:

npm i -S -D eslint-config-cloudreach eslint

Add the config to a .eslintrc.json file using the ESLint extends attribute:

{
  "extends": "cloudreach/es8"
}

React.js

The React.js eslint configuration lints for both ES8 and React.js.

Install the React.js configuration package and eslint dependency:

npm i -S -D eslint-config-cloudreach eslint-plugin-react eslint-plugin-babel eslint

Add the config to a .eslintrc.json file using the ESLint extends attribute:

{
  "extends": "cloudreach/react"
}

License

MIT