0.1.3 • Published 1 year ago

@fredericoo/eslint-plugin-vanilla-extract v0.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

eslint-plugin-vanilla-extract

Eslint plugin for vanilla extract lib

Installation

You'll first need to install ESLint:

pnpm add eslint -D

Next, install @fredericoo/eslint-plugin-vanilla-extract:

pnpm add -D @fredericoo/eslint-plugin-vanilla-extract

Usage

Add @fredericoo/vanilla-extract to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@fredericoo/vanilla-extract"
    ]
}

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

e.g.:

{
    "rules": {
        "@fredericoo/vanilla-extract/no-individual-styles-imported": 2
    }
}

Supported Rules

Rule IDDescriptionFixable
@fredericoo/vanilla-extract/omit-redundant-styleIf you’s using style() to generate a className and only consuming atoms or other classNames, it is redundant and can be removed
@fredericoo/vanilla-extract/no-individual-styles-importedIf you’re importing individual styles from a file, you should import the entire file with * as style and consume from it
0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago