ESLint plugin for electron extension
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-electron-extension
:
npm install eslint-plugin-electron-extension --save-dev
Add electron-extension
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"electron-extension"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"electron-extension/no-incompatible-api": 2
}
}
Name | Description |
---|---|
no-incompatible-api | Rules for electron extension api |