@remotion/eslint-plugin 3.3.33 → 3.3.35
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
CHANGED
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
"use-gif-component": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"UseGifComponent", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
12
12
|
"staticfile-no-relative": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"RelativePathStaticFile", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
13
13
|
"staticfile-no-remote": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"RelativePathStaticFile", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
14
|
+
"no-background-image": import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"BackgroundImage", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
|
|
14
15
|
};
|
|
15
16
|
configs: {
|
|
16
17
|
recommended: {
|
|
@@ -26,6 +27,7 @@ declare const _default: {
|
|
|
26
27
|
"@remotion/use-gif-component": string;
|
|
27
28
|
"@remotion/staticfile-no-relative": string;
|
|
28
29
|
"@remotion/staticfile-no-remote": string;
|
|
30
|
+
"@remotion/no-background-image": string;
|
|
29
31
|
};
|
|
30
32
|
};
|
|
31
33
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ 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_background_image_1 = __importDefault(require("./rules/no-background-image"));
|
|
7
8
|
const no_duration_frames_infinity_1 = __importDefault(require("./rules/no-duration-frames-infinity"));
|
|
8
9
|
const no_from_0_1 = __importDefault(require("./rules/no-from-0"));
|
|
9
10
|
const no_mp4_import_1 = __importDefault(require("./rules/no-mp4-import"));
|
|
@@ -25,6 +26,7 @@ const rules = {
|
|
|
25
26
|
"use-gif-component": use_gif_component_1.default,
|
|
26
27
|
"staticfile-no-relative": staticfile_no_relative_1.default,
|
|
27
28
|
"staticfile-no-remote": staticfile_no_remote_1.default,
|
|
29
|
+
"no-background-image": no_background_image_1.default,
|
|
28
30
|
};
|
|
29
31
|
module.exports = {
|
|
30
32
|
rules,
|
|
@@ -42,6 +44,7 @@ module.exports = {
|
|
|
42
44
|
"@remotion/use-gif-component": "error",
|
|
43
45
|
"@remotion/staticfile-no-relative": "error",
|
|
44
46
|
"@remotion/staticfile-no-remote": "error",
|
|
47
|
+
"@remotion/no-background-image": "error",
|
|
45
48
|
},
|
|
46
49
|
},
|
|
47
50
|
},
|
|
@@ -0,0 +1,42 @@
|
|
|
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/troubleshooting/background-image";
|
|
6
|
+
});
|
|
7
|
+
const BackgroundImage = [
|
|
8
|
+
"Don't use background-image in Remotion.",
|
|
9
|
+
"See: https://remotion.dev/docs/troubleshooting/background-image",
|
|
10
|
+
].join("\n");
|
|
11
|
+
exports.default = createRule({
|
|
12
|
+
name: "no-background-image",
|
|
13
|
+
meta: {
|
|
14
|
+
type: "problem",
|
|
15
|
+
docs: {
|
|
16
|
+
description: BackgroundImage,
|
|
17
|
+
recommended: "error",
|
|
18
|
+
},
|
|
19
|
+
fixable: undefined,
|
|
20
|
+
schema: [],
|
|
21
|
+
messages: {
|
|
22
|
+
BackgroundImage: BackgroundImage,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultOptions: [],
|
|
26
|
+
create: (context) => {
|
|
27
|
+
return {
|
|
28
|
+
Property: (node) => {
|
|
29
|
+
if (node.key.type !== "Identifier") {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (node.key.name !== "backgroundImage") {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
context.report({
|
|
36
|
+
messageId: "BackgroundImage",
|
|
37
|
+
node,
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/eslint-plugin",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.35",
|
|
4
4
|
"description": "A set of rules helping you avoid common pitfalls in Remotion.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -d",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"vitest": "0.24.3"
|
|
23
23
|
},
|
|
24
24
|
"private": false,
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "92344ca937e4c51b8484f79528e3c38d598f7053"
|
|
26
26
|
}
|