@remotion/eslint-plugin
Advanced tools
Comparing version 1.0.0-y.105 to 1.0.0-y.106
@@ -43,3 +43,3 @@ "use strict"; | ||
if (!firstArgument) { | ||
const sourceCode = context.getSourceCode().lines.join("\n"); | ||
const sourceCode = context.getSourceCode().getText(node); | ||
if (sourceCode.includes(".mp4")) { | ||
@@ -46,0 +46,0 @@ context.report({ |
@@ -12,3 +12,7 @@ "use strict"; | ||
ruleTester.run("no-mp4-import", no_mp4_import_1.default, { | ||
valid: ['const hi = require("hi")', 'import hi from "hi.mp3"'], | ||
valid: [ | ||
'const hi = require("hi")', | ||
'import hi from "hi.mp3"', | ||
'const falsePosition = ".mp4"; require("hi"+1+".png") ', | ||
], | ||
invalid: [ | ||
@@ -15,0 +19,0 @@ { |
{ | ||
"name": "@remotion/eslint-plugin", | ||
"version": "1.0.0-y.105", | ||
"version": "1.0.0-y.106", | ||
"description": "A set of rules helping you avoid common pitfalls in Remotion.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
8298
132