@remotion/eslint-plugin 4.0.529 → 4.0.530
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 +2 -52
- package/dist/esm/index.mjs +2 -52
- package/dist/index.d.ts +0 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1028,7 +1028,7 @@ var import_utils15 = require("@typescript-eslint/utils");
|
|
|
1028
1028
|
var createRule15 = import_utils15.ESLintUtils.RuleCreator(() => {
|
|
1029
1029
|
return `https://github.com/remotion-dev/remotion`;
|
|
1030
1030
|
});
|
|
1031
|
-
var VolumeCallback = "
|
|
1031
|
+
var VolumeCallback = "Deprecated no-op kept for compatibility. Volume can be animated with regular keyframes.";
|
|
1032
1032
|
var volume_callback_default = createRule15({
|
|
1033
1033
|
name: "volume-callback",
|
|
1034
1034
|
meta: {
|
|
@@ -1044,56 +1044,7 @@ var volume_callback_default = createRule15({
|
|
|
1044
1044
|
}
|
|
1045
1045
|
},
|
|
1046
1046
|
defaultOptions: [],
|
|
1047
|
-
create: (
|
|
1048
|
-
return {
|
|
1049
|
-
JSXAttribute: (node) => {
|
|
1050
|
-
if (node.type !== "JSXAttribute") {
|
|
1051
|
-
return;
|
|
1052
|
-
}
|
|
1053
|
-
if (node.name.name !== "volume") {
|
|
1054
|
-
return;
|
|
1055
|
-
}
|
|
1056
|
-
const value = node.value;
|
|
1057
|
-
if (!value || value.type !== "JSXExpressionContainer") {
|
|
1058
|
-
return;
|
|
1059
|
-
}
|
|
1060
|
-
const parent = node.parent;
|
|
1061
|
-
if (!parent) {
|
|
1062
|
-
return;
|
|
1063
|
-
}
|
|
1064
|
-
if (parent.type !== "JSXOpeningElement") {
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1067
|
-
const name = parent.name;
|
|
1068
|
-
if (name.type !== "JSXIdentifier") {
|
|
1069
|
-
return;
|
|
1070
|
-
}
|
|
1071
|
-
if (name.name !== "Video" && name.name !== "Audio" && name.name !== "Html5Video" && name.name !== "Html5Audio") {
|
|
1072
|
-
return;
|
|
1073
|
-
}
|
|
1074
|
-
const expression = value.expression;
|
|
1075
|
-
if (!expression) {
|
|
1076
|
-
return;
|
|
1077
|
-
}
|
|
1078
|
-
if (expression.type === "Literal") {
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
if (expression.type === "ArrowFunctionExpression") {
|
|
1082
|
-
return;
|
|
1083
|
-
}
|
|
1084
|
-
if (expression.type === "FunctionExpression") {
|
|
1085
|
-
return;
|
|
1086
|
-
}
|
|
1087
|
-
if (expression.type === "Identifier") {
|
|
1088
|
-
return;
|
|
1089
|
-
}
|
|
1090
|
-
context.report({
|
|
1091
|
-
messageId: "VolumeCallback",
|
|
1092
|
-
node
|
|
1093
|
-
});
|
|
1094
|
-
}
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1047
|
+
create: () => ({})
|
|
1097
1048
|
});
|
|
1098
1049
|
|
|
1099
1050
|
// src/rules/warn-native-media-tag.ts
|
|
@@ -1219,7 +1170,6 @@ var recommendedRuleConfig = {
|
|
|
1219
1170
|
"@remotion/even-dimensions": "error",
|
|
1220
1171
|
"@remotion/duration-in-frames": "error",
|
|
1221
1172
|
"@remotion/from-0": "error",
|
|
1222
|
-
"@remotion/volume-callback": "error",
|
|
1223
1173
|
"@remotion/use-gif-component": "error",
|
|
1224
1174
|
"@remotion/staticfile-no-relative": "error",
|
|
1225
1175
|
"@remotion/staticfile-no-remote": "error",
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1062,7 +1062,7 @@ var init_valid_composition_and_folder_name = __esm(() => {
|
|
|
1062
1062
|
|
|
1063
1063
|
// src/rules/volume-callback.ts
|
|
1064
1064
|
import { ESLintUtils as ESLintUtils15 } from "@typescript-eslint/utils";
|
|
1065
|
-
var createRule15, VolumeCallback = "
|
|
1065
|
+
var createRule15, VolumeCallback = "Deprecated no-op kept for compatibility. Volume can be animated with regular keyframes.", volume_callback_default;
|
|
1066
1066
|
var init_volume_callback = __esm(() => {
|
|
1067
1067
|
createRule15 = ESLintUtils15.RuleCreator(() => {
|
|
1068
1068
|
return `https://github.com/remotion-dev/remotion`;
|
|
@@ -1082,56 +1082,7 @@ var init_volume_callback = __esm(() => {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
},
|
|
1084
1084
|
defaultOptions: [],
|
|
1085
|
-
create: (
|
|
1086
|
-
return {
|
|
1087
|
-
JSXAttribute: (node) => {
|
|
1088
|
-
if (node.type !== "JSXAttribute") {
|
|
1089
|
-
return;
|
|
1090
|
-
}
|
|
1091
|
-
if (node.name.name !== "volume") {
|
|
1092
|
-
return;
|
|
1093
|
-
}
|
|
1094
|
-
const value = node.value;
|
|
1095
|
-
if (!value || value.type !== "JSXExpressionContainer") {
|
|
1096
|
-
return;
|
|
1097
|
-
}
|
|
1098
|
-
const parent = node.parent;
|
|
1099
|
-
if (!parent) {
|
|
1100
|
-
return;
|
|
1101
|
-
}
|
|
1102
|
-
if (parent.type !== "JSXOpeningElement") {
|
|
1103
|
-
return;
|
|
1104
|
-
}
|
|
1105
|
-
const name = parent.name;
|
|
1106
|
-
if (name.type !== "JSXIdentifier") {
|
|
1107
|
-
return;
|
|
1108
|
-
}
|
|
1109
|
-
if (name.name !== "Video" && name.name !== "Audio" && name.name !== "Html5Video" && name.name !== "Html5Audio") {
|
|
1110
|
-
return;
|
|
1111
|
-
}
|
|
1112
|
-
const expression = value.expression;
|
|
1113
|
-
if (!expression) {
|
|
1114
|
-
return;
|
|
1115
|
-
}
|
|
1116
|
-
if (expression.type === "Literal") {
|
|
1117
|
-
return;
|
|
1118
|
-
}
|
|
1119
|
-
if (expression.type === "ArrowFunctionExpression") {
|
|
1120
|
-
return;
|
|
1121
|
-
}
|
|
1122
|
-
if (expression.type === "FunctionExpression") {
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
if (expression.type === "Identifier") {
|
|
1126
|
-
return;
|
|
1127
|
-
}
|
|
1128
|
-
context.report({
|
|
1129
|
-
messageId: "VolumeCallback",
|
|
1130
|
-
node
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
};
|
|
1134
|
-
}
|
|
1085
|
+
create: () => ({})
|
|
1135
1086
|
});
|
|
1136
1087
|
});
|
|
1137
1088
|
|
|
@@ -1274,7 +1225,6 @@ var require_src = __commonJS((exports, module) => {
|
|
|
1274
1225
|
"@remotion/even-dimensions": "error",
|
|
1275
1226
|
"@remotion/duration-in-frames": "error",
|
|
1276
1227
|
"@remotion/from-0": "error",
|
|
1277
|
-
"@remotion/volume-callback": "error",
|
|
1278
1228
|
"@remotion/use-gif-component": "error",
|
|
1279
1229
|
"@remotion/staticfile-no-relative": "error",
|
|
1280
1230
|
"@remotion/staticfile-no-remote": "error",
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ declare const _default: {
|
|
|
8
8
|
readonly '@remotion/even-dimensions': "error";
|
|
9
9
|
readonly '@remotion/duration-in-frames': "error";
|
|
10
10
|
readonly '@remotion/from-0': "error";
|
|
11
|
-
readonly '@remotion/volume-callback': "error";
|
|
12
11
|
readonly '@remotion/use-gif-component': "error";
|
|
13
12
|
readonly '@remotion/staticfile-no-relative': "error";
|
|
14
13
|
readonly '@remotion/staticfile-no-remote': "error";
|
|
@@ -47,7 +46,6 @@ declare const _default: {
|
|
|
47
46
|
readonly '@remotion/even-dimensions': "error";
|
|
48
47
|
readonly '@remotion/duration-in-frames': "error";
|
|
49
48
|
readonly '@remotion/from-0': "error";
|
|
50
|
-
readonly '@remotion/volume-callback': "error";
|
|
51
49
|
readonly '@remotion/use-gif-component': "error";
|
|
52
50
|
readonly '@remotion/staticfile-no-relative': "error";
|
|
53
51
|
readonly '@remotion/staticfile-no-remote': "error";
|
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.
|
|
6
|
+
"version": "4.0.530",
|
|
7
7
|
"description": "Rules for writing Remotion code",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test": "node src/tests/execute.mjs",
|