Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

omnious-dev/eslint-config-omnious

Repository files navigation

ESLint Config Omnious

eslint-config-omnious

ESLint shareable config for the Omnious JavaScript style guide


Installation

# NPM
$ npm install --save-dev eslint eslint-config-omnious
# Yarn
$ yarn add -D eslint eslint-config-omnious

Usage

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

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

Using the omnious config with eslint:recommended

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

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

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

License

MIT © Omnious