Skip to content

xupea/eslint-plugin-electron-extension

Repository files navigation

eslint-plugin-electron-extension

ESLint plugin for electron extension

Installation

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

Usage

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
    }
}

Rules

Name Description
no-incompatible-api Rules for electron extension api