1.0.0-alpha.2 • Published 4 years ago

eslint-plugin-sfccdx v1.0.0-alpha.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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