@compiled/eslint-plugin
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -51,2 +51,6 @@ "use strict"; | ||
type: 'problem', | ||
docs: { | ||
recommended: true, | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/jsx-pragma', | ||
}, | ||
messages: { | ||
@@ -53,0 +57,0 @@ missingPragma: 'To use the `css` prop you must set the {{ pragma }} pragma.', |
@@ -53,2 +53,5 @@ "use strict"; | ||
type: 'problem', | ||
docs: { | ||
url: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-emotion-css', | ||
}, | ||
messages: { | ||
@@ -55,0 +58,0 @@ noEmotionCSS: "{{ version }} should not be used use " + COMPILED_IMPORT + " instead.", |
{ | ||
"name": "@compiled/eslint-plugin", | ||
"version": "0.2.1", | ||
"repository": "https://github.com/atlassian-labs/compiled", | ||
"version": "0.2.2", | ||
"description": "A familiar and performant compile time CSS-in-JS library for React.", | ||
"homepage": "https://compiledcssinjs.com/docs/pkg-eslint-plugin", | ||
"bugs": "https://github.com/atlassian-labs/compiled/issues/new?assignees=&labels=bug&template=bug_report.md", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/atlassian-labs/compiled.git", | ||
"directory": "packages/eslint-plugin" | ||
}, | ||
"license": "Apache-2.0", | ||
"author": "Atlassian Pty Ltd", | ||
@@ -6,0 +14,0 @@ "sideEffects": false, |
# @compiled/eslint-plugin/emotion-to-compiled | ||
Ensures usage of the `@compiled/react` library over `@emotion/core` or `@emotion/styled`. | ||
This rule acts as a form of codemod. | ||
The `--fix` option [on the command line] automatically fixes problems reported by this rule. | ||
## Examples | ||
## Fail | ||
👎 Example of **incorrect** code for this rule: | ||
```js | ||
@@ -27,3 +25,3 @@ import styled from '@emotion/styled'; | ||
👍 Example of **correct** code for this rule: | ||
## Pass | ||
@@ -30,0 +28,0 @@ ```js |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
69506
1380
1
0
27