0.4.1 • Published 2 years ago
@evensix-compiled/eslint-plugin v0.4.1
@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
Name | Description | :white_check_mark: | Fixable |
---|---|---|---|
@evensix-compiled/jsx-pragma | Enforces a jsx pragma when using the css prop | :wrench: | |
@evensix-compiled/no-css-tagged-template-expression | Disallows the css tagged template expression | :white_check_mark: | :wrench: |
@evensix-compiled/no-emotion-css | Disallows @emotion usages | :wrench: | |
@evensix-compiled/no-exported-css | Disallows css usages from being exported | :white_check_mark: | |
@evensix-compiled/no-exported-keyframes | Disallows keyframes usages from being exported | :white_check_mark: | |
@evensix-compiled/no-keyframes-tagged-template-expression | Disallows the keyframes tagged template expression | :white_check_mark: | :wrench: |
@evensix-compiled/no-styled-tagged-template-expression | Disallows the styled tagged template expression | :white_check_mark: | :wrench: |
0.4.1
2 years ago