@remotion/eslint-config-flat 4.0.340 → 4.0.342

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/LICENSE.md CHANGED
@@ -6,10 +6,10 @@ In Remotion 5.0, the license will slightly change. [View the changes here](https
6
6
 
7
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
8
 
9
- - [Free license](#free-license)
10
- - [Company license](#company-license)
9
+ - [Free License](#free-license)
10
+ - [Company License](#company-license)
11
11
 
12
- ## Free license
12
+ ## Free License
13
13
 
14
14
  Copyright © 2025 [Remotion](https://www.remotion.dev)
15
15
 
@@ -24,7 +24,7 @@ You are eligible to use Remotion for free if you are:
24
24
 
25
25
  ### Allowed use cases
26
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.
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
28
 
29
29
  ### Disallowed use cases
30
30
 
@@ -38,12 +38,12 @@ The software is provided "as is", without warranty of any kind, express or impli
38
38
 
39
39
  Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
40
40
 
41
- ## Company license
41
+ ## Company License
42
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)).
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
44
 
45
45
  Visit [remotion.pro](https://www.remotion.pro/license) for pricing and to buy a license.
46
46
 
47
47
  ### FAQs
48
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).
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).
@@ -46261,6 +46261,7 @@ var import_utils10 = __toESM(require_dist4(), 1);
46261
46261
  var import_utils11 = __toESM(require_dist4(), 1);
46262
46262
  var import_utils12 = __toESM(require_dist4(), 1);
46263
46263
  var import_utils13 = __toESM(require_dist4(), 1);
46264
+ var import_utils14 = __toESM(require_dist4(), 1);
46264
46265
  var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
46265
46266
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
46266
46267
  var createRule;
@@ -46660,17 +46661,125 @@ var init_no_string_assets = __esm(() => {
46660
46661
  }
46661
46662
  });
46662
46663
  });
46664
+ function findProblematicTailwindClass(classString) {
46665
+ for (const pattern of nonPureAnimationTailwindClasses) {
46666
+ const match = classString.match(pattern);
46667
+ if (match) {
46668
+ return {
46669
+ match: match[0],
46670
+ index: match.index
46671
+ };
46672
+ }
46673
+ }
46674
+ return null;
46675
+ }
46676
+ var createRule7;
46677
+ var NonPureAnimation;
46678
+ var nonPureAnimationProperties;
46679
+ var nonPureAnimationPropertiesKebab;
46680
+ var nonPureAnimationTailwindClasses;
46681
+ var non_pure_animation_default;
46682
+ var init_non_pure_animation = __esm(() => {
46683
+ createRule7 = import_utils7.ESLintUtils.RuleCreator(() => {
46684
+ return "https://www.remotion.dev/docs/flickering";
46685
+ });
46686
+ NonPureAnimation = [
46687
+ "This animation does not run purely off useCurrentFrame() and will lead to flickering.",
46688
+ "See: https://www.remotion.dev/docs/flickering"
46689
+ ].join(`
46690
+ `);
46691
+ nonPureAnimationProperties = new Set(["transition"]);
46692
+ nonPureAnimationPropertiesKebab = new Set(["transition"]);
46693
+ nonPureAnimationTailwindClasses = [
46694
+ /\btransition-\w+\b/,
46695
+ /\btransition\b/
46696
+ ];
46697
+ non_pure_animation_default = createRule7({
46698
+ name: "non-pure-animation",
46699
+ meta: {
46700
+ type: "problem",
46701
+ docs: {
46702
+ description: NonPureAnimation,
46703
+ recommended: "warn"
46704
+ },
46705
+ fixable: undefined,
46706
+ schema: [],
46707
+ messages: {
46708
+ NonPureAnimation
46709
+ }
46710
+ },
46711
+ defaultOptions: [],
46712
+ create: (context) => {
46713
+ return {
46714
+ Property: (node) => {
46715
+ let propertyName;
46716
+ if (node.key.type === "Identifier") {
46717
+ propertyName = node.key.name;
46718
+ } else if (node.key.type === "Literal" && typeof node.key.value === "string") {
46719
+ propertyName = node.key.value;
46720
+ }
46721
+ if (!propertyName) {
46722
+ return;
46723
+ }
46724
+ const isNonPureProperty = nonPureAnimationProperties.has(propertyName) || nonPureAnimationPropertiesKebab.has(propertyName);
46725
+ if (isNonPureProperty) {
46726
+ context.report({
46727
+ messageId: "NonPureAnimation",
46728
+ node
46729
+ });
46730
+ }
46731
+ },
46732
+ JSXAttribute: (node) => {
46733
+ if (node.name.type === "JSXIdentifier" && node.name.name === "className" && node.value) {
46734
+ let classString;
46735
+ let valueNode;
46736
+ if (node.value.type === "Literal" && typeof node.value.value === "string") {
46737
+ classString = node.value.value;
46738
+ valueNode = node.value;
46739
+ } else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "Literal" && typeof node.value.expression.value === "string") {
46740
+ classString = node.value.expression.value;
46741
+ valueNode = node.value.expression;
46742
+ } else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "TemplateLiteral") {
46743
+ const templateLiteral = node.value.expression;
46744
+ classString = templateLiteral.quasis.map((q) => q.value.cooked || q.value.raw).join(" ");
46745
+ valueNode = templateLiteral;
46746
+ }
46747
+ if (classString) {
46748
+ const problematicClass = findProblematicTailwindClass(classString);
46749
+ if (problematicClass) {
46750
+ const sourceCode = context.getSourceCode();
46751
+ const valueStart = valueNode.range[0];
46752
+ const quoteOffset = valueNode.type === "Literal" ? 1 : 0;
46753
+ const classStart = valueStart + quoteOffset + problematicClass.index;
46754
+ const classEnd = classStart + problematicClass.match.length;
46755
+ const start = sourceCode.getLocFromIndex(classStart);
46756
+ const end = sourceCode.getLocFromIndex(classEnd);
46757
+ context.report({
46758
+ messageId: "NonPureAnimation",
46759
+ loc: {
46760
+ start,
46761
+ end
46762
+ }
46763
+ });
46764
+ }
46765
+ }
46766
+ }
46767
+ }
46768
+ };
46769
+ }
46770
+ });
46771
+ });
46663
46772
  function containsSlowTailwindClass(classString) {
46664
46773
  return slowTailwindClasses.some((pattern) => pattern.test(classString));
46665
46774
  }
46666
- var createRule7;
46775
+ var createRule8;
46667
46776
  var SlowCssProperty;
46668
46777
  var slowCssProperties;
46669
46778
  var slowCssPropertiesKebab;
46670
46779
  var slowTailwindClasses;
46671
46780
  var slow_css_property_default;
46672
46781
  var init_slow_css_property = __esm(() => {
46673
- createRule7 = import_utils7.ESLintUtils.RuleCreator(() => {
46782
+ createRule8 = import_utils8.ESLintUtils.RuleCreator(() => {
46674
46783
  return "https://remotion.dev/docs/gpu";
46675
46784
  });
46676
46785
  SlowCssProperty = [
@@ -46694,7 +46803,7 @@ var init_slow_css_property = __esm(() => {
46694
46803
  /\bsepia(?:-\d+)?\b/,
46695
46804
  /\btext-shadow-\w+\b/
46696
46805
  ];
46697
- slow_css_property_default = createRule7({
46806
+ slow_css_property_default = createRule8({
46698
46807
  name: "slow-css-property",
46699
46808
  meta: {
46700
46809
  type: "problem",
@@ -46752,13 +46861,13 @@ var init_slow_css_property = __esm(() => {
46752
46861
  }
46753
46862
  });
46754
46863
  });
46755
- var createRule8;
46864
+ var createRule9;
46756
46865
  var RelativePathStaticFile;
46757
46866
  var AbsoluteStaticFile;
46758
46867
  var PublicStaticFile;
46759
46868
  var staticfile_no_relative_default;
46760
46869
  var init_staticfile_no_relative = __esm(() => {
46761
- createRule8 = import_utils8.ESLintUtils.RuleCreator(() => {
46870
+ createRule9 = import_utils9.ESLintUtils.RuleCreator(() => {
46762
46871
  return `https://remotion.dev/docs/staticfile-relative-paths`;
46763
46872
  });
46764
46873
  RelativePathStaticFile = [
@@ -46774,7 +46883,7 @@ var init_staticfile_no_relative = __esm(() => {
46774
46883
  "Do not prefix your assets with public/.",
46775
46884
  "See: https://remotion.dev/docs/staticfile-relative-paths"
46776
46885
  ].join("");
46777
- staticfile_no_relative_default = createRule8({
46886
+ staticfile_no_relative_default = createRule9({
46778
46887
  name: "staticfile-no-relative",
46779
46888
  meta: {
46780
46889
  type: "problem",
@@ -46840,11 +46949,11 @@ var init_staticfile_no_relative = __esm(() => {
46840
46949
  }
46841
46950
  });
46842
46951
  });
46843
- var createRule9;
46952
+ var createRule10;
46844
46953
  var RelativePathStaticFile2;
46845
46954
  var staticfile_no_remote_default;
46846
46955
  var init_staticfile_no_remote = __esm(() => {
46847
- createRule9 = import_utils9.ESLintUtils.RuleCreator(() => {
46956
+ createRule10 = import_utils10.ESLintUtils.RuleCreator(() => {
46848
46957
  return `https://remotion.dev/docs/staticfile-remote-urls`;
46849
46958
  });
46850
46959
  RelativePathStaticFile2 = [
@@ -46852,7 +46961,7 @@ var init_staticfile_no_remote = __esm(() => {
46852
46961
  "See: https://remotion.dev/docs/staticfile-remote-urls"
46853
46962
  ].join(`
46854
46963
  `);
46855
- staticfile_no_remote_default = createRule9({
46964
+ staticfile_no_remote_default = createRule10({
46856
46965
  name: "staticfile-no-remote",
46857
46966
  meta: {
46858
46967
  type: "problem",
@@ -46904,11 +47013,11 @@ var init_staticfile_no_remote = __esm(() => {
46904
47013
  }
46905
47014
  });
46906
47015
  });
46907
- var createRule10;
47016
+ var createRule11;
46908
47017
  var UseGifComponent;
46909
47018
  var use_gif_component_default;
46910
47019
  var init_use_gif_component = __esm(() => {
46911
- createRule10 = import_utils10.ESLintUtils.RuleCreator(() => {
47020
+ createRule11 = import_utils11.ESLintUtils.RuleCreator(() => {
46912
47021
  return `https://github.com/remotion-dev/remotion`;
46913
47022
  });
46914
47023
  UseGifComponent = [
@@ -46917,7 +47026,7 @@ var init_use_gif_component = __esm(() => {
46917
47026
  "Ignore this message if this is a non-animated GIF."
46918
47027
  ].join(`
46919
47028
  `);
46920
- use_gif_component_default = createRule10({
47029
+ use_gif_component_default = createRule11({
46921
47030
  name: "use-gif-component",
46922
47031
  meta: {
46923
47032
  type: "problem",
@@ -46992,15 +47101,15 @@ var init_use_gif_component = __esm(() => {
46992
47101
  }
46993
47102
  });
46994
47103
  });
46995
- var createRule11;
47104
+ var createRule12;
46996
47105
  var ImportConfig = "Update the import to the new V4 location: import {Config} from '@remotion/cli/config'";
46997
47106
  var rule;
46998
47107
  var v4_import_default;
46999
47108
  var init_v4_import = __esm(() => {
47000
- createRule11 = import_utils11.ESLintUtils.RuleCreator(() => {
47109
+ createRule12 = import_utils12.ESLintUtils.RuleCreator(() => {
47001
47110
  return `https://www.remotion.dev/docs/4-0-migration`;
47002
47111
  });
47003
- rule = createRule11({
47112
+ rule = createRule12({
47004
47113
  name: "v4-config-import",
47005
47114
  meta: {
47006
47115
  type: "problem",
@@ -47034,14 +47143,14 @@ var init_v4_import = __esm(() => {
47034
47143
  });
47035
47144
  v4_import_default = rule;
47036
47145
  });
47037
- var createRule12;
47146
+ var createRule13;
47038
47147
  var VolumeCallback = "Prefer a callback function for setting the volume: `volume={(f) => interpolate(...)}`. See https://www.remotion.dev/docs/audio/volume";
47039
47148
  var volume_callback_default;
47040
47149
  var init_volume_callback = __esm(() => {
47041
- createRule12 = import_utils12.ESLintUtils.RuleCreator(() => {
47150
+ createRule13 = import_utils13.ESLintUtils.RuleCreator(() => {
47042
47151
  return `https://github.com/remotion-dev/remotion`;
47043
47152
  });
47044
- volume_callback_default = createRule12({
47153
+ volume_callback_default = createRule13({
47045
47154
  name: "volume-callback",
47046
47155
  meta: {
47047
47156
  type: "problem",
@@ -47108,17 +47217,17 @@ var init_volume_callback = __esm(() => {
47108
47217
  }
47109
47218
  });
47110
47219
  });
47111
- var createRule13;
47220
+ var createRule14;
47112
47221
  var NoNativeImgTag = "Prefer the <Img /> tag from 'remotion' package, because it will wait until the image is loaded when you are rendering your video.";
47113
47222
  var NoNativeIFrameTag = "Prefer the <IFrame /> tag from 'remotion' package, because it will wait until the iframe is loaded when you are rendering your video.";
47114
47223
  var NoNativeAudioTag = "Use the <Audio /> tag from 'remotion' package, because it will synchronize with the Remotion timeline.";
47115
47224
  var NoNativeVideoTag = "Use the <OffthreadVideo /> tag from 'remotion' package, because it will synchronize with the Remotion timeline.";
47116
47225
  var warn_native_media_tag_default;
47117
47226
  var init_warn_native_media_tag = __esm(() => {
47118
- createRule13 = import_utils13.ESLintUtils.RuleCreator(() => {
47227
+ createRule14 = import_utils14.ESLintUtils.RuleCreator(() => {
47119
47228
  return `https://github.com/remotion-dev/remotion`;
47120
47229
  });
47121
- warn_native_media_tag_default = createRule13({
47230
+ warn_native_media_tag_default = createRule14({
47122
47231
  name: "warn-native-media-tag",
47123
47232
  meta: {
47124
47233
  type: "problem",
@@ -47213,6 +47322,7 @@ var require_src2 = __commonJS2((exports, module) => {
47213
47322
  init_no_duration_frames_infinity();
47214
47323
  init_no_from_0();
47215
47324
  init_no_string_assets();
47325
+ init_non_pure_animation();
47216
47326
  init_slow_css_property();
47217
47327
  init_staticfile_no_relative();
47218
47328
  init_staticfile_no_remote();
@@ -47232,6 +47342,7 @@ var require_src2 = __commonJS2((exports, module) => {
47232
47342
  "staticfile-no-relative": staticfile_no_relative_default,
47233
47343
  "staticfile-no-remote": staticfile_no_remote_default,
47234
47344
  "no-background-image": no_background_image_default,
47345
+ "non-pure-animation": non_pure_animation_default,
47235
47346
  "slow-css-property": slow_css_property_default,
47236
47347
  "v4-config-import": v4_import_default
47237
47348
  };
@@ -47247,6 +47358,7 @@ var require_src2 = __commonJS2((exports, module) => {
47247
47358
  "@remotion/staticfile-no-relative": "error",
47248
47359
  "@remotion/staticfile-no-remote": "error",
47249
47360
  "@remotion/no-background-image": "error",
47361
+ "@remotion/non-pure-animation": "warn",
47250
47362
  "@remotion/slow-css-property": "warn",
47251
47363
  "@remotion/v4-config-import": "error"
47252
47364
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-config-flat"
4
4
  },
5
5
  "name": "@remotion/eslint-config-flat",
6
- "version": "4.0.340",
6
+ "version": "4.0.342",
7
7
  "description": "Default configuration for Remotion templates (ESLint >= 9)",
8
8
  "main": "dist/esm/index.mjs",
9
9
  "type": "module",
@@ -26,8 +26,8 @@
26
26
  "eslint-plugin-react": "7.37.4",
27
27
  "eslint-plugin-react-hooks": "5.2.0",
28
28
  "eslint": "9.19.0",
29
- "@remotion/eslint-plugin": "4.0.340",
30
- "@remotion/eslint-config-internal": "4.0.340"
29
+ "@remotion/eslint-plugin": "4.0.342",
30
+ "@remotion/eslint-config-internal": "4.0.342"
31
31
  },
32
32
  "keywords": [
33
33
  "remotion",