@episerver/eslint-config

1.2.0 • Public • Published

eslint-config-episerver

ESLint shareable config for the Episerver JavaScript style guide

Installation

yarn

yarn add --dev eslint-config-episerver

npm

npm install --save-dev eslint-config-episerver

Usage

Once the eslint-config-episerver package is installed, you can use it by specifying episerver in the extends section of your ESLint configuration.

{
  "extends": "episerver",
  "rules": {
    // Additional, per-project rules...
  }
}

Using the episerver config with eslint:recommended

There are several rules in the eslint:recommended ruleset that the Episerver style is not opinionated about that you might want to enforce in your project.

To use the Episerver style in conjunction with ESLint's recommended rule set, extend them both, making sure to list episerver last:

{
  "extends": ["eslint:recommended", "episerver"],
  "rules": {
    // Additional, per-project rules...
  }
}

License

MIT © Episerver

Package Sidebar

Install

npm i @episerver/eslint-config

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

4.08 kB

Total Files

6

Last publish

Collaborators

  • johanpetersson
  • ryanbare
  • barteksekula
  • alwa
  • robinjac