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...
}
}
omnious
config with eslint:recommended
Using the 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...
}
}