@compiled/eslint-plugin
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -14,2 +14,3 @@ export declare const rules: { | ||
'no-suppress-xcss': import("eslint").Rule.RuleModule; | ||
'no-empry-styled-expression': import("eslint").Rule.RuleModule; | ||
}; | ||
@@ -16,0 +17,0 @@ export declare const configs: { |
@@ -10,2 +10,3 @@ "use strict"; | ||
const no_emotion_css_1 = require("./rules/no-emotion-css"); | ||
const no_empty_styled_expression_1 = require("./rules/no-empty-styled-expression"); | ||
const no_exported_css_1 = require("./rules/no-exported-css"); | ||
@@ -31,2 +32,3 @@ const no_exported_keyframes_1 = require("./rules/no-exported-keyframes"); | ||
'no-suppress-xcss': no_suppress_xcss_1.noSuppressXCSS, | ||
'no-empry-styled-expression': no_empty_styled_expression_1.noEmptyStyledExpressionRule, | ||
}; | ||
@@ -33,0 +35,0 @@ exports.configs = { |
import type { Rule } from 'eslint'; | ||
import type { CallExpression } from 'estree'; | ||
type RuleModule = Rule.RuleModule; | ||
export declare const createNoEmptyStyledExpressionRule: (isEmptyStyledExpression: (node: CallExpression) => boolean, messageId: string) => RuleModule['create']; | ||
export declare const noEmptyStyledExpressionRule: Rule.RuleModule; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.noEmptyStyledExpressionRule = exports.createNoEmptyStyledExpressionRule = void 0; | ||
exports.noEmptyStyledExpressionRule = void 0; | ||
const styled_import_1 = require("../../utils/styled-import"); | ||
@@ -32,3 +32,2 @@ const isEmptyStyledExpression = (node) => { | ||
}; | ||
exports.createNoEmptyStyledExpressionRule = createNoEmptyStyledExpressionRule; | ||
exports.noEmptyStyledExpressionRule = { | ||
@@ -44,4 +43,4 @@ meta: { | ||
}, | ||
create: (0, exports.createNoEmptyStyledExpressionRule)(isEmptyStyledExpression, 'unexpected'), | ||
create: createNoEmptyStyledExpressionRule(isEmptyStyledExpression, 'unexpected'), | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@compiled/eslint-plugin", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "A familiar and performant compile time CSS-in-JS library for React.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://compiledcssinjs.com/docs/pkg-eslint-plugin", |
@@ -7,2 +7,3 @@ import { recommended } from './configs/recommended'; | ||
import { noEmotionCssRule } from './rules/no-emotion-css'; | ||
import { noEmptyStyledExpressionRule } from './rules/no-empty-styled-expression'; | ||
import { noExportedCssRule } from './rules/no-exported-css'; | ||
@@ -29,2 +30,3 @@ import { noExportedKeyframesRule } from './rules/no-exported-keyframes'; | ||
'no-suppress-xcss': noSuppressXCSS, | ||
'no-empry-styled-expression': noEmptyStyledExpressionRule, | ||
}; | ||
@@ -31,0 +33,0 @@ |
@@ -19,3 +19,3 @@ import type { Rule } from 'eslint'; | ||
export const createNoEmptyStyledExpressionRule = | ||
const createNoEmptyStyledExpressionRule = | ||
( | ||
@@ -22,0 +22,0 @@ isEmptyStyledExpression: (node: CallExpression) => boolean, |
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
399122