README
OPT ESLint Configuration
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"
}
},