@origin-1/eslint-plugin

0.16.1 • Public • Published

@origin-1/eslint-plugin · npm version

ESLint plugin for Origin₁ rules.

Installation

Install ESLint and @origin-1/eslint-plugin:

npm i --save-dev eslint @origin-1/eslint-plugin

Note

If you installed ESLint globally (using the -g flag) then you must also install plugins globally:

npm i -g @origin-1/eslint-plugin

Usage

Add "@origin-1" to the "plugins" section of your .eslintrc configuration file. Then configure the rules defined by this plugin under the "rules" section.

{
    "plugins": [
        "@origin-1"
    ],
    "rules": {
        "@origin-1/bracket-layout": "error",
        "@origin-1/indent": "error",
        "@origin-1/nice-space-before-function-paren": "error",
        "@origin-1/no-extra-new": "error",
        "@origin-1/no-spaces-in-call-expression": "error",
        "@origin-1/no-spaces-in-tagged-template": "error",
        "@origin-1/property-colon-spacing": "error"
    }
}

Rules

Package Sidebar

Install

npm i @origin-1/eslint-plugin

Weekly Downloads

21

Version

0.16.1

License

ISC

Unpacked Size

59.8 kB

Total Files

19

Last publish

Collaborators

  • fasttime