@omnious/eslint-config-react

ESLint shareable config for the Omnious JavaScript React projects

Usage no npm install needed!

<script type="module">
  import omniousEslintConfigReact from 'https://cdn.skypack.dev/@omnious/eslint-config-react';
</script>

README

ESLint Config Omnious React

@omnious/eslint-config-react

ESLint shareable config for the Omnious JavaScript React projects


Installation

# NPM
$ npm install --save-dev eslint eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y @omnious/eslint-config-react
# Yarn
$ yarn add -D eslint eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y @omnious/eslint-config-react

Usage

{
    "extends": "@omnious/eslint-config-react",
    "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/eslint-config-react"],
  "rules": {
    // Additional, per-project rules...
  }
}

License

MIT © Omnious