@corefw/eslint-plugin-corefw

An eslint plugin to enforce custom rules used by the Core Framework.

Usage no npm install needed!

<script type="module">
  import corefwEslintPluginCorefw from 'https://cdn.skypack.dev/@corefw/eslint-plugin-corefw';
</script>

README

eslint-plugin-corefw

An eslint plugin to enforce custom rules used by the Core Framework.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-corefw:

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

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-corefw globally.

Usage

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

{
    "plugins": [
        "@corefw/eslint-plugin-corefw"
    ]
}

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

{
    "rules": {
        "@corefw/corefw/rule-name": 2
    }
}

Supported Rules