eslint-plugin-jsre
ESLint plugin for EdgerOS JSRE (JavaScript Runtime Environment).
This plugin provides environment @edgeros/jsre/env
to define global variables inside JSRE.
Usage
- Install the package
npm install @edgeros/eslint-plugin-jsre --save-dev
- Add
@edgeros/jsre
to the plugins section of your.eslintrc
.
Theeslint-plugin-
prefix might be omitted below:
{
"plugins": [
"@edgeros/eslint-plugin-jsre"
]
}
- Add
@edgeros/jsre/env
to theenv
section of your.eslintrc
.
Theeslint-plugin-
prefix has to be omitted below:
{
"env": {
"@edgeros/jsre/env": true
}
}