JSPM

@salesforce/eslint-plugin-slds-react

0.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 152
    • Score
      100M100P100Q87930F
    • License SEE LICENSE IN README.md

    ESLint plugin that aligns React UI components with the Salesforce Lightning Design System CSS Framework.

    Package Exports

    • @salesforce/eslint-plugin-slds-react

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@salesforce/eslint-plugin-slds-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @salesforce/eslint-plugin-slds-react

    This rule aims to better align React UI component libraries that depend on the Salesforce Lightning Design System CSS Framework.

    Installation

    You'll first need to install ESLint:

    $ npm i eslint --save-dev

    Next, install @salesforce/eslint-plugin-slds-react:

    $ npm install @salesforce/eslint-plugin-slds-react --save-dev

    Note: If you installed ESLint globally (using the -g flag) then you must also install @salesforce/eslint-plugin-slds-react globally.

    Usage

    Add @salesforce/eslint-plugin-slds-react to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

    {
        "plugins": ["@salesforce/eslint-plugin-slds-react"]
    }

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

    {
        "rules": {
            "slds-react/rule-no-double-dash-modifier": 2
        }
    }

    Supported Rules

    • no-double-dash-modifier

    Licenses