eslint-plugin-htmlacademy
TypeScript icon, indicating that this package has built-in type declarations

0.0.29 • Public • Published

eslint-plugin-htmlacademy

Rules collection for javascript intensives

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-htmlacademy:

$ npm install eslint-plugin-htmlacademy --save-dev

Usage

Add htmlacademy to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "htmlacademy"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "htmlacademy/array-names-plural": 1,
        "htmlacademy/class-enumeration-names": 1,
        "htmlacademy/function-starts-verb": 1,
        "htmlacademy/value-single-noun": 1
    }
}

Supported Rules

  • Array names should be plural nouns (array-names-plural)
  • Class/enumeration name should be noun starting with uppercase letter (class-enumeration-names)
  • Function/method name should start with verb (function-starts-verb)
  • Value name should be single noun (value-single-noun)

Package Sidebar

Install

npm i eslint-plugin-htmlacademy

Weekly Downloads

5

Version

0.0.29

License

ISC

Unpacked Size

84.5 kB

Total Files

73

Last publish

Collaborators

  • kaineer