@compiled/eslint-plugin
Advanced tools
Comparing version 0.4.7 to 0.4.8
import type { Rule, Scope } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
declare type Reference = Scope.Reference; | ||
type Node = Rule.Node; | ||
type Reference = Scope.Reference; | ||
export declare const isStyled: (node: Node, references: Reference[]) => boolean; | ||
export {}; |
@@ -20,3 +20,3 @@ "use strict"; | ||
const baseTesterConfig = { | ||
parser: require.resolve('babel-eslint'), | ||
parser: require.resolve('@babel/eslint-parser'), | ||
parserOptions: { | ||
@@ -23,0 +23,0 @@ ecmaVersion: 6, |
import type { Rule, Scope } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
declare type Reference = Scope.Reference; | ||
declare type RuleModule = Rule.RuleModule; | ||
type Node = Rule.Node; | ||
type Reference = Scope.Reference; | ||
type RuleModule = Rule.RuleModule; | ||
export declare const createNoExportedRule: (isUsage: (node: Node, references: Reference[]) => boolean, messageId: string) => RuleModule['create']; | ||
export {}; |
import type { Rule } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
declare type RuleContext = Rule.RuleContext; | ||
type Node = Rule.Node; | ||
type RuleContext = Rule.RuleContext; | ||
export declare const isStyledComponent: (nodes: Node[], context: RuleContext) => boolean; | ||
export {}; |
import type { Rule, Scope as ScopeNamespace } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
declare type RuleContext = Rule.RuleContext; | ||
declare type Scope = ScopeNamespace.Scope; | ||
export declare type InvalidDefinition = { | ||
type Node = Rule.Node; | ||
type RuleContext = Rule.RuleContext; | ||
type Scope = ScopeNamespace.Scope; | ||
export type InvalidDefinition = { | ||
type: 'invalid'; | ||
node: Node; | ||
}; | ||
export declare type ValidDefinition = { | ||
export type ValidDefinition = { | ||
type: 'valid'; | ||
}; | ||
export declare type Validity = InvalidDefinition | ValidDefinition; | ||
export type Validity = InvalidDefinition | ValidDefinition; | ||
export declare const validateDefinition: (context: RuleContext, node: Node, scope?: Scope) => Validity; | ||
export {}; |
import type { Rule } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
type Node = Rule.Node; | ||
export declare const getTaggedTemplateExpressionOffset: (node: Node) => number; | ||
export {}; |
import type { Rule, Scope } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
declare type Reference = Scope.Reference; | ||
declare type RuleModule = Rule.RuleModule; | ||
type Node = Rule.Node; | ||
type Reference = Scope.Reference; | ||
type RuleModule = Rule.RuleModule; | ||
export declare const createNoTaggedTemplateExpressionRule: (isUsage: (node: Node, references: Reference[]) => boolean, messageId: string) => RuleModule['create']; | ||
export {}; |
@@ -1,11 +0,11 @@ | ||
export declare type Literal = { | ||
export type Literal = { | ||
type: 'literal'; | ||
value: string | number; | ||
}; | ||
export declare type Expression = { | ||
export type Expression = { | ||
type: 'expression'; | ||
expression: string; | ||
}; | ||
export declare type DeclarationValue = Literal | Expression; | ||
export declare type Declaration = { | ||
export type DeclarationValue = Literal | Expression; | ||
export type Declaration = { | ||
type: 'declaration'; | ||
@@ -15,3 +15,3 @@ property: string; | ||
}; | ||
export declare type Rule = { | ||
export type Rule = { | ||
type: 'rule'; | ||
@@ -21,7 +21,7 @@ selector: string; | ||
}; | ||
export declare type Block = Declaration | Rule; | ||
export declare type DeclarationBlock = { | ||
export type Block = Declaration | Rule; | ||
export type DeclarationBlock = { | ||
type: 'block'; | ||
blocks: Block[]; | ||
}; | ||
export declare type Argument = Expression | DeclarationBlock; | ||
export type Argument = Expression | DeclarationBlock; |
import type { Rule, Scope } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
declare type Reference = Scope.Reference; | ||
type Node = Rule.Node; | ||
type Reference = Scope.Reference; | ||
export declare const isCss: (node: Node, references: Reference[]) => boolean; | ||
export {}; |
import type { Rule, Scope } from 'eslint'; | ||
declare type Node = Rule.Node; | ||
declare type Reference = Scope.Reference; | ||
type Node = Rule.Node; | ||
type Reference = Scope.Reference; | ||
export declare const isKeyframes: (node: Node, references: Reference[]) => boolean; | ||
export {}; |
{ | ||
"name": "@compiled/eslint-plugin", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "A familiar and performant compile time CSS-in-JS library for React.", | ||
@@ -23,7 +23,7 @@ "homepage": "https://compiledcssinjs.com/docs/pkg-eslint-plugin", | ||
"devDependencies": { | ||
"@typescript-eslint/parser": "^5.43.0", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^7.32.0", | ||
"prettier": "^2.8.1", | ||
"typescript": "^4.7.4" | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@types/estree": "^1.0.0", | ||
"@typescript-eslint/parser": "^5.48.2", | ||
"eslint": "^8.32.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -30,0 +30,0 @@ "publishConfig": { |
@@ -21,3 +21,3 @@ import { basename } from 'path'; | ||
const baseTesterConfig = { | ||
parser: require.resolve('babel-eslint'), | ||
parser: require.resolve('@babel/eslint-parser'), | ||
parserOptions: { | ||
@@ -24,0 +24,0 @@ ecmaVersion: 6, |
Sorry, the diff of this file is not supported yet
240063