@salesforce/eslint-plugin-slds-react

0.0.1 • Public • Published

@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

Package Sidebar

Install

npm i @salesforce/eslint-plugin-slds-react

Weekly Downloads

6

Version

0.0.1

License

SEE LICENSE IN README.md

Unpacked Size

9.65 kB

Total Files

6

Last publish

Collaborators

  • dme722
  • nolanlawson
  • ire-npm-team-user
  • jburnie
  • abirchfieldsfdc
  • dlouvton
  • mobify
  • jmsjtu
  • jasonschroeder-sfdc
  • packagellama
  • maward
  • danielshox
  • duane.chew
  • dferro
  • jcourtner
  • jye-sf
  • adirasanam
  • hkii
  • iamaziz
  • dbreese-salesforce
  • ashokrudraraju
  • dhersam
  • demianbrecht
  • mbettio
  • damilareolowoniyi
  • mmadialagan
  • mjrust
  • salesforce-releases
  • mpsenn
  • kevinv11n
  • byao
  • pmdartus
  • ekashida
  • gr8gatsby
  • ravi.jayaramappa
  • apapko
  • jleen-sfdc
  • jqian
  • cwallsf
  • dhagberg-sf
  • khawkins
  • amphro
  • jodarove
  • sfdctaka
  • fernomac
  • jimjag
  • ivarley
  • jbartolotta-sfdc