0.1.1 • Published 7 years ago
eslint-plugin-oic v0.1.1
eslint-plugin-oic
Oracle Integration Cloud rules for ESLint
Installation
Install ESLint.
npm install eslint --save-devThen install this plugin.
npm install eslint-plugin-oic --save-devConfiguration
Use the oic/recommended preset to get reasonable defaults:
{
"extends": [
"plugin/oic:recommended"
]
}To configure rules manually, first add oic to the plugins section of your
.eslintrc configuration file.
{
"plugins": [
"oic"
]
}Then configure the rules you would like to use in the rules section.
{
"rules": {
"oic/return-var": "error"
}
}Supported Rules
- oic/return-var: Requires functions to return variables
Presets
This plugin provides a oic/recommended preset which enables the following rules: