eslint-plugin-wpcalypso

Custom ESLint rules for the WordPress.com Calypso project

Usage no npm install needed!

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

README

Eslint plugin wpcalypso

Custom ESLint rules for the WordPress.com Calypso project.

Installation

Install ESLint amd eslint-plugin-wpcalypso

$ yarn add --dev eslint eslint-plugin-wpcalypso

Usage

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

{
    "plugins": [
        "wpcalypso"
    ]
}

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

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

Supported Rules

License

GNU General Public License v2.0 or later.