@remotion/eslint-plugin 4.0.357 → 4.0.358

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
@@ -366,7 +366,7 @@ var no_string_assets_default = createRule6({
366
366
  if (name.type !== "JSXIdentifier") {
367
367
  return;
368
368
  }
369
- if (name.name === "Img" || name.name === "img" || name.name === "Audio" || name.name === "audio" || name.name === "Video" || name.name === "video" || name.name === "source") {
369
+ if (name.name === "Img" || name.name === "img" || name.name === "Audio" || name.name === "audio" || name.name === "Video" || name.name === "video" || name.name === "source" || name.name === "Html5Video" || name.name === "Html5Audio") {
370
370
  if (stringValue.startsWith("http://")) {
371
371
  return;
372
372
  }
@@ -893,7 +893,7 @@ var volume_callback_default = createRule13({
893
893
  if (name.type !== "JSXIdentifier") {
894
894
  return;
895
895
  }
896
- if (name.name !== "Video" && name.name !== "Audio") {
896
+ if (name.name !== "Video" && name.name !== "Audio" && name.name !== "Html5Video" && name.name !== "Html5Audio") {
897
897
  return;
898
898
  }
899
899
  const expression = value.expression;
@@ -928,8 +928,8 @@ var createRule14 = import_utils14.ESLintUtils.RuleCreator(() => {
928
928
  });
929
929
  var NoNativeImgTag = "Prefer the <Img /> tag from 'remotion' package, because it will wait until the image is loaded when you are rendering your video.";
930
930
  var NoNativeIFrameTag = "Prefer the <IFrame /> tag from 'remotion' package, because it will wait until the iframe is loaded when you are rendering your video.";
931
- var NoNativeAudioTag = "Use the <Audio /> tag from 'remotion' package, because it will synchronize with the Remotion timeline.";
932
- var NoNativeVideoTag = "Use the <OffthreadVideo /> tag from 'remotion' package, because it will synchronize with the Remotion timeline.";
931
+ var NoNativeAudioTag = "Use the <Audio /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.";
932
+ var NoNativeVideoTag = "Use the <Video /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.";
933
933
  var warn_native_media_tag_default = createRule14({
934
934
  name: "warn-native-media-tag",
935
935
  meta: {
@@ -383,7 +383,7 @@ var init_no_string_assets = __esm(() => {
383
383
  if (name.type !== "JSXIdentifier") {
384
384
  return;
385
385
  }
386
- if (name.name === "Img" || name.name === "img" || name.name === "Audio" || name.name === "audio" || name.name === "Video" || name.name === "video" || name.name === "source") {
386
+ if (name.name === "Img" || name.name === "img" || name.name === "Audio" || name.name === "audio" || name.name === "Video" || name.name === "video" || name.name === "source" || name.name === "Html5Video" || name.name === "Html5Audio") {
387
387
  if (stringValue.startsWith("http://")) {
388
388
  return;
389
389
  }
@@ -929,7 +929,7 @@ var init_volume_callback = __esm(() => {
929
929
  if (name.type !== "JSXIdentifier") {
930
930
  return;
931
931
  }
932
- if (name.name !== "Video" && name.name !== "Audio") {
932
+ if (name.name !== "Video" && name.name !== "Audio" && name.name !== "Html5Video" && name.name !== "Html5Audio") {
933
933
  return;
934
934
  }
935
935
  const expression = value.expression;
@@ -960,7 +960,7 @@ var init_volume_callback = __esm(() => {
960
960
 
961
961
  // src/rules/warn-native-media-tag.ts
962
962
  import { ESLintUtils as ESLintUtils14 } from "@typescript-eslint/utils";
963
- var createRule14, NoNativeImgTag = "Prefer the <Img /> tag from 'remotion' package, because it will wait until the image is loaded when you are rendering your video.", NoNativeIFrameTag = "Prefer the <IFrame /> tag from 'remotion' package, because it will wait until the iframe is loaded when you are rendering your video.", NoNativeAudioTag = "Use the <Audio /> tag from 'remotion' package, because it will synchronize with the Remotion timeline.", NoNativeVideoTag = "Use the <OffthreadVideo /> tag from 'remotion' package, because it will synchronize with the Remotion timeline.", warn_native_media_tag_default;
963
+ var createRule14, NoNativeImgTag = "Prefer the <Img /> tag from 'remotion' package, because it will wait until the image is loaded when you are rendering your video.", NoNativeIFrameTag = "Prefer the <IFrame /> tag from 'remotion' package, because it will wait until the iframe is loaded when you are rendering your video.", NoNativeAudioTag = "Use the <Audio /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.", NoNativeVideoTag = "Use the <Video /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.", warn_native_media_tag_default;
964
964
  var init_warn_native_media_tag = __esm(() => {
965
965
  createRule14 = ESLintUtils14.RuleCreator(() => {
966
966
  return `https://github.com/remotion-dev/remotion`;
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
1
  {
2
- "repository": {
3
- "url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-plugin"
4
- },
5
- "name": "@remotion/eslint-plugin",
6
- "version": "4.0.357",
7
- "description": "Rules for writing Remotion code",
8
- "main": "dist/index.js",
9
- "bugs": {
10
- "url": "https://github.com/remotion-dev/remotion/issues"
11
- },
12
- "author": "Jonny Burger <jonny@remotion.dev>",
13
- "license": "ISC",
14
- "dependencies": {
15
- "@typescript-eslint/utils": "5.19.0"
16
- },
17
- "keywords": [
18
- "eslint",
19
- "eslintplugin"
20
- ],
21
- "peerDependencies": {
22
- "eslint": ">=7.0.0"
23
- },
24
- "devDependencies": {
25
- "vitest": "0.31.1",
26
- "eslint": "8.57.0"
27
- },
28
- "exports": {
29
- "./package.json": "./package.json",
30
- ".": {
31
- "types": "./dist/index.d.ts",
32
- "require": "./dist/cjs/index.js",
33
- "module": "./dist/esm/index.mjs",
34
- "import": "./dist/esm/index.mjs"
35
- }
36
- },
37
- "private": false,
38
- "homepage": "https://www.remotion.dev/docs/brownfield#install-the-eslint-plugin",
39
- "scripts": {
40
- "test": "vitest --run",
41
- "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
42
- }
43
- }
2
+ "repository": {
3
+ "url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-plugin"
4
+ },
5
+ "name": "@remotion/eslint-plugin",
6
+ "version": "4.0.358",
7
+ "description": "Rules for writing Remotion code",
8
+ "scripts": {
9
+ "test": "vitest --run",
10
+ "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
11
+ },
12
+ "main": "dist/index.js",
13
+ "bugs": {
14
+ "url": "https://github.com/remotion-dev/remotion/issues"
15
+ },
16
+ "author": "Jonny Burger <jonny@remotion.dev>",
17
+ "license": "ISC",
18
+ "dependencies": {
19
+ "@typescript-eslint/utils": "5.19.0"
20
+ },
21
+ "keywords": [
22
+ "eslint",
23
+ "eslintplugin"
24
+ ],
25
+ "peerDependencies": {
26
+ "eslint": ">=7.0.0"
27
+ },
28
+ "devDependencies": {
29
+ "vitest": "0.31.1",
30
+ "eslint": "8.57.0"
31
+ },
32
+ "exports": {
33
+ "./package.json": "./package.json",
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "require": "./dist/cjs/index.js",
37
+ "module": "./dist/esm/index.mjs",
38
+ "import": "./dist/esm/index.mjs"
39
+ }
40
+ },
41
+ "private": false,
42
+ "homepage": "https://www.remotion.dev/docs/brownfield#install-the-eslint-plugin"
43
+ }
package/LICENSE.md DELETED
@@ -1,49 +0,0 @@
1
- # Remotion License
2
-
3
- In Remotion 5.0, the license will slightly change. [View the changes here](https://github.com/remotion-dev/remotion/pull/3750).
4
-
5
- ---
6
-
7
- Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
8
-
9
- - [Free License](#free-license)
10
- - [Company License](#company-license)
11
-
12
- ## Free License
13
-
14
- Copyright © 2025 [Remotion](https://www.remotion.dev)
15
-
16
- ### Eligibility
17
-
18
- You are eligible to use Remotion for free if you are:
19
-
20
- - an individual
21
- - a for-profit organization with up to 3 employees
22
- - a non-profit or not-for-profit organization
23
- - evaluating whether Remotion is a good fit, and are not yet using it in a commercial way
24
-
25
- ### Allowed use cases
26
-
27
- Permission is hereby granted, free of charge, to any person eligible for the "Free License", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
28
-
29
- ### Disallowed use cases
30
-
31
- It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, or sublicensing your own derivate of Remotion.
32
-
33
- ### Warranty notice
34
-
35
- The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
36
-
37
- ### Support
38
-
39
- Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
40
-
41
- ## Company License
42
-
43
- You are required to obtain a Company License to use Remotion if you are not within the group of entities eligible for a Free License. This license will enable you to use Remotion for the allowed use cases specified in the Free License, and give you access to prioritized support (read the [Support Policy](https://www.remotion.dev/docs/support)).
44
-
45
- Visit [remotion.pro](https://www.remotion.pro/license) for pricing and to buy a license.
46
-
47
- ### FAQs
48
-
49
- Are you not sure whether you need a Company License because of an edge case? Here are some [frequently asked questions](https://www.remotion.pro/faq).