eslint-plugin-jam3

Jam3 eslint plugin for react

Usage no npm install needed!

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

README

eslint-plugin-jam3

Jam3 eslint plugin for react

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-jam3:

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

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

Usage

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

{
  "plugins": ["jam3"]
}

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

{
  "rules": {
    "jam3/rule-name": 2
  }
}

Supported Rules

Useful resources