Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@compiled/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compiled/eslint-plugin - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

dist/rules/jsx-pragma/index.js

@@ -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,

8

src/rules/no-emotion-css/README.md
# @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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc