0.4.1 • Published 2 years ago

@evensix-compiled/eslint-plugin v0.4.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@evensix-compiled/eslint-plugin

This plugin contains rules that should be used when working with @evensix-compiled/react.

Installation

npm install @evensix-compiled/eslint-plugin --save-dev

Usage

Add @evensix-compiled to the plugins section of your .eslintrc configuration file, then configure the rules you want to use under the rules section.

{
  "plugins": ["@evensix-compiled"],
  "rules": {
    "@evensix-compiled/rule-name": "error"
  }
}

You can also enable the recommended rules for compiled by adding plugin:@evensix-compiled/recommended in extends:

{
+  "extends": ["plugin:@evensix-compiled/recommended"],
-  "plugins": ["@evensix-compiled"]
}

Supported rules

:white_check_mark: = recommended, :wrench: = automatically fixable, :bulb: = manually fixable

NameDescription:white_check_mark:Fixable
@evensix-compiled/jsx-pragmaEnforces a jsx pragma when using the css prop:wrench:
@evensix-compiled/no-css-tagged-template-expressionDisallows the css tagged template expression:white_check_mark::wrench:
@evensix-compiled/no-emotion-cssDisallows @emotion usages:wrench:
@evensix-compiled/no-exported-cssDisallows css usages from being exported:white_check_mark:
@evensix-compiled/no-exported-keyframesDisallows keyframes usages from being exported:white_check_mark:
@evensix-compiled/no-keyframes-tagged-template-expressionDisallows the keyframes tagged template expression:white_check_mark::wrench:
@evensix-compiled/no-styled-tagged-template-expressionDisallows the styled tagged template expression:white_check_mark::wrench: