Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 932 Bytes

README.md

File metadata and controls

48 lines (35 loc) · 932 Bytes

eslint-plugin-sx

Eslint rules for @adeira/sx

Installation

You'll first need to install ESLint:

yarn add --dev eslint

Next, install eslint-plugin-sx:

yarn add --dev eslint-plugin-sx

Usage

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

{
  "plugins": ["sx"]
}

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

{
  "rules": {
    "sx/no-concatenated-classes": 2,
    "sx/no-unused-stylesheet": 2,
    "sx/use-logical-properties": 2,
    "sx/valid-usage": 2
  }
}

Supported Rules