eslint-plugin-es-jacket

1.0.0-rc.1 • Public • Published

eslint-plugin-es-jacket

Code restrictions for ES6 and beyond

Installation (global)

You'll first need to install ESLint:

$ npm i -g eslint

Next, install eslint-plugin-es-jacket:

$ npm i -g eslint-plugin-es-jacket

Note: If you installed the plugin locally (without using the -g flag) then your global ESLint will not have access to it.

Usage

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

{
    "plugins": [
        "es-jacket"
    ]
}

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

{
    "rules": {
        "es-jacket/no-class-declaration": [ "error" ],
        "es-jacket/no-export-named-declaration": [ "error" ],
        "es-jacket/no-import-declaration": [ "error" ],
        "es-jacket/no-module-keyword": [ "error" ],
    }
}

Supported Rules

  • no-class-declaration
  • no-export-named-declaration
  • no-import-declaration
  • no-module-keyword

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-es-jacket

Weekly Downloads

2

Version

1.0.0-rc.1

License

ISC

Unpacked Size

19 kB

Total Files

13

Last publish

Collaborators

  • solo-md