Skip to content

Files

Latest commit

 

History

History
78 lines (58 loc) · 4.08 KB

README.md

File metadata and controls

78 lines (58 loc) · 4.08 KB

eslint-plugin-interfaced

ESLint plugin with essential rules for Closure Compiler environment and JSDoc.

Usage

  1. Install the package:
npm i eslint-plugin-interfaced --save-dev
  1. Specify "interfaced" as a plugin in your .eslintrc:
{
  "plugins": [
    "interfaced"
  ]
}
  1. Enable all of the rules that you would like to use in your .eslintrc:
{
  "rules": {
    "interfaced/abstract-class-name-prefix": "error"
  }
}

Rules

JSDoc

Naming convention

Stylistic issues

Other

Redefined

Some useful rules provided by ESLint are slightly inappropriate for our environment, so we redefine them with some adjusting: