@remotion/eslint-plugin 4.0.535 → 4.0.536

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -554,7 +554,7 @@ var non_pure_animation_default = createRule8({
554
554
  if (classString) {
555
555
  const problematicClass = findProblematicTailwindClass(classString);
556
556
  if (problematicClass) {
557
- const sourceCode = context.getSourceCode();
557
+ const sourceCode = "sourceCode" in context ? context.sourceCode : context.getSourceCode();
558
558
  const valueStart = valueNode.range[0];
559
559
  const quoteOffset = valueNode.type === "Literal" ? 1 : 0;
560
560
  const classStart = valueStart + quoteOffset + problematicClass.index;
@@ -587,7 +587,7 @@ var init_non_pure_animation = __esm(() => {
587
587
  if (classString) {
588
588
  const problematicClass = findProblematicTailwindClass(classString);
589
589
  if (problematicClass) {
590
- const sourceCode = context.getSourceCode();
590
+ const sourceCode = "sourceCode" in context ? context.sourceCode : context.getSourceCode();
591
591
  const valueStart = valueNode.range[0];
592
592
  const quoteOffset = valueNode.type === "Literal" ? 1 : 0;
593
593
  const classStart = valueStart + quoteOffset + problematicClass.index;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-plugin"
4
4
  },
5
5
  "name": "@remotion/eslint-plugin",
6
- "version": "4.0.535",
6
+ "version": "4.0.536",
7
7
  "description": "Rules for writing Remotion code",
8
8
  "scripts": {
9
9
  "test": "node src/tests/execute.mjs",
@@ -28,6 +28,9 @@
28
28
  "devDependencies": {
29
29
  "vitest": "5.0.3",
30
30
  "eslint": "8.57.0",
31
+ "eslint-v9": "npm:eslint@9.39.5",
32
+ "eslint-v10": "npm:eslint@10.12.0",
33
+ "typescript-eslint": "8.71.2",
31
34
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
32
35
  },
33
36
  "exports": {