@compiled/eslint-plugin
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -35,3 +35,3 @@ "use strict"; | ||
const createCssMapRule = (context) => { | ||
const { text } = context.sourceCode; | ||
const { text } = context.getSourceCode(); | ||
if (!text.includes(constants_1.COMPILED_IMPORT)) { | ||
@@ -38,0 +38,0 @@ return {}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const getStack = (context, node) => { | ||
const { scopeManager } = context.sourceCode; | ||
const { scopeManager } = context.getSourceCode(); | ||
const stack = { | ||
@@ -9,0 +9,0 @@ nodes: [], |
{ | ||
"name": "@compiled/eslint-plugin", | ||
"version": "0.9.0", | ||
"version": "0.9.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", |
@@ -42,3 +42,3 @@ import type { Rule } from 'eslint'; | ||
const createCssMapRule = (context: Rule.RuleContext): Rule.RuleListener => { | ||
const { text } = context.sourceCode; | ||
const { text } = context.getSourceCode(); | ||
if (!text.includes(COMPILED_IMPORT)) { | ||
@@ -45,0 +45,0 @@ return {}; |
@@ -16,3 +16,3 @@ import type { Rule, Scope as ScopeNamespace } from 'eslint'; | ||
const getStack = (context: RuleContext, node: Node) => { | ||
const { scopeManager } = context.sourceCode; | ||
const { scopeManager } = context.getSourceCode(); | ||
const stack: Omit<Stack, 'scope'> = { | ||
@@ -19,0 +19,0 @@ nodes: [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
330823