@remotion/eslint-plugin 3.3.88 → 3.3.90

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.
@@ -0,0 +1,2 @@
1
+ declare const rule: import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"ImportConfig", [], import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>;
2
+ export default rule;
@@ -0,0 +1,40 @@
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://v4.remotion.dev/docs/4-0-migration`;
6
+ });
7
+ const ImportConfig = "Update the import to the new V4 location: import {Config} from '@remotion/cli/config'";
8
+ const rule = createRule({
9
+ name: "v4-config-import",
10
+ meta: {
11
+ type: "problem",
12
+ docs: {
13
+ description: ImportConfig,
14
+ recommended: "warn",
15
+ },
16
+ fixable: undefined,
17
+ schema: [],
18
+ messages: {
19
+ ImportConfig,
20
+ },
21
+ },
22
+ defaultOptions: [],
23
+ create: (context) => {
24
+ return {
25
+ ImportDeclaration: (node) => {
26
+ if (node.source.value !== "remotion") {
27
+ return;
28
+ }
29
+ const config = node.specifiers.find((s) => s.type === "ImportSpecifier" && s.imported.name === "Config");
30
+ if (config) {
31
+ context.report({
32
+ messageId: "ImportConfig",
33
+ node,
34
+ });
35
+ }
36
+ },
37
+ };
38
+ },
39
+ });
40
+ exports.default = rule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/eslint-plugin",
3
- "version": "3.3.88",
3
+ "version": "3.3.90",
4
4
  "description": "A set of rules helping you avoid common pitfalls in Remotion.",
5
5
  "main": "dist/index.js",
6
6
  "bugs": {