@dorgelesn/eslint-plugin-sfccdx

ESLint Plugin for Salesforce Commerce Cloud

Usage no npm install needed!

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

README

@dn-sfccdx/eslint-plugin

ESLint Plugin for Salesforce Commerce Cloud

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @dn-sfccdx/eslint-plugin:

$ npm install @dn-sfccdx/eslint-plugin --save-dev

Usage

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

{
    "plugins": [
        "dn-sfccdx"
    ]
}

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

{
    "rules": {
        "dn-sfccdx/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here