@equinor/eslint-config-opt

Shared team ESLint configuration for OPT.

Usage no npm install needed!

<script type="module">
  import equinorEslintConfigOpt from 'https://cdn.skypack.dev/@equinor/eslint-config-opt';
</script>

README

OPT ESLint Configuration

License Downloads

Release Vulnerabilities

This is the shared team ESLint configuration for OPT.

Usage

Install the package.

npm install --save-dev @equinor/eslint-config-opt
// or
yarn add --dev @equinor/eslint-config-opt

Next, specify opt in the extends section of your ESLint configuration.

{
  "eslintConfig": {
    "extends": "@equinor/eslint-config-opt"
  }
}

Override eslint rules

To override/extend the eslint rules simply add the rules you want to add or modify

For example, to disable the eslint rule "no-lonely-if":

"eslintConfig": {
  "extends": "@equinor/eslint-config-opt",
  rules: {
    "no-lonely-if": "off"
  }
},