@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0210latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.0210
1.4.00
1.3.01,478
1.2.00
1.1.16
1.1.00
1.0.00

Package Sidebar

Install

npm i @forgerock/eslint-config

Weekly Downloads

732

Version

2.0.0

License

MIT

Unpacked Size

15.2 kB

Total Files

32

Last publish

Collaborators

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