@remotion/eslint-plugin 4.0.0-fastlambda.7 → 4.0.0-forcepublish.6
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/index.d.ts +6 -0
- package/dist/index.js +11 -2
- package/dist/rules/deterministic-randomness.js +1 -1
- package/dist/rules/even-dimensions.js +1 -1
- package/dist/rules/no-duration-frames-infinity.js +1 -1
- package/dist/rules/no-mp4-import.js +1 -1
- package/dist/rules/no-string-assets.js +1 -1
- package/dist/rules/staticfile-no-relative.d.ts +2 -0
- package/dist/rules/staticfile-no-relative.js +64 -0
- package/dist/rules/staticfile-no-remote.d.ts +2 -0
- package/dist/rules/staticfile-no-remote.js +64 -0
- package/dist/rules/staticfile-rules.d.ts +2 -0
- package/dist/rules/staticfile-rules.js +94 -0
- package/dist/rules/use-gif-component.d.ts +2 -0
- package/dist/rules/use-gif-component.js +96 -0
- package/dist/rules/volume-callback.js +1 -1
- package/dist/rules/warn-native-media-tag.js +1 -1
- package/package.json +3 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/rules/deterministic-randomness.d.ts.map +0 -1
- package/dist/rules/deterministic-randomness.js.map +0 -1
- package/dist/rules/even-dimensions.d.ts.map +0 -1
- package/dist/rules/even-dimensions.js.map +0 -1
- package/dist/rules/no-duration-frames-infinity.d.ts.map +0 -1
- package/dist/rules/no-duration-frames-infinity.js.map +0 -1
- package/dist/rules/no-mp4-import.d.ts.map +0 -1
- package/dist/rules/no-mp4-import.js.map +0 -1
- package/dist/rules/no-string-assets.d.ts.map +0 -1
- package/dist/rules/no-string-assets.js.map +0 -1
- package/dist/rules/volume-callback.d.ts.map +0 -1
- package/dist/rules/volume-callback.js.map +0 -1
- package/dist/rules/warn-native-media-tag.d.ts.map +0 -1
- package/dist/rules/warn-native-media-tag.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ declare const _default: {
|
|
|
7
7
|
"even-dimensions": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"EvenDimensions", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
8
8
|
"duration-in-frames": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"DurationInFrames", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
9
9
|
"volume-callback": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"VolumeCallback", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
10
|
+
"use-gif-component": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"UseGifComponent", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
11
|
+
"staticfile-no-relative": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"RelativePathStaticFile", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
12
|
+
"staticfile-no-remote": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"RelativePathStaticFile", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
10
13
|
};
|
|
11
14
|
configs: {
|
|
12
15
|
recommended: {
|
|
@@ -18,6 +21,9 @@ declare const _default: {
|
|
|
18
21
|
"@remotion/even-dimensions": string;
|
|
19
22
|
"@remotion/duration-in-frames": string;
|
|
20
23
|
"@remotion/volume-callback": string;
|
|
24
|
+
"@remotion/use-gif-component": string;
|
|
25
|
+
"@remotion/staticfile-no-relative": string;
|
|
26
|
+
"@remotion/staticfile-no-remote": string;
|
|
21
27
|
};
|
|
22
28
|
};
|
|
23
29
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
const deterministic_randomness_1 = __importDefault(require("./rules/deterministic-randomness"));
|
|
6
6
|
const even_dimensions_1 = __importDefault(require("./rules/even-dimensions"));
|
|
7
|
+
const no_duration_frames_infinity_1 = __importDefault(require("./rules/no-duration-frames-infinity"));
|
|
7
8
|
const no_mp4_import_1 = __importDefault(require("./rules/no-mp4-import"));
|
|
8
9
|
const no_string_assets_1 = __importDefault(require("./rules/no-string-assets"));
|
|
9
|
-
const
|
|
10
|
-
const
|
|
10
|
+
const staticfile_no_relative_1 = __importDefault(require("./rules/staticfile-no-relative"));
|
|
11
|
+
const staticfile_no_remote_1 = __importDefault(require("./rules/staticfile-no-remote"));
|
|
12
|
+
const use_gif_component_1 = __importDefault(require("./rules/use-gif-component"));
|
|
11
13
|
const volume_callback_1 = __importDefault(require("./rules/volume-callback"));
|
|
14
|
+
const warn_native_media_tag_1 = __importDefault(require("./rules/warn-native-media-tag"));
|
|
12
15
|
const rules = {
|
|
13
16
|
"no-mp4-import": no_mp4_import_1.default,
|
|
14
17
|
"warn-native-media-tag": warn_native_media_tag_1.default,
|
|
@@ -17,6 +20,9 @@ const rules = {
|
|
|
17
20
|
"even-dimensions": even_dimensions_1.default,
|
|
18
21
|
"duration-in-frames": no_duration_frames_infinity_1.default,
|
|
19
22
|
"volume-callback": volume_callback_1.default,
|
|
23
|
+
"use-gif-component": use_gif_component_1.default,
|
|
24
|
+
"staticfile-no-relative": staticfile_no_relative_1.default,
|
|
25
|
+
"staticfile-no-remote": staticfile_no_remote_1.default,
|
|
20
26
|
};
|
|
21
27
|
module.exports = {
|
|
22
28
|
rules,
|
|
@@ -30,6 +36,9 @@ module.exports = {
|
|
|
30
36
|
"@remotion/even-dimensions": "error",
|
|
31
37
|
"@remotion/duration-in-frames": "error",
|
|
32
38
|
"@remotion/volume-callback": "error",
|
|
39
|
+
"@remotion/use-gif-component": "error",
|
|
40
|
+
"@remotion/staticfile-no-relative": "error",
|
|
41
|
+
"@remotion/staticfile-no-remote": "error",
|
|
33
42
|
},
|
|
34
43
|
},
|
|
35
44
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
-
const createRule = utils_1.ESLintUtils.RuleCreator((
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
5
|
return `https://github.com/remotion-dev/remotion`;
|
|
6
6
|
});
|
|
7
7
|
const DeterministicRandomness = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
-
const createRule = utils_1.ESLintUtils.RuleCreator((
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
5
|
return `https://github.com/remotion-dev/remotion`;
|
|
6
6
|
});
|
|
7
7
|
const EvenDimensions = "Videos rendered in H264/H265 codec do not support dimensions that are not divisible by 2. Make the number even to resolve this warning. Ignore this warning if you don't plan on rendering this video with a H264 or H265 codec.";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
-
const createRule = utils_1.ESLintUtils.RuleCreator((
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
5
|
return `https://github.com/remotion-dev/remotion`;
|
|
6
6
|
});
|
|
7
7
|
const DurationInFrames = "Infinity is now the default, so you can remove the prop.";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
-
const createRule = utils_1.ESLintUtils.RuleCreator((
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
5
|
return `https://github.com/remotion-dev/remotion`;
|
|
6
6
|
});
|
|
7
7
|
const NoMP4Import = "Importing MP4 will work while you are previewing the video, but will not work while rendering since Puppeteer does not include the codecs necessary for MP4 videos. Convert the video to WebM first.";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
-
const createRule = utils_1.ESLintUtils.RuleCreator((
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
5
|
return `https://github.com/remotion-dev/remotion`;
|
|
6
6
|
});
|
|
7
7
|
const NoStringAssets = [
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
|
+
return `https://remotion.dev/docs/staticfile-relative-paths`;
|
|
6
|
+
});
|
|
7
|
+
const RelativePathStaticFile = [
|
|
8
|
+
"Don't pass a relative path to staticFile().",
|
|
9
|
+
"See: https://remotion.dev/docs/staticfile-relative-paths",
|
|
10
|
+
].join("\n");
|
|
11
|
+
exports.default = createRule({
|
|
12
|
+
name: "staticfile-no-relative",
|
|
13
|
+
meta: {
|
|
14
|
+
type: "problem",
|
|
15
|
+
docs: {
|
|
16
|
+
description: RelativePathStaticFile,
|
|
17
|
+
recommended: "warn",
|
|
18
|
+
},
|
|
19
|
+
fixable: undefined,
|
|
20
|
+
schema: [],
|
|
21
|
+
messages: {
|
|
22
|
+
RelativePathStaticFile: RelativePathStaticFile,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultOptions: [],
|
|
26
|
+
create: (context) => {
|
|
27
|
+
return {
|
|
28
|
+
CallExpression: (node) => {
|
|
29
|
+
const value = node;
|
|
30
|
+
// src={"some string"}
|
|
31
|
+
if (!value) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (node.type === "CallExpression" &&
|
|
35
|
+
node.callee.type === "Identifier" &&
|
|
36
|
+
node.callee.name === "staticFile") {
|
|
37
|
+
const args = node.arguments;
|
|
38
|
+
if (args.length === 0) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const firstArg = args[0];
|
|
42
|
+
if (firstArg.type === "Literal") {
|
|
43
|
+
const value = firstArg.value;
|
|
44
|
+
if (typeof value !== "string") {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (value.startsWith("./")) {
|
|
48
|
+
context.report({
|
|
49
|
+
messageId: "RelativePathStaticFile",
|
|
50
|
+
node,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (value.startsWith("../")) {
|
|
54
|
+
context.report({
|
|
55
|
+
messageId: "RelativePathStaticFile",
|
|
56
|
+
node,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
|
+
return `https://remotion.dev/docs/staticfile-remote-urls`;
|
|
6
|
+
});
|
|
7
|
+
const RelativePathStaticFile = [
|
|
8
|
+
"Don't pass a remote URL to staticFile().",
|
|
9
|
+
"See: https://remotion.dev/docs/staticfile-remote-urls",
|
|
10
|
+
].join("\n");
|
|
11
|
+
exports.default = createRule({
|
|
12
|
+
name: "staticfile-no-remote",
|
|
13
|
+
meta: {
|
|
14
|
+
type: "problem",
|
|
15
|
+
docs: {
|
|
16
|
+
description: RelativePathStaticFile,
|
|
17
|
+
recommended: "warn",
|
|
18
|
+
},
|
|
19
|
+
fixable: undefined,
|
|
20
|
+
schema: [],
|
|
21
|
+
messages: {
|
|
22
|
+
RelativePathStaticFile: RelativePathStaticFile,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultOptions: [],
|
|
26
|
+
create: (context) => {
|
|
27
|
+
return {
|
|
28
|
+
CallExpression: (node) => {
|
|
29
|
+
const value = node;
|
|
30
|
+
// src={"some string"}
|
|
31
|
+
if (!value) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (node.type === "CallExpression" &&
|
|
35
|
+
node.callee.type === "Identifier" &&
|
|
36
|
+
node.callee.name === "staticFile") {
|
|
37
|
+
const args = node.arguments;
|
|
38
|
+
if (args.length === 0) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const firstArg = args[0];
|
|
42
|
+
if (firstArg.type === "Literal") {
|
|
43
|
+
const value = firstArg.value;
|
|
44
|
+
if (typeof value !== "string") {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (value.startsWith("http://")) {
|
|
48
|
+
context.report({
|
|
49
|
+
messageId: "RelativePathStaticFile",
|
|
50
|
+
node,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (value.startsWith("https://")) {
|
|
54
|
+
context.report({
|
|
55
|
+
messageId: "RelativePathStaticFile",
|
|
56
|
+
node,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
6
|
+
});
|
|
7
|
+
const UseGifComponent = [
|
|
8
|
+
"Use the <Gif> component for animated GIFs instead.",
|
|
9
|
+
].join("\n");
|
|
10
|
+
exports.default = createRule({
|
|
11
|
+
name: "use-gif-component",
|
|
12
|
+
meta: {
|
|
13
|
+
type: "problem",
|
|
14
|
+
docs: {
|
|
15
|
+
description: UseGifComponent,
|
|
16
|
+
recommended: "warn",
|
|
17
|
+
},
|
|
18
|
+
fixable: undefined,
|
|
19
|
+
schema: [],
|
|
20
|
+
messages: {
|
|
21
|
+
UseGifComponent: UseGifComponent,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
defaultOptions: [],
|
|
25
|
+
create: (context) => {
|
|
26
|
+
return {
|
|
27
|
+
JSXAttribute: (node) => {
|
|
28
|
+
if (node.type !== "JSXAttribute") {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (node.name.name !== "src") {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const value = node.value;
|
|
35
|
+
// src={"some string"}
|
|
36
|
+
if (!value) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const stringValue = value &&
|
|
40
|
+
value.type === "JSXExpressionContainer" &&
|
|
41
|
+
value.expression.type === "Literal"
|
|
42
|
+
? value.expression.value
|
|
43
|
+
: value.type === "Literal"
|
|
44
|
+
? value.value
|
|
45
|
+
: null;
|
|
46
|
+
// src="image.gif"
|
|
47
|
+
if (typeof stringValue === "string") {
|
|
48
|
+
const parent = node.parent;
|
|
49
|
+
if (!parent) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (parent.type !== "JSXOpeningElement") {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const name = parent.name;
|
|
56
|
+
if (name.type !== "JSXIdentifier") {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (name.name === "Img" || name.name === "img") {
|
|
60
|
+
// Network and inline URLs are okay
|
|
61
|
+
if (stringValue.includes(".gif")) {
|
|
62
|
+
context.report({
|
|
63
|
+
messageId: "UseGifComponent",
|
|
64
|
+
node,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (value.type === "JSXExpressionContainer" &&
|
|
70
|
+
value.expression.type === "CallExpression" &&
|
|
71
|
+
value.expression.callee.type === "Identifier" &&
|
|
72
|
+
value.expression.callee.name === "staticFile") {
|
|
73
|
+
const args = value.expression.arguments;
|
|
74
|
+
if (args.length === 0) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const firstArg = args[0];
|
|
78
|
+
if (firstArg.type === "Literal") {
|
|
79
|
+
const value = firstArg.value;
|
|
80
|
+
if (typeof value !== "string") {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (value.includes(".gif")) {
|
|
84
|
+
context.report({
|
|
85
|
+
messageId: "UseGifComponent",
|
|
86
|
+
node,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
});
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
6
|
+
});
|
|
7
|
+
const UseGifComponent = [
|
|
8
|
+
"Use the <Gif> component animated GIFs.",
|
|
9
|
+
"See: https://www.remotion.dev/docs/gif.",
|
|
10
|
+
"Ignore this message if this is a non-animated GIF.",
|
|
11
|
+
].join("\n");
|
|
12
|
+
exports.default = createRule({
|
|
13
|
+
name: "use-gif-component",
|
|
14
|
+
meta: {
|
|
15
|
+
type: "problem",
|
|
16
|
+
docs: {
|
|
17
|
+
description: UseGifComponent,
|
|
18
|
+
recommended: "warn",
|
|
19
|
+
},
|
|
20
|
+
fixable: undefined,
|
|
21
|
+
schema: [],
|
|
22
|
+
messages: {
|
|
23
|
+
UseGifComponent: UseGifComponent,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
defaultOptions: [],
|
|
27
|
+
create: (context) => {
|
|
28
|
+
return {
|
|
29
|
+
JSXAttribute: (node) => {
|
|
30
|
+
if (node.type !== "JSXAttribute") {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (node.name.name !== "src") {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const value = node.value;
|
|
37
|
+
// src={"some string"}
|
|
38
|
+
if (!value) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const stringValue = value &&
|
|
42
|
+
value.type === "JSXExpressionContainer" &&
|
|
43
|
+
value.expression.type === "Literal"
|
|
44
|
+
? value.expression.value
|
|
45
|
+
: value.type === "Literal"
|
|
46
|
+
? value.value
|
|
47
|
+
: null;
|
|
48
|
+
// src="image.gif"
|
|
49
|
+
if (typeof stringValue === "string") {
|
|
50
|
+
const parent = node.parent;
|
|
51
|
+
if (!parent) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (parent.type !== "JSXOpeningElement") {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const name = parent.name;
|
|
58
|
+
if (name.type !== "JSXIdentifier") {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (name.name === "Img" || name.name === "img") {
|
|
62
|
+
// Network and inline URLs are okay
|
|
63
|
+
if (stringValue.includes(".gif")) {
|
|
64
|
+
context.report({
|
|
65
|
+
messageId: "UseGifComponent",
|
|
66
|
+
node,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (value.type === "JSXExpressionContainer" &&
|
|
72
|
+
value.expression.type === "CallExpression" &&
|
|
73
|
+
value.expression.callee.type === "Identifier" &&
|
|
74
|
+
value.expression.callee.name === "staticFile") {
|
|
75
|
+
const args = value.expression.arguments;
|
|
76
|
+
if (args.length === 0) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const firstArg = args[0];
|
|
80
|
+
if (firstArg.type === "Literal") {
|
|
81
|
+
const value = firstArg.value;
|
|
82
|
+
if (typeof value !== "string") {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (value.includes(".gif")) {
|
|
86
|
+
context.report({
|
|
87
|
+
messageId: "UseGifComponent",
|
|
88
|
+
node,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
-
const createRule = utils_1.ESLintUtils.RuleCreator((
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
5
|
return `https://github.com/remotion-dev/remotion`;
|
|
6
6
|
});
|
|
7
7
|
const VolumeCallback = "Prefer a callback function for setting the volume: `volume={(f) => interpolate(...)}`. See https://www.remotion.dev/docs/using-audio/#controlling-volume";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const utils_1 = require("@typescript-eslint/utils");
|
|
4
|
-
const createRule = utils_1.ESLintUtils.RuleCreator((
|
|
4
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => {
|
|
5
5
|
return `https://github.com/remotion-dev/remotion`;
|
|
6
6
|
});
|
|
7
7
|
const NoNativeImgTag = "Prefer the <Img /> tag from 'remotion' package, because it will wait until the image is loaded when you are rendering your video.";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/eslint-plugin",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-forcepublish.6+4957f53c8",
|
|
4
4
|
"description": "A set of rules helping you avoid common pitfalls in Remotion.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -d",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"eslint": "8.13.0",
|
|
21
21
|
"jest": "^27.2.4",
|
|
22
22
|
"ts-jest": "^27.0.5",
|
|
23
|
-
"typescript": "^4.
|
|
23
|
+
"typescript": "^4.7.0"
|
|
24
24
|
},
|
|
25
25
|
"private": false,
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "4957f53c89a3d1404798c67420465b81f36019c9"
|
|
27
27
|
}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkBA,kBAeE"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,gGAAuE;AACvE,8EAAqD;AACrD,0EAAgD;AAChD,gFAAsD;AACtD,0FAA+D;AAC/D,sGAAmE;AACnE,8EAAqD;AAErD,MAAM,KAAK,GAAG;IACZ,eAAe,EAAE,uBAAW;IAC5B,uBAAuB,EAAE,+BAAkB;IAC3C,0BAA0B,EAAE,kCAAuB;IACnD,kBAAkB,EAAE,0BAAc;IAClC,iBAAiB,EAAE,yBAAc;IACjC,oBAAoB,EAAE,qCAAgB;IACtC,iBAAiB,EAAE,yBAAc;CAClC,CAAC;AAEF,iBAAS;IACP,KAAK;IACL,OAAO,EAAE;QACP,WAAW,EAAE;YACX,KAAK,EAAE;gBACL,yBAAyB,EAAE,KAAK;gBAChC,iCAAiC,EAAE,OAAO;gBAC1C,oCAAoC,EAAE,OAAO;gBAC7C,4BAA4B,EAAE,OAAO;gBACrC,2BAA2B,EAAE,OAAO;gBACpC,8BAA8B,EAAE,OAAO;gBACvC,2BAA2B,EAAE,OAAO;aACrC;SACF;KACF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deterministic-randomness.d.ts","sourceRoot":"","sources":["../../src/rules/deterministic-randomness.ts"],"names":[],"mappings":";AAiBA,wBAsCG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deterministic-randomness.js","sourceRoot":"","sources":["../../src/rules/deterministic-randomness.ts"],"names":[],"mappings":";;AAAA,oDAAuD;AAEvD,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;IAClD,OAAO,0CAA0C,CAAC;AACpD,CAAC,CAAC,CAAC;AAMH,MAAM,uBAAuB,GAAG;IAC9B,iFAAiF;IACjF,iFAAiF;IACjF,wFAAwF;IACxF,iDAAiD;CAClD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,kBAAe,UAAU,CAAsB;IAC7C,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,uBAAuB,EAAE,uBAAuB;SACjD;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE;QAClB,OAAO;YACL,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE;gBACvB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;gBAC3B,IAAI,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE;oBACtC,IACE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,YAAY;wBACnC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,EAC7B;wBACA,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,YAAY;4BACrC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,EACjC;4BACA,OAAO,CAAC,MAAM,CAAC;gCACb,SAAS,EAAE,yBAAyB;gCACpC,IAAI;6BACL,CAAC,CAAC;yBACJ;qBACF;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"even-dimensions.d.ts","sourceRoot":"","sources":["../../src/rules/even-dimensions.ts"],"names":[],"mappings":";AAaA,wBA+DG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"even-dimensions.js","sourceRoot":"","sources":["../../src/rules/even-dimensions.ts"],"names":[],"mappings":";;AAAA,oDAAuD;AAEvD,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;IAClD,OAAO,0CAA0C,CAAC;AACpD,CAAC,CAAC,CAAC;AAMH,MAAM,cAAc,GAClB,kOAAkO,CAAC;AAErO,kBAAe,UAAU,CAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,cAAc;SACf;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE;QAClB,OAAO;YACL,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;gBACrB,IAAI,IAAI,CAAC,IAAI,KAAK,cAAc,EAAE;oBAChC,OAAO;iBACR;gBACD,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;oBAC7D,OAAO;iBACR;gBACD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;gBACzB,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,wBAAwB,EAAE;oBACrD,OAAO;iBACR;gBAED,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;gBACpC,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE;oBAChD,OAAO;iBACR;gBAED,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC;gBACrC,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;oBACnC,OAAO;iBACR;gBAED,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;gBAC3B,IAAI,CAAC,MAAM,EAAE;oBACX,OAAO;iBACR;gBAED,IAAI,MAAM,CAAC,IAAI,KAAK,mBAAmB,EAAE;oBACvC,OAAO;iBACR;gBACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;gBACzB,IAAI,IAAI,CAAC,IAAI,KAAK,eAAe,EAAE;oBACjC,OAAO;iBACR;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,EAAE;oBAC/B,OAAO;iBACR;gBACD,IAAI,WAAW,GAAG,CAAC,KAAK,CAAC,EAAE;oBACzB,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,gBAAgB;wBAC3B,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-duration-frames-infinity.d.ts","sourceRoot":"","sources":["../../src/rules/no-duration-frames-infinity.ts"],"names":[],"mappings":";AAaA,wBAoEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-duration-frames-infinity.js","sourceRoot":"","sources":["../../src/rules/no-duration-frames-infinity.ts"],"names":[],"mappings":";;AAAA,oDAAuD;AAEvD,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;IAClD,OAAO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AC,IAAI,KAAK,eAAe,EAAE;oBACjC,OAAO;iBACR;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;oBAC5B,OAAO;iBACR;gBACD,IAAI,WAAW,KAAK,UAAU,EAAE;oBAC9B,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,kBAAkB;wBAC7B,IAAI;wBACJ,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE;4BACb,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBACjE,CAAC;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-mp4-import.d.ts","sourceRoot":"","sources":["../../src/rules/no-mp4-import.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,IAAI,2JAqDR,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-mp4-import.js","sourceRoot":"","sources":["../../src/rules/no-mp4-import.ts"],"names":[],"mappings":";;AAAA,oDAAuD;AAEvD,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;IAClD,OAAO,0CAA0C,CAAC;AACpD,CAAC,CAAC,CAAC;AAMH,MAAM,WAAW,GACf,sMAAsM,CAAC;AAEzM,MAAM,IAAI,GAAG,UAAU,CAAsB;IAC3C,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,WAAW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AC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"volume-callback.d.ts","sourceRoot":"","sources":["../../src/rules/volume-callback.ts"],"names":[],"mappings":";AAaA,wBAgEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"volume-callback.js","sourceRoot":"","sources":["../../src/rules/volume-callback.ts"],"names":[],"mappings":";;AAAA,oDAAuD;AAEvD,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;IAClD,OAAO,0CAA0C,CAAC;AACpD,CAAC,CAAC,CAAC;AAMH,MAAM,cAAc,GAClB,0JAA0J,CAAC;AAE7J,kBAAe,UAAU,CAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,cAAc;SACf;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE;QAClB,OAAO;YACL,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE;gBACrB,IAAI,IAAI,CAAC,IAAI,KAAK,cAAc,EAAE;oBAChC,OAAO;iBACR;gBACD,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;oBAC/B,OAAO;iBACR;gBACD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;gBACzB,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,wBAAwB,EAAE;oBACrD,OAAO;iBACR;gBAED,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;gBAC3B,IAAI,CAAC,MAAM,EAAE;oBACX,OAAO;iBACR;gBAED,IAAI,MAAM,CAAC,IAAI,KAAK,mBAAmB,EAAE;oBACvC,OAAO;iBACR;gBACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;gBACzB,IAAI,IAAI,CAAC,IAAI,KAAK,eAAe,EAAE;oBACjC,OAAO;iBACR;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBAClD,OAAO;iBACR;gBAED,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;gBACpC,IAAI,CAAC,UAAU,EAAE;oBACf,OAAO;iBACR;gBAED,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE;oBACjC,OAAO;iBACR;gBACD,IAAI,UAAU,CAAC,IAAI,KAAK,yBAAyB,EAAE;oBACjD,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,SAAS,EAAE,gBAAgB;oBAC3B,IAAI;iBACL,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warn-native-media-tag.d.ts","sourceRoot":"","sources":["../../src/rules/warn-native-media-tag.ts"],"names":[],"mappings":"AAQA,aAAK,UAAU,GACX,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,CAAC;;AAWvB,wBAsFG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warn-native-media-tag.js","sourceRoot":"","sources":["../../src/rules/warn-native-media-tag.ts"],"names":[],"mappings":";;AAAA,oDAAuD;AAEvD,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;IAClD,OAAO,0CAA0C,CAAC;AACpD,CAAC,CAAC,CAAC;AAUH,MAAM,cAAc,GAClB,mIAAmI,CAAC;AACtI,MAAM,iBAAiB,GACrB,uIAAuI,CAAC;AAC1I,MAAM,gBAAgB,GACpB,wGAA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