@forgerock/eslint-config

2.0.0 • Public • Published

ForgeRock ESLint Shareable Configuration

ForgeRock’s JavaScript Style Guide as a ESLint Shareable Configuration.

Prerequisites

ForgeRock ESLint Shareable Configuration requires ESLint 6.x.

Installation

via Yarn

yarn add @forgerock/eslint-config

via NPM

npm install @forgerock/eslint-config

Usage

Add one or more of the following rule sets to the extends section of your .eslintrc.js configuration.

Babel

extends: ["@forgerock/eslint-config/babel"]

Babel rules provided by eslint-plugin-babel.

Use these rules if you are using the babel-eslint parser.

Built-In

extends: ["@forgerock"]

Built-in rules provided by ESLint.

Filenames

extends: ["@forgerock/eslint-config/filenames"]

Filename rules provided by eslint-plugin-filenames.

JSX a11y

extends: ["@forgerock/eslint-config/jsx-a11y"]

JSX accessiblity rules provided by eslint-plugin-jsx-a11y.

JSDoc

extends: ["@forgerock/eslint-config/jsdoc"]

JSDoc rules provided by eslint-plugin-jsdoc.

Promise

extends: ["@forgerock/eslint-config/promise"]

Promise rules provided by eslint-plugin-promise.

React

extends: ["@forgerock/eslint-config/react"]

React and JSX rules provided by eslint-plugin-react.

React Hooks

extends: ["@forgerock/eslint-config/react-hooks"]

React Hook rules provided by eslint-plugin-react-hooks.

Contributing

Contribute to ForgeRock ESLint Shareable Configuration by opening a Pull Request.

Readme

Keywords

none

Package Sidebar

Install

npm i @forgerock/eslint-config

Weekly Downloads

670

Version

2.0.0

License

MIT

Unpacked Size

15.2 kB

Total Files

32

Last publish

Collaborators

  • adamheath-fr
  • daveernstingfr
  • froliver
  • lee.baines