@r_masseater/oxlint-typed-rules 0.1.3 → 0.1.4
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 +20 -0
- package/README.md +6 -1
- package/dist/remotion.d.mts +5 -0
- package/dist/remotion.mjs +955 -0
- package/dist/remotion.mjs.map +1 -0
- package/package.json +15 -3
package/LICENSE
CHANGED
|
@@ -343,3 +343,23 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
343
343
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
344
344
|
|
|
345
345
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
@remotion/eslint-plugin
|
|
350
|
+
|
|
351
|
+
ISC License
|
|
352
|
+
|
|
353
|
+
Copyright (c) Jonny Burger <jonny@remotion.dev>
|
|
354
|
+
|
|
355
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
356
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
357
|
+
copyright notice and this permission notice appear in all copies.
|
|
358
|
+
|
|
359
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
360
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
361
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
362
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
363
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
364
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
365
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -19,6 +19,8 @@ ESLint を入れずに、型情報を使うルールを oxlint だけで回せ
|
|
|
19
19
|
- [@tanstack/eslint-plugin-router][tanstack-router] 1.162.0 の全ルールと configs
|
|
20
20
|
- `@r_masseater/oxlint-typed-rules/drizzle`
|
|
21
21
|
- [eslint-plugin-drizzle][drizzle] 0.2.3 の全ルールと configs
|
|
22
|
+
- `@r_masseater/oxlint-typed-rules/remotion`
|
|
23
|
+
- [@remotion/eslint-plugin][remotion] 4.0.541 の全ルールと configs
|
|
22
24
|
- `@r_masseater/oxlint-typed-rules/react`
|
|
23
25
|
- [@eslint-react/eslint-plugin][eslint-react] 5.28.8 の全ルールと configs
|
|
24
26
|
|
|
@@ -26,11 +28,12 @@ ESLint を入れずに、型情報を使うルールを oxlint だけで回せ
|
|
|
26
28
|
[tanstack-query]: https://github.com/TanStack/query/tree/main/packages/eslint-plugin-query
|
|
27
29
|
[tanstack-router]: https://github.com/TanStack/router/tree/main/packages/eslint-plugin-router
|
|
28
30
|
[drizzle]: https://github.com/drizzle-team/drizzle-orm/tree/main/eslint-plugin-drizzle
|
|
31
|
+
[remotion]: https://github.com/remotion-dev/remotion/tree/main/packages/eslint-plugin
|
|
29
32
|
[eslint-react]: https://github.com/Rel1cx/eslint-react
|
|
30
33
|
|
|
31
34
|
元のリポのテストを手を入れずに移植し、すべて同じ結果になることを確かめている。
|
|
32
35
|
TanStack Start の 2 ルールは、ファイルをまたぐと違反を取りこぼす点を直してある。
|
|
33
|
-
@eslint-react はルールの ID と configs を元のプラグインと同じにしてあるので、
|
|
36
|
+
@eslint-react と Remotion はルールの ID と configs を元のプラグインと同じにしてあるので、
|
|
34
37
|
jsPlugins の `specifier` を差し替えるだけで乗り換えられる。
|
|
35
38
|
TanStack Query・Router・Drizzle は、プラグインの名前を `tanstack-query`・`tanstack-router`・`drizzle` にしてある。
|
|
36
39
|
configs の `rules` も同じ名前で始まるので、そのまま `rules` に広げられる。
|
|
@@ -40,6 +43,8 @@ Query の `no-void-query-fn` と `no-rest-destructuring` は型情報を読み
|
|
|
40
43
|
Router と Drizzle のエントリーは tsgo を起動しない。
|
|
41
44
|
eslint-plugin-drizzle は依存に書いていない `@typescript-eslint/utils` を読むので、
|
|
42
45
|
元のままではそれが巻き上げられた環境でしか読み込めない。このパッケージは同梱して読ませる。
|
|
46
|
+
@remotion/eslint-plugin は型情報を使わないが、`@typescript-eslint/utils` 5 を経て TypeScript 5 を引き込む。
|
|
47
|
+
Remotion のエントリーはその `ESLintUtils` を 8 系の `eslint-utils` に差し替えて同梱し、tsgo も起動しない。
|
|
43
48
|
oxc の構文木は JSX の属性の文字参照を復号しないので([oxc#9667][oxc-9667])、
|
|
44
49
|
`jsx-no-children-prop` は属性の元の文字列から復号するよう直してある。
|
|
45
50
|
|
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
import { n as import_eslint_utils, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-QnYasB-9.mjs";
|
|
2
|
+
import { n as upstreamPlugin, t as plainRules } from "./upstream-plugin-DqJEA6iy.mjs";
|
|
3
|
+
// ../../node_modules/.pnpm/@remotion+eslint-plugin@4.0.541_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0_/node_modules/@remotion/eslint-plugin/dist/esm/index.mjs
|
|
4
|
+
init_typescript_eslint_utils();
|
|
5
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
6
|
+
var __esm = (fn, res, err) => () => {
|
|
7
|
+
if (fn) try {
|
|
8
|
+
res = fn(fn = 0);
|
|
9
|
+
} catch (e) {
|
|
10
|
+
err = [e];
|
|
11
|
+
}
|
|
12
|
+
if (err) throw err[0];
|
|
13
|
+
return res;
|
|
14
|
+
};
|
|
15
|
+
var createRule;
|
|
16
|
+
var DeterministicRandomness;
|
|
17
|
+
var deterministic_randomness_default;
|
|
18
|
+
var init_deterministic_randomness = __esm(() => {
|
|
19
|
+
createRule = import_eslint_utils.RuleCreator(() => {
|
|
20
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
21
|
+
});
|
|
22
|
+
DeterministicRandomness = [
|
|
23
|
+
"The result of Math.random() will change between frames while in rendering mode.",
|
|
24
|
+
"Use the `random()` API from Remotion to get a deterministic pseudorandom value.",
|
|
25
|
+
"If you are sure you want a true random value, use `random(null)` to hide this warning.",
|
|
26
|
+
"See: https://remotion.dev/docs/using-randomness"
|
|
27
|
+
].join(`
|
|
28
|
+
`);
|
|
29
|
+
deterministic_randomness_default = createRule({
|
|
30
|
+
name: "deterministic-randomness",
|
|
31
|
+
meta: {
|
|
32
|
+
type: "problem",
|
|
33
|
+
docs: {
|
|
34
|
+
description: DeterministicRandomness,
|
|
35
|
+
recommended: "warn"
|
|
36
|
+
},
|
|
37
|
+
fixable: void 0,
|
|
38
|
+
schema: [],
|
|
39
|
+
messages: { DeterministicRandomness }
|
|
40
|
+
},
|
|
41
|
+
defaultOptions: [],
|
|
42
|
+
create: (context) => {
|
|
43
|
+
return { CallExpression: (node) => {
|
|
44
|
+
const callee = node.callee;
|
|
45
|
+
if (callee.type === "MemberExpression") {
|
|
46
|
+
if (callee.object.type === "Identifier" && callee.object.name === "Math") {
|
|
47
|
+
if (callee.property.type === "Identifier" && callee.property.name === "random") context.report({
|
|
48
|
+
messageId: "DeterministicRandomness",
|
|
49
|
+
node
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
} };
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
var createRule2;
|
|
58
|
+
var EvenDimensions = "Videos rendered in H264/H265 codec do not support dimensions that are not divisible by 2. Remotion will round down your dimensions to satisfy this constraint. Ignore this warning if you don't plan on rendering this video with a H264 or H265 codec.";
|
|
59
|
+
var even_dimensions_default;
|
|
60
|
+
var init_even_dimensions = __esm(() => {
|
|
61
|
+
createRule2 = import_eslint_utils.RuleCreator(() => {
|
|
62
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
63
|
+
});
|
|
64
|
+
even_dimensions_default = createRule2({
|
|
65
|
+
name: "even-dimensions",
|
|
66
|
+
meta: {
|
|
67
|
+
type: "problem",
|
|
68
|
+
docs: {
|
|
69
|
+
description: EvenDimensions,
|
|
70
|
+
recommended: "warn"
|
|
71
|
+
},
|
|
72
|
+
fixable: void 0,
|
|
73
|
+
schema: [],
|
|
74
|
+
messages: { EvenDimensions }
|
|
75
|
+
},
|
|
76
|
+
defaultOptions: [],
|
|
77
|
+
create: (context) => {
|
|
78
|
+
return { JSXAttribute: (node) => {
|
|
79
|
+
if (node.type !== "JSXAttribute") return;
|
|
80
|
+
if (node.name.name !== "width" && node.name.name !== "height") return;
|
|
81
|
+
const value = node.value;
|
|
82
|
+
if (!value || value.type !== "JSXExpressionContainer") return;
|
|
83
|
+
const expression = value.expression;
|
|
84
|
+
if (!expression || expression.type !== "Literal") return;
|
|
85
|
+
const stringValue = expression.value;
|
|
86
|
+
if (typeof stringValue !== "number") return;
|
|
87
|
+
const parent = node.parent;
|
|
88
|
+
if (!parent) return;
|
|
89
|
+
if (parent.type !== "JSXOpeningElement") return;
|
|
90
|
+
const name = parent.name;
|
|
91
|
+
if (name.type !== "JSXIdentifier") return;
|
|
92
|
+
if (name.name !== "Composition") return;
|
|
93
|
+
if (stringValue % 2 !== 0) context.report({
|
|
94
|
+
messageId: "EvenDimensions",
|
|
95
|
+
node
|
|
96
|
+
});
|
|
97
|
+
} };
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
var createRule3;
|
|
102
|
+
var BackgroundImage;
|
|
103
|
+
var no_background_image_default;
|
|
104
|
+
var init_no_background_image = __esm(() => {
|
|
105
|
+
createRule3 = import_eslint_utils.RuleCreator(() => {
|
|
106
|
+
return "https://remotion.dev/docs/troubleshooting/background-image";
|
|
107
|
+
});
|
|
108
|
+
BackgroundImage = ["Don't use background-image in Remotion.", "See: https://remotion.dev/docs/troubleshooting/background-image"].join(`
|
|
109
|
+
`);
|
|
110
|
+
no_background_image_default = createRule3({
|
|
111
|
+
name: "no-background-image",
|
|
112
|
+
meta: {
|
|
113
|
+
type: "problem",
|
|
114
|
+
docs: {
|
|
115
|
+
description: BackgroundImage,
|
|
116
|
+
recommended: "error"
|
|
117
|
+
},
|
|
118
|
+
fixable: void 0,
|
|
119
|
+
schema: [],
|
|
120
|
+
messages: { BackgroundImage }
|
|
121
|
+
},
|
|
122
|
+
defaultOptions: [],
|
|
123
|
+
create: (context) => {
|
|
124
|
+
return { Property: (node) => {
|
|
125
|
+
if (node.key.type !== "Identifier") return;
|
|
126
|
+
if (node.key.name !== "backgroundImage") return;
|
|
127
|
+
if (node.value.type === "Literal") {
|
|
128
|
+
const { value } = node.value;
|
|
129
|
+
if (typeof value === "string" && value.includes("url(")) context.report({
|
|
130
|
+
messageId: "BackgroundImage",
|
|
131
|
+
node
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
if (node.value.type === "TemplateLiteral") for (const element of node.value.quasis) {
|
|
135
|
+
if (element.type !== "TemplateElement") continue;
|
|
136
|
+
if (element.value.raw.includes("url(")) context.report({
|
|
137
|
+
messageId: "BackgroundImage",
|
|
138
|
+
node
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
} };
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
var createRule4;
|
|
146
|
+
var DurationInFrames = "Infinity is now the default, so you can remove the prop.";
|
|
147
|
+
var no_duration_frames_infinity_default;
|
|
148
|
+
var init_no_duration_frames_infinity = __esm(() => {
|
|
149
|
+
createRule4 = import_eslint_utils.RuleCreator(() => {
|
|
150
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
151
|
+
});
|
|
152
|
+
no_duration_frames_infinity_default = createRule4({
|
|
153
|
+
name: "duration-in-frames",
|
|
154
|
+
meta: {
|
|
155
|
+
type: "problem",
|
|
156
|
+
docs: {
|
|
157
|
+
description: DurationInFrames,
|
|
158
|
+
recommended: "warn"
|
|
159
|
+
},
|
|
160
|
+
fixable: "code",
|
|
161
|
+
schema: [],
|
|
162
|
+
messages: { DurationInFrames }
|
|
163
|
+
},
|
|
164
|
+
defaultOptions: [],
|
|
165
|
+
create: (context) => {
|
|
166
|
+
return { JSXAttribute: (node) => {
|
|
167
|
+
if (node.type !== "JSXAttribute") return;
|
|
168
|
+
if (node.name.name !== "durationInFrames") return;
|
|
169
|
+
const value = node.value;
|
|
170
|
+
if (!value || value.type !== "JSXExpressionContainer") return;
|
|
171
|
+
const expression = value.expression;
|
|
172
|
+
if (!expression || expression.type !== "Identifier") return;
|
|
173
|
+
const stringValue = expression.name;
|
|
174
|
+
if (typeof stringValue !== "string") return;
|
|
175
|
+
const parent = node.parent;
|
|
176
|
+
if (!parent) return;
|
|
177
|
+
if (parent.type !== "JSXOpeningElement") return;
|
|
178
|
+
const name = parent.name;
|
|
179
|
+
if (name.type !== "JSXIdentifier") return;
|
|
180
|
+
if (name.name !== "Sequence") return;
|
|
181
|
+
if (stringValue === "Infinity") context.report({
|
|
182
|
+
messageId: "DurationInFrames",
|
|
183
|
+
node,
|
|
184
|
+
fix: (fixer) => {
|
|
185
|
+
return fixer.removeRange([node.name.range[0], value.range[1]]);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
} };
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
var createRule5;
|
|
193
|
+
var From0 = "0 is now the default, so you can remove the prop.";
|
|
194
|
+
var no_from_0_default;
|
|
195
|
+
var init_no_from_0 = __esm(() => {
|
|
196
|
+
createRule5 = import_eslint_utils.RuleCreator(() => {
|
|
197
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
198
|
+
});
|
|
199
|
+
no_from_0_default = createRule5({
|
|
200
|
+
name: "from",
|
|
201
|
+
meta: {
|
|
202
|
+
type: "problem",
|
|
203
|
+
docs: {
|
|
204
|
+
description: From0,
|
|
205
|
+
recommended: "warn"
|
|
206
|
+
},
|
|
207
|
+
fixable: "code",
|
|
208
|
+
schema: [],
|
|
209
|
+
messages: { From0 }
|
|
210
|
+
},
|
|
211
|
+
defaultOptions: [],
|
|
212
|
+
create: (context) => {
|
|
213
|
+
return { JSXAttribute: (node) => {
|
|
214
|
+
if (node.type !== "JSXAttribute") return;
|
|
215
|
+
if (node.name.name !== "from") return;
|
|
216
|
+
const value = node.value;
|
|
217
|
+
if (!value || value.type !== "JSXExpressionContainer") return;
|
|
218
|
+
const expression = value.expression;
|
|
219
|
+
if (!expression || expression.type !== "Literal") return;
|
|
220
|
+
const stringValue = expression.value;
|
|
221
|
+
if (stringValue !== 0) return;
|
|
222
|
+
const parent = node.parent;
|
|
223
|
+
if (!parent) return;
|
|
224
|
+
if (parent.type !== "JSXOpeningElement") return;
|
|
225
|
+
const name = parent.name;
|
|
226
|
+
if (name.type !== "JSXIdentifier") return;
|
|
227
|
+
if (name.name !== "Sequence") return;
|
|
228
|
+
if (stringValue === 0) context.report({
|
|
229
|
+
messageId: "From0",
|
|
230
|
+
node,
|
|
231
|
+
fix: (fixer) => {
|
|
232
|
+
return fixer.removeRange([node.name.range[0], value.range[1]]);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
} };
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
var createRule6;
|
|
240
|
+
var NoObjectFitInStyle;
|
|
241
|
+
var NoObjectFitInClassName;
|
|
242
|
+
var objectFitClassPattern;
|
|
243
|
+
var no_object_fit_on_media_video_default;
|
|
244
|
+
var init_no_object_fit_on_media_video = __esm(() => {
|
|
245
|
+
createRule6 = import_eslint_utils.RuleCreator(() => {
|
|
246
|
+
return "https://remotion.dev/docs/media/video#objectfit";
|
|
247
|
+
});
|
|
248
|
+
NoObjectFitInStyle = [
|
|
249
|
+
"Passing `objectFit` via the `style` prop is not supported for `<Video>` from `@remotion/media`.",
|
|
250
|
+
"Use the `objectFit` prop directly instead.",
|
|
251
|
+
"See: https://remotion.dev/docs/media/video#objectfit"
|
|
252
|
+
].join(`
|
|
253
|
+
`);
|
|
254
|
+
NoObjectFitInClassName = [
|
|
255
|
+
"Passing an `object-fit` CSS class via `className` is not supported for `<Video>` from `@remotion/media`.",
|
|
256
|
+
"Use the `objectFit` prop directly instead.",
|
|
257
|
+
"See: https://remotion.dev/docs/media/video#objectfit"
|
|
258
|
+
].join(`
|
|
259
|
+
`);
|
|
260
|
+
objectFitClassPattern = /\bobject-(contain|cover|fill|none|scale-down)\b/;
|
|
261
|
+
no_object_fit_on_media_video_default = createRule6({
|
|
262
|
+
name: "no-object-fit-on-media-video",
|
|
263
|
+
meta: {
|
|
264
|
+
type: "problem",
|
|
265
|
+
docs: {
|
|
266
|
+
description: NoObjectFitInStyle,
|
|
267
|
+
recommended: "warn"
|
|
268
|
+
},
|
|
269
|
+
fixable: void 0,
|
|
270
|
+
schema: [],
|
|
271
|
+
messages: {
|
|
272
|
+
NoObjectFitInStyle,
|
|
273
|
+
NoObjectFitInClassName
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
defaultOptions: [],
|
|
277
|
+
create: (context) => {
|
|
278
|
+
return { JSXOpeningElement: (node) => {
|
|
279
|
+
if (node.name.type !== "JSXIdentifier" || node.name.name !== "Video") return;
|
|
280
|
+
for (const attr of node.attributes) {
|
|
281
|
+
if (attr.type !== "JSXAttribute") continue;
|
|
282
|
+
if (attr.name.type === "JSXIdentifier" && attr.name.name === "style" && attr.value) {
|
|
283
|
+
if (attr.value.type === "JSXExpressionContainer" && attr.value.expression.type === "ObjectExpression") for (const prop of attr.value.expression.properties) {
|
|
284
|
+
if (prop.type !== "Property") continue;
|
|
285
|
+
let propertyName;
|
|
286
|
+
if (prop.key.type === "Identifier") propertyName = prop.key.name;
|
|
287
|
+
else if (prop.key.type === "Literal" && typeof prop.key.value === "string") propertyName = prop.key.value;
|
|
288
|
+
if (propertyName === "objectFit" || propertyName === "object-fit") context.report({
|
|
289
|
+
messageId: "NoObjectFitInStyle",
|
|
290
|
+
node: prop
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (attr.name.type === "JSXIdentifier" && attr.name.name === "className" && attr.value) {
|
|
295
|
+
let classString;
|
|
296
|
+
if (attr.value.type === "Literal" && typeof attr.value.value === "string") classString = attr.value.value;
|
|
297
|
+
else if (attr.value.type === "JSXExpressionContainer" && attr.value.expression.type === "Literal" && typeof attr.value.expression.value === "string") classString = attr.value.expression.value;
|
|
298
|
+
else if (attr.value.type === "JSXExpressionContainer" && attr.value.expression.type === "TemplateLiteral") classString = attr.value.expression.quasis.map((q) => q.value.cooked || q.value.raw).join(" ");
|
|
299
|
+
if (classString && objectFitClassPattern.test(classString)) context.report({
|
|
300
|
+
messageId: "NoObjectFitInClassName",
|
|
301
|
+
node: attr
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
} };
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
var createRule7;
|
|
310
|
+
var NoStringAssets;
|
|
311
|
+
var no_string_assets_default;
|
|
312
|
+
var init_no_string_assets = __esm(() => {
|
|
313
|
+
createRule7 = import_eslint_utils.RuleCreator(() => {
|
|
314
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
315
|
+
});
|
|
316
|
+
NoStringAssets = ["Don't reference local assets by string, use an import statement or staticFile() instead.", "See: https://www.remotion.dev/docs/assets"].join(`
|
|
317
|
+
`);
|
|
318
|
+
no_string_assets_default = createRule7({
|
|
319
|
+
name: "no-string-assets",
|
|
320
|
+
meta: {
|
|
321
|
+
type: "problem",
|
|
322
|
+
docs: {
|
|
323
|
+
description: NoStringAssets,
|
|
324
|
+
recommended: "warn"
|
|
325
|
+
},
|
|
326
|
+
fixable: void 0,
|
|
327
|
+
schema: [],
|
|
328
|
+
messages: { NoStringAssets }
|
|
329
|
+
},
|
|
330
|
+
defaultOptions: [],
|
|
331
|
+
create: (context) => {
|
|
332
|
+
return { JSXAttribute: (node) => {
|
|
333
|
+
if (node.type !== "JSXAttribute") return;
|
|
334
|
+
if (node.name.name !== "src") return;
|
|
335
|
+
const value = node.value;
|
|
336
|
+
const insideCurlyBraces = value && value.type === "JSXExpressionContainer" && value.expression.type === "Literal";
|
|
337
|
+
if (!value || value.type !== "Literal" && !insideCurlyBraces) return;
|
|
338
|
+
const stringValue = value && value.type === "JSXExpressionContainer" && value.expression.type === "Literal" ? value.expression.value : value.type === "Literal" ? value.value : null;
|
|
339
|
+
if (typeof stringValue !== "string") return;
|
|
340
|
+
const parent = node.parent;
|
|
341
|
+
if (!parent) return;
|
|
342
|
+
if (parent.type !== "JSXOpeningElement") return;
|
|
343
|
+
const name = parent.name;
|
|
344
|
+
if (name.type !== "JSXIdentifier") return;
|
|
345
|
+
if (name.name === "Img" || name.name === "img" || name.name === "Audio" || name.name === "audio" || name.name === "Video" || name.name === "video" || name.name === "source" || name.name === "Html5Video" || name.name === "Html5Audio") {
|
|
346
|
+
if (stringValue.startsWith("http://")) return;
|
|
347
|
+
if (stringValue.startsWith("https://")) return;
|
|
348
|
+
if (stringValue.startsWith("data:")) return;
|
|
349
|
+
context.report({
|
|
350
|
+
messageId: "NoStringAssets",
|
|
351
|
+
node
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
} };
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
function findProblematicTailwindClass(classString) {
|
|
359
|
+
for (const pattern of nonPureAnimationTailwindClasses) {
|
|
360
|
+
const match = classString.match(pattern);
|
|
361
|
+
if (match) return {
|
|
362
|
+
match: match[0],
|
|
363
|
+
index: match.index
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
return null;
|
|
367
|
+
}
|
|
368
|
+
var createRule8;
|
|
369
|
+
var NonPureAnimation;
|
|
370
|
+
var nonPureAnimationProperties;
|
|
371
|
+
var nonPureAnimationPropertiesKebab;
|
|
372
|
+
var nonPureAnimationTailwindClasses;
|
|
373
|
+
var non_pure_animation_default;
|
|
374
|
+
var init_non_pure_animation = __esm(() => {
|
|
375
|
+
createRule8 = import_eslint_utils.RuleCreator(() => {
|
|
376
|
+
return "https://www.remotion.dev/docs/flickering";
|
|
377
|
+
});
|
|
378
|
+
NonPureAnimation = ["This animation does not run purely off useCurrentFrame() and will lead to flickering.", "See: https://www.remotion.dev/docs/flickering"].join(`
|
|
379
|
+
`);
|
|
380
|
+
nonPureAnimationProperties = /* @__PURE__ */ new Set(["transition"]);
|
|
381
|
+
nonPureAnimationPropertiesKebab = /* @__PURE__ */ new Set(["transition"]);
|
|
382
|
+
nonPureAnimationTailwindClasses = [/\btransition-\w+\b/, /\btransition\b/];
|
|
383
|
+
non_pure_animation_default = createRule8({
|
|
384
|
+
name: "non-pure-animation",
|
|
385
|
+
meta: {
|
|
386
|
+
type: "problem",
|
|
387
|
+
docs: {
|
|
388
|
+
description: NonPureAnimation,
|
|
389
|
+
recommended: "warn"
|
|
390
|
+
},
|
|
391
|
+
fixable: void 0,
|
|
392
|
+
schema: [],
|
|
393
|
+
messages: { NonPureAnimation }
|
|
394
|
+
},
|
|
395
|
+
defaultOptions: [],
|
|
396
|
+
create: (context) => {
|
|
397
|
+
return {
|
|
398
|
+
Property: (node) => {
|
|
399
|
+
let propertyName;
|
|
400
|
+
if (node.key.type === "Identifier") propertyName = node.key.name;
|
|
401
|
+
else if (node.key.type === "Literal" && typeof node.key.value === "string") propertyName = node.key.value;
|
|
402
|
+
if (!propertyName) return;
|
|
403
|
+
if (nonPureAnimationProperties.has(propertyName) || nonPureAnimationPropertiesKebab.has(propertyName)) context.report({
|
|
404
|
+
messageId: "NonPureAnimation",
|
|
405
|
+
node
|
|
406
|
+
});
|
|
407
|
+
},
|
|
408
|
+
JSXAttribute: (node) => {
|
|
409
|
+
if (node.name.type === "JSXIdentifier" && node.name.name === "className" && node.value) {
|
|
410
|
+
let classString;
|
|
411
|
+
let valueNode;
|
|
412
|
+
if (node.value.type === "Literal" && typeof node.value.value === "string") {
|
|
413
|
+
classString = node.value.value;
|
|
414
|
+
valueNode = node.value;
|
|
415
|
+
} else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "Literal" && typeof node.value.expression.value === "string") {
|
|
416
|
+
classString = node.value.expression.value;
|
|
417
|
+
valueNode = node.value.expression;
|
|
418
|
+
} else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "TemplateLiteral") {
|
|
419
|
+
const templateLiteral = node.value.expression;
|
|
420
|
+
classString = templateLiteral.quasis.map((q) => q.value.cooked || q.value.raw).join(" ");
|
|
421
|
+
valueNode = templateLiteral;
|
|
422
|
+
}
|
|
423
|
+
if (classString) {
|
|
424
|
+
const problematicClass = findProblematicTailwindClass(classString);
|
|
425
|
+
if (problematicClass) {
|
|
426
|
+
const sourceCode = "sourceCode" in context ? context.sourceCode : context.getSourceCode();
|
|
427
|
+
const classStart = valueNode.range[0] + (valueNode.type === "Literal" ? 1 : 0) + problematicClass.index;
|
|
428
|
+
const classEnd = classStart + problematicClass.match.length;
|
|
429
|
+
const start = sourceCode.getLocFromIndex(classStart);
|
|
430
|
+
const end = sourceCode.getLocFromIndex(classEnd);
|
|
431
|
+
context.report({
|
|
432
|
+
messageId: "NonPureAnimation",
|
|
433
|
+
loc: {
|
|
434
|
+
start,
|
|
435
|
+
end
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
function containsSlowTailwindClass(classString) {
|
|
447
|
+
return slowTailwindClasses.some((pattern) => pattern.test(classString));
|
|
448
|
+
}
|
|
449
|
+
var createRule9;
|
|
450
|
+
var SlowCssProperty;
|
|
451
|
+
var slowCssProperties;
|
|
452
|
+
var slowCssPropertiesKebab;
|
|
453
|
+
var slowTailwindClasses;
|
|
454
|
+
var slow_css_property_default;
|
|
455
|
+
var init_slow_css_property = __esm(() => {
|
|
456
|
+
createRule9 = import_eslint_utils.RuleCreator(() => {
|
|
457
|
+
return "https://remotion.dev/docs/gpu";
|
|
458
|
+
});
|
|
459
|
+
SlowCssProperty = ["This GPU effect may slow down the render on machines which don't have a GPU.", "See: https://remotion.dev/docs/gpu"].join(`
|
|
460
|
+
`);
|
|
461
|
+
slowCssProperties = /* @__PURE__ */ new Set([
|
|
462
|
+
"boxShadow",
|
|
463
|
+
"textShadow",
|
|
464
|
+
"filter"
|
|
465
|
+
]);
|
|
466
|
+
slowCssPropertiesKebab = /* @__PURE__ */ new Set([
|
|
467
|
+
"box-shadow",
|
|
468
|
+
"text-shadow",
|
|
469
|
+
"filter"
|
|
470
|
+
]);
|
|
471
|
+
slowTailwindClasses = [
|
|
472
|
+
/\bshadow-(?:sm|md|lg|xl|2xl|inner|none|\w+)\b/,
|
|
473
|
+
/\bshadow-\w+(?:\/\d+)?\b/,
|
|
474
|
+
/\bblur-(?:none|sm|md|lg|xl|2xl|3xl|\w+)\b/,
|
|
475
|
+
/\bbrightness-\d+\b/,
|
|
476
|
+
/\bcontrast-\d+\b/,
|
|
477
|
+
/\bdrop-shadow-(?:sm|md|lg|xl|2xl|none|\w+)\b/,
|
|
478
|
+
/\bgrayscale(?:-\d+)?\b/,
|
|
479
|
+
/\bhue-rotate-\d+\b/,
|
|
480
|
+
/\binvert(?:-\d+)?\b/,
|
|
481
|
+
/\bsaturate-\d+\b/,
|
|
482
|
+
/\bsepia(?:-\d+)?\b/,
|
|
483
|
+
/\btext-shadow-\w+\b/
|
|
484
|
+
];
|
|
485
|
+
slow_css_property_default = createRule9({
|
|
486
|
+
name: "slow-css-property",
|
|
487
|
+
meta: {
|
|
488
|
+
type: "problem",
|
|
489
|
+
docs: {
|
|
490
|
+
description: SlowCssProperty,
|
|
491
|
+
recommended: "warn"
|
|
492
|
+
},
|
|
493
|
+
fixable: void 0,
|
|
494
|
+
schema: [],
|
|
495
|
+
messages: { SlowCssProperty }
|
|
496
|
+
},
|
|
497
|
+
defaultOptions: [],
|
|
498
|
+
create: (context) => {
|
|
499
|
+
return {
|
|
500
|
+
Property: (node) => {
|
|
501
|
+
let propertyName;
|
|
502
|
+
if (node.key.type === "Identifier") propertyName = node.key.name;
|
|
503
|
+
else if (node.key.type === "Literal" && typeof node.key.value === "string") propertyName = node.key.value;
|
|
504
|
+
if (!propertyName) return;
|
|
505
|
+
if (slowCssProperties.has(propertyName) || slowCssPropertiesKebab.has(propertyName)) context.report({
|
|
506
|
+
messageId: "SlowCssProperty",
|
|
507
|
+
node
|
|
508
|
+
});
|
|
509
|
+
},
|
|
510
|
+
JSXAttribute: (node) => {
|
|
511
|
+
if (node.name.type === "JSXIdentifier" && node.name.name === "className" && node.value) {
|
|
512
|
+
let classString;
|
|
513
|
+
if (node.value.type === "Literal" && typeof node.value.value === "string") classString = node.value.value;
|
|
514
|
+
else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "Literal" && typeof node.value.expression.value === "string") classString = node.value.expression.value;
|
|
515
|
+
else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "TemplateLiteral") classString = node.value.expression.quasis.map((q) => q.value.cooked || q.value.raw).join(" ");
|
|
516
|
+
if (classString && containsSlowTailwindClass(classString)) context.report({
|
|
517
|
+
messageId: "SlowCssProperty",
|
|
518
|
+
node
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
var createRule10;
|
|
527
|
+
var RelativePathStaticFile;
|
|
528
|
+
var AbsoluteStaticFile;
|
|
529
|
+
var PublicStaticFile;
|
|
530
|
+
var staticfile_no_relative_default;
|
|
531
|
+
var init_staticfile_no_relative = __esm(() => {
|
|
532
|
+
createRule10 = import_eslint_utils.RuleCreator(() => {
|
|
533
|
+
return `https://remotion.dev/docs/staticfile-relative-paths`;
|
|
534
|
+
});
|
|
535
|
+
RelativePathStaticFile = ["Don't pass a relative path to staticFile().", "See: https://remotion.dev/docs/staticfile-relative-paths"].join(`
|
|
536
|
+
`);
|
|
537
|
+
AbsoluteStaticFile = ["Do not pass an absolute path to staticFile().", "See: https://remotion.dev/docs/staticfile-relative-paths"].join("");
|
|
538
|
+
PublicStaticFile = ["Do not prefix your assets with public/.", "See: https://remotion.dev/docs/staticfile-relative-paths"].join("");
|
|
539
|
+
staticfile_no_relative_default = createRule10({
|
|
540
|
+
name: "staticfile-no-relative",
|
|
541
|
+
meta: {
|
|
542
|
+
type: "problem",
|
|
543
|
+
docs: {
|
|
544
|
+
description: RelativePathStaticFile,
|
|
545
|
+
recommended: "warn"
|
|
546
|
+
},
|
|
547
|
+
fixable: void 0,
|
|
548
|
+
schema: [],
|
|
549
|
+
messages: {
|
|
550
|
+
RelativePathStaticFile,
|
|
551
|
+
PublicStaticFile,
|
|
552
|
+
AbsoluteStaticFile
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
defaultOptions: [],
|
|
556
|
+
create: (context) => {
|
|
557
|
+
return { CallExpression: (node) => {
|
|
558
|
+
if (!node) return;
|
|
559
|
+
if (node.type === "CallExpression" && node.callee.type === "Identifier" && node.callee.name === "staticFile") {
|
|
560
|
+
const args = node.arguments;
|
|
561
|
+
if (args.length === 0) return;
|
|
562
|
+
const firstArg = args[0];
|
|
563
|
+
if (firstArg.type === "Literal") {
|
|
564
|
+
const value = firstArg.value;
|
|
565
|
+
if (typeof value !== "string") return;
|
|
566
|
+
if (value.startsWith("./")) context.report({
|
|
567
|
+
messageId: "RelativePathStaticFile",
|
|
568
|
+
node
|
|
569
|
+
});
|
|
570
|
+
if (value.startsWith("../")) context.report({
|
|
571
|
+
messageId: "RelativePathStaticFile",
|
|
572
|
+
node
|
|
573
|
+
});
|
|
574
|
+
if (value.startsWith("public/")) context.report({
|
|
575
|
+
messageId: "PublicStaticFile",
|
|
576
|
+
node
|
|
577
|
+
});
|
|
578
|
+
if (value.startsWith("/Users") || value.startsWith("/home") || value.startsWith("/tmp") || value.startsWith("/etc") || value.startsWith("/opt") || value.startsWith("/var") || value.startsWith("C:") || value.startsWith("D:") || value.startsWith("E:")) context.report({
|
|
579
|
+
messageId: "AbsoluteStaticFile",
|
|
580
|
+
node
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
} };
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
var createRule11;
|
|
589
|
+
var RelativePathStaticFile2;
|
|
590
|
+
var staticfile_no_remote_default;
|
|
591
|
+
var init_staticfile_no_remote = __esm(() => {
|
|
592
|
+
createRule11 = import_eslint_utils.RuleCreator(() => {
|
|
593
|
+
return `https://remotion.dev/docs/staticfile-remote-urls`;
|
|
594
|
+
});
|
|
595
|
+
RelativePathStaticFile2 = ["Don't pass a remote URL to staticFile().", "See: https://remotion.dev/docs/staticfile-remote-urls"].join(`
|
|
596
|
+
`);
|
|
597
|
+
staticfile_no_remote_default = createRule11({
|
|
598
|
+
name: "staticfile-no-remote",
|
|
599
|
+
meta: {
|
|
600
|
+
type: "problem",
|
|
601
|
+
docs: {
|
|
602
|
+
description: RelativePathStaticFile2,
|
|
603
|
+
recommended: "warn"
|
|
604
|
+
},
|
|
605
|
+
fixable: void 0,
|
|
606
|
+
schema: [],
|
|
607
|
+
messages: { RelativePathStaticFile: RelativePathStaticFile2 }
|
|
608
|
+
},
|
|
609
|
+
defaultOptions: [],
|
|
610
|
+
create: (context) => {
|
|
611
|
+
return { CallExpression: (node) => {
|
|
612
|
+
if (!node) return;
|
|
613
|
+
if (node.type === "CallExpression" && node.callee.type === "Identifier" && node.callee.name === "staticFile") {
|
|
614
|
+
const args = node.arguments;
|
|
615
|
+
if (args.length === 0) return;
|
|
616
|
+
const firstArg = args[0];
|
|
617
|
+
if (firstArg.type === "Literal") {
|
|
618
|
+
const value = firstArg.value;
|
|
619
|
+
if (typeof value !== "string") return;
|
|
620
|
+
if (value.startsWith("http://")) context.report({
|
|
621
|
+
messageId: "RelativePathStaticFile",
|
|
622
|
+
node
|
|
623
|
+
});
|
|
624
|
+
if (value.startsWith("https://")) context.report({
|
|
625
|
+
messageId: "RelativePathStaticFile",
|
|
626
|
+
node
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
} };
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
});
|
|
634
|
+
var createRule12;
|
|
635
|
+
var UseGifComponent;
|
|
636
|
+
var use_gif_component_default;
|
|
637
|
+
var init_use_gif_component = __esm(() => {
|
|
638
|
+
createRule12 = import_eslint_utils.RuleCreator(() => {
|
|
639
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
640
|
+
});
|
|
641
|
+
UseGifComponent = [
|
|
642
|
+
"Use the <Gif> component animated GIFs.",
|
|
643
|
+
"See: https://www.remotion.dev/docs/gif.",
|
|
644
|
+
"Ignore this message if this is a non-animated GIF."
|
|
645
|
+
].join(`
|
|
646
|
+
`);
|
|
647
|
+
use_gif_component_default = createRule12({
|
|
648
|
+
name: "use-gif-component",
|
|
649
|
+
meta: {
|
|
650
|
+
type: "problem",
|
|
651
|
+
docs: {
|
|
652
|
+
description: UseGifComponent,
|
|
653
|
+
recommended: "warn"
|
|
654
|
+
},
|
|
655
|
+
fixable: void 0,
|
|
656
|
+
schema: [],
|
|
657
|
+
messages: { UseGifComponent }
|
|
658
|
+
},
|
|
659
|
+
defaultOptions: [],
|
|
660
|
+
create: (context) => {
|
|
661
|
+
return { JSXAttribute: (node) => {
|
|
662
|
+
if (node.type !== "JSXAttribute") return;
|
|
663
|
+
if (node.name.name !== "src") return;
|
|
664
|
+
const parent = node.parent;
|
|
665
|
+
if (!parent) return;
|
|
666
|
+
if (parent.type !== "JSXOpeningElement") return;
|
|
667
|
+
const name = parent.name;
|
|
668
|
+
if (name.type !== "JSXIdentifier") return;
|
|
669
|
+
if (name.name !== "Img" && name.name !== "img") return;
|
|
670
|
+
const value = node.value;
|
|
671
|
+
if (!value) return;
|
|
672
|
+
const stringValue = value && value.type === "JSXExpressionContainer" && value.expression.type === "Literal" ? value.expression.value : value.type === "Literal" ? value.value : null;
|
|
673
|
+
if (typeof stringValue === "string") {
|
|
674
|
+
if (stringValue.includes(".gif")) context.report({
|
|
675
|
+
messageId: "UseGifComponent",
|
|
676
|
+
node
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
if (value.type === "JSXExpressionContainer" && value.expression.type === "CallExpression" && value.expression.callee.type === "Identifier" && value.expression.callee.name === "staticFile") {
|
|
680
|
+
const args = value.expression.arguments;
|
|
681
|
+
if (args.length === 0) return;
|
|
682
|
+
const firstArg = args[0];
|
|
683
|
+
if (firstArg.type === "Literal") {
|
|
684
|
+
const value = firstArg.value;
|
|
685
|
+
if (typeof value !== "string") return;
|
|
686
|
+
if (value.includes(".gif")) context.report({
|
|
687
|
+
messageId: "UseGifComponent",
|
|
688
|
+
node
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
} };
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
});
|
|
696
|
+
var createRule13;
|
|
697
|
+
var ImportConfig = "Update the import to the new V4 location: import {Config} from '@remotion/cli/config'";
|
|
698
|
+
var rule;
|
|
699
|
+
var v4_import_default;
|
|
700
|
+
var init_v4_import = __esm(() => {
|
|
701
|
+
createRule13 = import_eslint_utils.RuleCreator(() => {
|
|
702
|
+
return `https://www.remotion.dev/docs/4-0-migration`;
|
|
703
|
+
});
|
|
704
|
+
rule = createRule13({
|
|
705
|
+
name: "v4-config-import",
|
|
706
|
+
meta: {
|
|
707
|
+
type: "problem",
|
|
708
|
+
docs: {
|
|
709
|
+
description: ImportConfig,
|
|
710
|
+
recommended: "warn"
|
|
711
|
+
},
|
|
712
|
+
fixable: void 0,
|
|
713
|
+
schema: [],
|
|
714
|
+
messages: { ImportConfig }
|
|
715
|
+
},
|
|
716
|
+
defaultOptions: [],
|
|
717
|
+
create: (context) => {
|
|
718
|
+
return { ImportDeclaration: (node) => {
|
|
719
|
+
if (node.source.value !== "remotion") return;
|
|
720
|
+
if (node.specifiers.find((s) => s.type === "ImportSpecifier" && s.imported.name === "Config")) context.report({
|
|
721
|
+
messageId: "ImportConfig",
|
|
722
|
+
node
|
|
723
|
+
});
|
|
724
|
+
} };
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
v4_import_default = rule;
|
|
728
|
+
});
|
|
729
|
+
var createRule14;
|
|
730
|
+
var validNameRegex;
|
|
731
|
+
var InvalidCompositionId = "Composition IDs can only contain a-z, A-Z, 0-9, CJK characters and -.";
|
|
732
|
+
var InvalidFolderName = "Folder names can only contain a-z, A-Z, 0-9, CJK characters and -.";
|
|
733
|
+
var getStringValue = (value) => {
|
|
734
|
+
if (!value) return null;
|
|
735
|
+
if (value.type === "Literal") return typeof value.value === "string" ? value.value : null;
|
|
736
|
+
if (value.type !== "JSXExpressionContainer") return null;
|
|
737
|
+
const { expression } = value;
|
|
738
|
+
if (expression.type === "Literal") return typeof expression.value === "string" ? expression.value : null;
|
|
739
|
+
if (expression.type === "TemplateLiteral" && expression.expressions.length === 0) return expression.quasis[0].value.cooked;
|
|
740
|
+
return null;
|
|
741
|
+
};
|
|
742
|
+
var getJsxElementName = (node) => {
|
|
743
|
+
if (node.type !== "JSXIdentifier") return null;
|
|
744
|
+
return node.name;
|
|
745
|
+
};
|
|
746
|
+
var valid_composition_and_folder_name_default;
|
|
747
|
+
var init_valid_composition_and_folder_name = __esm(() => {
|
|
748
|
+
createRule14 = import_eslint_utils.RuleCreator(() => {
|
|
749
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
750
|
+
});
|
|
751
|
+
validNameRegex = /^([a-zA-Z0-9-\u4E00-\u9FFF])+$/;
|
|
752
|
+
valid_composition_and_folder_name_default = createRule14({
|
|
753
|
+
name: "valid-composition-and-folder-name",
|
|
754
|
+
meta: {
|
|
755
|
+
type: "problem",
|
|
756
|
+
docs: {
|
|
757
|
+
description: "Warns about invalid Remotion composition IDs and folder names.",
|
|
758
|
+
recommended: "warn"
|
|
759
|
+
},
|
|
760
|
+
fixable: void 0,
|
|
761
|
+
schema: [],
|
|
762
|
+
messages: {
|
|
763
|
+
InvalidCompositionId,
|
|
764
|
+
InvalidFolderName
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
defaultOptions: [],
|
|
768
|
+
create: (context) => {
|
|
769
|
+
return { JSXAttribute: (node) => {
|
|
770
|
+
if (node.type !== "JSXAttribute") return;
|
|
771
|
+
if (node.name.type !== "JSXIdentifier") return;
|
|
772
|
+
const parent = node.parent;
|
|
773
|
+
if (!parent || parent.type !== "JSXOpeningElement") return;
|
|
774
|
+
const elementName = getJsxElementName(parent.name);
|
|
775
|
+
if (elementName === null) return;
|
|
776
|
+
const propName = node.name.name;
|
|
777
|
+
const value = getStringValue(node.value);
|
|
778
|
+
if (value === null || validNameRegex.test(value)) return;
|
|
779
|
+
if ((elementName === "Composition" || elementName === "Still") && propName === "id") context.report({
|
|
780
|
+
messageId: "InvalidCompositionId",
|
|
781
|
+
node
|
|
782
|
+
});
|
|
783
|
+
if (elementName === "Folder" && propName === "name") context.report({
|
|
784
|
+
messageId: "InvalidFolderName",
|
|
785
|
+
node
|
|
786
|
+
});
|
|
787
|
+
} };
|
|
788
|
+
}
|
|
789
|
+
});
|
|
790
|
+
});
|
|
791
|
+
var createRule15;
|
|
792
|
+
var VolumeCallback = "Deprecated no-op kept for compatibility. Volume can be animated with regular keyframes.";
|
|
793
|
+
var volume_callback_default;
|
|
794
|
+
var init_volume_callback = __esm(() => {
|
|
795
|
+
createRule15 = import_eslint_utils.RuleCreator(() => {
|
|
796
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
797
|
+
});
|
|
798
|
+
volume_callback_default = createRule15({
|
|
799
|
+
name: "volume-callback",
|
|
800
|
+
meta: {
|
|
801
|
+
type: "problem",
|
|
802
|
+
docs: {
|
|
803
|
+
description: VolumeCallback,
|
|
804
|
+
recommended: "warn"
|
|
805
|
+
},
|
|
806
|
+
fixable: void 0,
|
|
807
|
+
schema: [],
|
|
808
|
+
messages: { VolumeCallback }
|
|
809
|
+
},
|
|
810
|
+
defaultOptions: [],
|
|
811
|
+
create: () => ({})
|
|
812
|
+
});
|
|
813
|
+
});
|
|
814
|
+
var createRule16;
|
|
815
|
+
var NoNativeImgTag = "Prefer the <Img /> tag from 'remotion' package, because it will wait until the image is loaded when you are rendering your video.";
|
|
816
|
+
var NoNativeIFrameTag = "Prefer the <IFrame /> tag from 'remotion' package, because it will wait until the iframe is loaded when you are rendering your video.";
|
|
817
|
+
var NoNativeAudioTag = "Use the <Audio /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.";
|
|
818
|
+
var NoNativeVideoTag = "Use the <Video /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.";
|
|
819
|
+
var warn_native_media_tag_default;
|
|
820
|
+
var init_warn_native_media_tag = __esm(() => {
|
|
821
|
+
createRule16 = import_eslint_utils.RuleCreator(() => {
|
|
822
|
+
return `https://github.com/remotion-dev/remotion`;
|
|
823
|
+
});
|
|
824
|
+
warn_native_media_tag_default = createRule16({
|
|
825
|
+
name: "warn-native-media-tag",
|
|
826
|
+
meta: {
|
|
827
|
+
type: "problem",
|
|
828
|
+
docs: {
|
|
829
|
+
description: NoNativeImgTag,
|
|
830
|
+
recommended: "warn"
|
|
831
|
+
},
|
|
832
|
+
fixable: void 0,
|
|
833
|
+
schema: [],
|
|
834
|
+
messages: {
|
|
835
|
+
NoNativeImgTag,
|
|
836
|
+
NoNativeIFrameTag,
|
|
837
|
+
NoNativeAudioTag,
|
|
838
|
+
NoNativeVideoTag
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
defaultOptions: [],
|
|
842
|
+
create: (context) => {
|
|
843
|
+
return {
|
|
844
|
+
JSXOpeningElement: (node) => {
|
|
845
|
+
if (node.name.type === "JSXIdentifier" && node.name.name === "img") context.report({
|
|
846
|
+
messageId: "NoNativeImgTag",
|
|
847
|
+
node
|
|
848
|
+
});
|
|
849
|
+
if (node.name.type === "JSXIdentifier" && node.name.name === "iframe") context.report({
|
|
850
|
+
messageId: "NoNativeIFrameTag",
|
|
851
|
+
node
|
|
852
|
+
});
|
|
853
|
+
if (node.name.type === "JSXIdentifier" && node.name.name === "video") context.report({
|
|
854
|
+
messageId: "NoNativeVideoTag",
|
|
855
|
+
node
|
|
856
|
+
});
|
|
857
|
+
if (node.name.type === "JSXIdentifier" && node.name.name === "audio") context.report({
|
|
858
|
+
messageId: "NoNativeAudioTag",
|
|
859
|
+
node
|
|
860
|
+
});
|
|
861
|
+
},
|
|
862
|
+
TaggedTemplateExpression: (node) => {
|
|
863
|
+
if (node.tag.type !== "MemberExpression") return;
|
|
864
|
+
if (node.tag.object.type !== "Identifier") return;
|
|
865
|
+
if (node.tag.object.name !== "styled") return;
|
|
866
|
+
if (node.tag.property.type !== "Identifier") return;
|
|
867
|
+
if (node.tag.property.name === "img") context.report({
|
|
868
|
+
messageId: "NoNativeImgTag",
|
|
869
|
+
node
|
|
870
|
+
});
|
|
871
|
+
if (node.tag.property.name === "iframe") context.report({
|
|
872
|
+
messageId: "NoNativeIFrameTag",
|
|
873
|
+
node
|
|
874
|
+
});
|
|
875
|
+
if (node.tag.property.name === "audio") context.report({
|
|
876
|
+
messageId: "NoNativeAudioTag",
|
|
877
|
+
node
|
|
878
|
+
});
|
|
879
|
+
if (node.tag.property.name === "video") context.report({
|
|
880
|
+
messageId: "NoNativeVideoTag",
|
|
881
|
+
node
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
});
|
|
888
|
+
var esm_default = __commonJS(function(exports, module) {
|
|
889
|
+
init_deterministic_randomness();
|
|
890
|
+
init_even_dimensions();
|
|
891
|
+
init_no_background_image();
|
|
892
|
+
init_no_duration_frames_infinity();
|
|
893
|
+
init_no_from_0();
|
|
894
|
+
init_no_object_fit_on_media_video();
|
|
895
|
+
init_no_string_assets();
|
|
896
|
+
init_non_pure_animation();
|
|
897
|
+
init_slow_css_property();
|
|
898
|
+
init_staticfile_no_relative();
|
|
899
|
+
init_staticfile_no_remote();
|
|
900
|
+
init_use_gif_component();
|
|
901
|
+
init_v4_import();
|
|
902
|
+
init_valid_composition_and_folder_name();
|
|
903
|
+
init_volume_callback();
|
|
904
|
+
init_warn_native_media_tag();
|
|
905
|
+
var rules = {
|
|
906
|
+
"warn-native-media-tag": warn_native_media_tag_default,
|
|
907
|
+
"deterministic-randomness": deterministic_randomness_default,
|
|
908
|
+
"no-string-assets": no_string_assets_default,
|
|
909
|
+
"even-dimensions": even_dimensions_default,
|
|
910
|
+
"duration-in-frames": no_duration_frames_infinity_default,
|
|
911
|
+
"from-0": no_from_0_default,
|
|
912
|
+
"volume-callback": volume_callback_default,
|
|
913
|
+
"use-gif-component": use_gif_component_default,
|
|
914
|
+
"staticfile-no-relative": staticfile_no_relative_default,
|
|
915
|
+
"staticfile-no-remote": staticfile_no_remote_default,
|
|
916
|
+
"no-background-image": no_background_image_default,
|
|
917
|
+
"non-pure-animation": non_pure_animation_default,
|
|
918
|
+
"slow-css-property": slow_css_property_default,
|
|
919
|
+
"v4-config-import": v4_import_default,
|
|
920
|
+
"no-object-fit-on-media-video": no_object_fit_on_media_video_default,
|
|
921
|
+
"valid-composition-and-folder-name": valid_composition_and_folder_name_default
|
|
922
|
+
};
|
|
923
|
+
var recommendedRuleConfig = {
|
|
924
|
+
"@remotion/warn-native-media-tag": "error",
|
|
925
|
+
"@remotion/deterministic-randomness": "error",
|
|
926
|
+
"@remotion/no-string-assets": "error",
|
|
927
|
+
"@remotion/even-dimensions": "error",
|
|
928
|
+
"@remotion/duration-in-frames": "error",
|
|
929
|
+
"@remotion/from-0": "error",
|
|
930
|
+
"@remotion/use-gif-component": "error",
|
|
931
|
+
"@remotion/staticfile-no-relative": "error",
|
|
932
|
+
"@remotion/staticfile-no-remote": "error",
|
|
933
|
+
"@remotion/no-background-image": "error",
|
|
934
|
+
"@remotion/non-pure-animation": "warn",
|
|
935
|
+
"@remotion/v4-config-import": "error",
|
|
936
|
+
"@remotion/no-object-fit-on-media-video": "warn",
|
|
937
|
+
"@remotion/valid-composition-and-folder-name": "error"
|
|
938
|
+
};
|
|
939
|
+
module.exports = {
|
|
940
|
+
configs: { recommended: {
|
|
941
|
+
rules: recommendedRuleConfig,
|
|
942
|
+
plugins: ["@remotion"]
|
|
943
|
+
} },
|
|
944
|
+
rules,
|
|
945
|
+
flatPlugin: {
|
|
946
|
+
rules: recommendedRuleConfig,
|
|
947
|
+
plugins: { "@remotion": { rules } }
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
})();
|
|
951
|
+
// src/remotion.ts
|
|
952
|
+
const plugin = upstreamPlugin("@remotion", esm_default, plainRules);
|
|
953
|
+
export { plugin as default };
|
|
954
|
+
|
|
955
|
+
//# sourceMappingURL=remotion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remotion.mjs","names":["ESLintUtils","ESLintUtils2","ESLintUtils3","ESLintUtils4","ESLintUtils5","ESLintUtils6","ESLintUtils7","ESLintUtils8","ESLintUtils9","ESLintUtils10","value","ESLintUtils11","ESLintUtils12","ESLintUtils13","ESLintUtils14","ESLintUtils15","ESLintUtils16","remotion"],"sources":["../../../node_modules/.pnpm/@remotion+eslint-plugin@4.0.541_eslint@9.39.5_jiti@2.6.1_supports-color@7.2.0_/node_modules/@remotion/eslint-plugin/dist/esm/index.mjs","../src/remotion.ts"],"sourcesContent":["var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);\nvar __esm = (fn, res, err) => () => {\n if (fn)\n try {\n res = fn(fn = 0);\n } catch (e) {\n err = [e];\n }\n if (err)\n throw err[0];\n return res;\n};\n\n// src/rules/deterministic-randomness.ts\nimport { ESLintUtils } from \"@typescript-eslint/utils\";\nvar createRule, DeterministicRandomness, deterministic_randomness_default;\nvar init_deterministic_randomness = __esm(() => {\n createRule = ESLintUtils.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n DeterministicRandomness = [\n \"The result of Math.random() will change between frames while in rendering mode.\",\n \"Use the `random()` API from Remotion to get a deterministic pseudorandom value.\",\n \"If you are sure you want a true random value, use `random(null)` to hide this warning.\",\n \"See: https://remotion.dev/docs/using-randomness\"\n ].join(`\n`);\n deterministic_randomness_default = createRule({\n name: \"deterministic-randomness\",\n meta: {\n type: \"problem\",\n docs: {\n description: DeterministicRandomness,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n DeterministicRandomness\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n CallExpression: (node) => {\n const callee = node.callee;\n if (callee.type === \"MemberExpression\") {\n if (callee.object.type === \"Identifier\" && callee.object.name === \"Math\") {\n if (callee.property.type === \"Identifier\" && callee.property.name === \"random\") {\n context.report({\n messageId: \"DeterministicRandomness\",\n node\n });\n }\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/even-dimensions.ts\nimport { ESLintUtils as ESLintUtils2 } from \"@typescript-eslint/utils\";\nvar createRule2, EvenDimensions = \"Videos rendered in H264/H265 codec do not support dimensions that are not divisible by 2. Remotion will round down your dimensions to satisfy this constraint. Ignore this warning if you don't plan on rendering this video with a H264 or H265 codec.\", even_dimensions_default;\nvar init_even_dimensions = __esm(() => {\n createRule2 = ESLintUtils2.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n even_dimensions_default = createRule2({\n name: \"even-dimensions\",\n meta: {\n type: \"problem\",\n docs: {\n description: EvenDimensions,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n EvenDimensions\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXAttribute: (node) => {\n if (node.type !== \"JSXAttribute\") {\n return;\n }\n if (node.name.name !== \"width\" && node.name.name !== \"height\") {\n return;\n }\n const value = node.value;\n if (!value || value.type !== \"JSXExpressionContainer\") {\n return;\n }\n const expression = value.expression;\n if (!expression || expression.type !== \"Literal\") {\n return;\n }\n const stringValue = expression.value;\n if (typeof stringValue !== \"number\") {\n return;\n }\n const parent = node.parent;\n if (!parent) {\n return;\n }\n if (parent.type !== \"JSXOpeningElement\") {\n return;\n }\n const name = parent.name;\n if (name.type !== \"JSXIdentifier\") {\n return;\n }\n if (name.name !== \"Composition\") {\n return;\n }\n if (stringValue % 2 !== 0) {\n context.report({\n messageId: \"EvenDimensions\",\n node\n });\n }\n }\n };\n }\n });\n});\n\n// src/rules/no-background-image.ts\nimport { ESLintUtils as ESLintUtils3 } from \"@typescript-eslint/utils\";\nvar createRule3, BackgroundImage, no_background_image_default;\nvar init_no_background_image = __esm(() => {\n createRule3 = ESLintUtils3.RuleCreator(() => {\n return \"https://remotion.dev/docs/troubleshooting/background-image\";\n });\n BackgroundImage = [\n \"Don't use background-image in Remotion.\",\n \"See: https://remotion.dev/docs/troubleshooting/background-image\"\n ].join(`\n`);\n no_background_image_default = createRule3({\n name: \"no-background-image\",\n meta: {\n type: \"problem\",\n docs: {\n description: BackgroundImage,\n recommended: \"error\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n BackgroundImage\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n Property: (node) => {\n if (node.key.type !== \"Identifier\") {\n return;\n }\n if (node.key.name !== \"backgroundImage\") {\n return;\n }\n if (node.value.type === \"Literal\") {\n const { value } = node.value;\n if (typeof value === \"string\" && value.includes(\"url(\")) {\n context.report({\n messageId: \"BackgroundImage\",\n node\n });\n }\n }\n if (node.value.type === \"TemplateLiteral\") {\n for (const element of node.value.quasis) {\n if (element.type !== \"TemplateElement\") {\n continue;\n }\n if (element.value.raw.includes(\"url(\")) {\n context.report({\n messageId: \"BackgroundImage\",\n node\n });\n }\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/no-duration-frames-infinity.ts\nimport { ESLintUtils as ESLintUtils4 } from \"@typescript-eslint/utils\";\nvar createRule4, DurationInFrames = \"Infinity is now the default, so you can remove the prop.\", no_duration_frames_infinity_default;\nvar init_no_duration_frames_infinity = __esm(() => {\n createRule4 = ESLintUtils4.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n no_duration_frames_infinity_default = createRule4({\n name: \"duration-in-frames\",\n meta: {\n type: \"problem\",\n docs: {\n description: DurationInFrames,\n recommended: \"warn\"\n },\n fixable: \"code\",\n schema: [],\n messages: {\n DurationInFrames\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXAttribute: (node) => {\n if (node.type !== \"JSXAttribute\") {\n return;\n }\n if (node.name.name !== \"durationInFrames\") {\n return;\n }\n const value = node.value;\n if (!value || value.type !== \"JSXExpressionContainer\") {\n return;\n }\n const expression = value.expression;\n if (!expression || expression.type !== \"Identifier\") {\n return;\n }\n const stringValue = expression.name;\n if (typeof stringValue !== \"string\") {\n return;\n }\n const parent = node.parent;\n if (!parent) {\n return;\n }\n if (parent.type !== \"JSXOpeningElement\") {\n return;\n }\n const name = parent.name;\n if (name.type !== \"JSXIdentifier\") {\n return;\n }\n if (name.name !== \"Sequence\") {\n return;\n }\n if (stringValue === \"Infinity\") {\n context.report({\n messageId: \"DurationInFrames\",\n node,\n fix: (fixer) => {\n return fixer.removeRange([node.name.range[0], value.range[1]]);\n }\n });\n }\n }\n };\n }\n });\n});\n\n// src/rules/no-from-0.ts\nimport { ESLintUtils as ESLintUtils5 } from \"@typescript-eslint/utils\";\nvar createRule5, From0 = \"0 is now the default, so you can remove the prop.\", no_from_0_default;\nvar init_no_from_0 = __esm(() => {\n createRule5 = ESLintUtils5.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n no_from_0_default = createRule5({\n name: \"from\",\n meta: {\n type: \"problem\",\n docs: {\n description: From0,\n recommended: \"warn\"\n },\n fixable: \"code\",\n schema: [],\n messages: {\n From0\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXAttribute: (node) => {\n if (node.type !== \"JSXAttribute\") {\n return;\n }\n if (node.name.name !== \"from\") {\n return;\n }\n const value = node.value;\n if (!value || value.type !== \"JSXExpressionContainer\") {\n return;\n }\n const expression = value.expression;\n if (!expression || expression.type !== \"Literal\") {\n return;\n }\n const stringValue = expression.value;\n if (stringValue !== 0) {\n return;\n }\n const parent = node.parent;\n if (!parent) {\n return;\n }\n if (parent.type !== \"JSXOpeningElement\") {\n return;\n }\n const name = parent.name;\n if (name.type !== \"JSXIdentifier\") {\n return;\n }\n if (name.name !== \"Sequence\") {\n return;\n }\n if (stringValue === 0) {\n context.report({\n messageId: \"From0\",\n node,\n fix: (fixer) => {\n return fixer.removeRange([node.name.range[0], value.range[1]]);\n }\n });\n }\n }\n };\n }\n });\n});\n\n// src/rules/no-object-fit-on-media-video.ts\nimport { ESLintUtils as ESLintUtils6 } from \"@typescript-eslint/utils\";\nvar createRule6, NoObjectFitInStyle, NoObjectFitInClassName, objectFitClassPattern, no_object_fit_on_media_video_default;\nvar init_no_object_fit_on_media_video = __esm(() => {\n createRule6 = ESLintUtils6.RuleCreator(() => {\n return \"https://remotion.dev/docs/media/video#objectfit\";\n });\n NoObjectFitInStyle = [\n \"Passing `objectFit` via the `style` prop is not supported for `<Video>` from `@remotion/media`.\",\n \"Use the `objectFit` prop directly instead.\",\n \"See: https://remotion.dev/docs/media/video#objectfit\"\n ].join(`\n`);\n NoObjectFitInClassName = [\n \"Passing an `object-fit` CSS class via `className` is not supported for `<Video>` from `@remotion/media`.\",\n \"Use the `objectFit` prop directly instead.\",\n \"See: https://remotion.dev/docs/media/video#objectfit\"\n ].join(`\n`);\n objectFitClassPattern = /\\bobject-(contain|cover|fill|none|scale-down)\\b/;\n no_object_fit_on_media_video_default = createRule6({\n name: \"no-object-fit-on-media-video\",\n meta: {\n type: \"problem\",\n docs: {\n description: NoObjectFitInStyle,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n NoObjectFitInStyle,\n NoObjectFitInClassName\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXOpeningElement: (node) => {\n if (node.name.type !== \"JSXIdentifier\" || node.name.name !== \"Video\") {\n return;\n }\n for (const attr of node.attributes) {\n if (attr.type !== \"JSXAttribute\") {\n continue;\n }\n if (attr.name.type === \"JSXIdentifier\" && attr.name.name === \"style\" && attr.value) {\n if (attr.value.type === \"JSXExpressionContainer\" && attr.value.expression.type === \"ObjectExpression\") {\n for (const prop of attr.value.expression.properties) {\n if (prop.type !== \"Property\") {\n continue;\n }\n let propertyName;\n if (prop.key.type === \"Identifier\") {\n propertyName = prop.key.name;\n } else if (prop.key.type === \"Literal\" && typeof prop.key.value === \"string\") {\n propertyName = prop.key.value;\n }\n if (propertyName === \"objectFit\" || propertyName === \"object-fit\") {\n context.report({\n messageId: \"NoObjectFitInStyle\",\n node: prop\n });\n }\n }\n }\n }\n if (attr.name.type === \"JSXIdentifier\" && attr.name.name === \"className\" && attr.value) {\n let classString;\n if (attr.value.type === \"Literal\" && typeof attr.value.value === \"string\") {\n classString = attr.value.value;\n } else if (attr.value.type === \"JSXExpressionContainer\" && attr.value.expression.type === \"Literal\" && typeof attr.value.expression.value === \"string\") {\n classString = attr.value.expression.value;\n } else if (attr.value.type === \"JSXExpressionContainer\" && attr.value.expression.type === \"TemplateLiteral\") {\n classString = attr.value.expression.quasis.map((q) => q.value.cooked || q.value.raw).join(\" \");\n }\n if (classString && objectFitClassPattern.test(classString)) {\n context.report({\n messageId: \"NoObjectFitInClassName\",\n node: attr\n });\n }\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/no-string-assets.ts\nimport { ESLintUtils as ESLintUtils7 } from \"@typescript-eslint/utils\";\nvar createRule7, NoStringAssets, no_string_assets_default;\nvar init_no_string_assets = __esm(() => {\n createRule7 = ESLintUtils7.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n NoStringAssets = [\n \"Don't reference local assets by string, use an import statement or staticFile() instead.\",\n \"See: https://www.remotion.dev/docs/assets\"\n ].join(`\n`);\n no_string_assets_default = createRule7({\n name: \"no-string-assets\",\n meta: {\n type: \"problem\",\n docs: {\n description: NoStringAssets,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n NoStringAssets\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXAttribute: (node) => {\n if (node.type !== \"JSXAttribute\") {\n return;\n }\n if (node.name.name !== \"src\") {\n return;\n }\n const value = node.value;\n const insideCurlyBraces = value && value.type === \"JSXExpressionContainer\" && value.expression.type === \"Literal\";\n if (!value || value.type !== \"Literal\" && !insideCurlyBraces) {\n return;\n }\n const stringValue = value && value.type === \"JSXExpressionContainer\" && value.expression.type === \"Literal\" ? value.expression.value : value.type === \"Literal\" ? value.value : null;\n if (typeof stringValue !== \"string\") {\n return;\n }\n const parent = node.parent;\n if (!parent) {\n return;\n }\n if (parent.type !== \"JSXOpeningElement\") {\n return;\n }\n const name = parent.name;\n if (name.type !== \"JSXIdentifier\") {\n return;\n }\n if (name.name === \"Img\" || name.name === \"img\" || name.name === \"Audio\" || name.name === \"audio\" || name.name === \"Video\" || name.name === \"video\" || name.name === \"source\" || name.name === \"Html5Video\" || name.name === \"Html5Audio\") {\n if (stringValue.startsWith(\"http://\")) {\n return;\n }\n if (stringValue.startsWith(\"https://\")) {\n return;\n }\n if (stringValue.startsWith(\"data:\")) {\n return;\n }\n context.report({\n messageId: \"NoStringAssets\",\n node\n });\n }\n }\n };\n }\n });\n});\n\n// src/rules/non-pure-animation.ts\nimport { ESLintUtils as ESLintUtils8 } from \"@typescript-eslint/utils\";\nfunction findProblematicTailwindClass(classString) {\n for (const pattern of nonPureAnimationTailwindClasses) {\n const match = classString.match(pattern);\n if (match) {\n return {\n match: match[0],\n index: match.index\n };\n }\n }\n return null;\n}\nvar createRule8, NonPureAnimation, nonPureAnimationProperties, nonPureAnimationPropertiesKebab, nonPureAnimationTailwindClasses, non_pure_animation_default;\nvar init_non_pure_animation = __esm(() => {\n createRule8 = ESLintUtils8.RuleCreator(() => {\n return \"https://www.remotion.dev/docs/flickering\";\n });\n NonPureAnimation = [\n \"This animation does not run purely off useCurrentFrame() and will lead to flickering.\",\n \"See: https://www.remotion.dev/docs/flickering\"\n ].join(`\n`);\n nonPureAnimationProperties = new Set([\"transition\"]);\n nonPureAnimationPropertiesKebab = new Set([\"transition\"]);\n nonPureAnimationTailwindClasses = [\n /\\btransition-\\w+\\b/,\n /\\btransition\\b/\n ];\n non_pure_animation_default = createRule8({\n name: \"non-pure-animation\",\n meta: {\n type: \"problem\",\n docs: {\n description: NonPureAnimation,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n NonPureAnimation\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n Property: (node) => {\n let propertyName;\n if (node.key.type === \"Identifier\") {\n propertyName = node.key.name;\n } else if (node.key.type === \"Literal\" && typeof node.key.value === \"string\") {\n propertyName = node.key.value;\n }\n if (!propertyName) {\n return;\n }\n const isNonPureProperty = nonPureAnimationProperties.has(propertyName) || nonPureAnimationPropertiesKebab.has(propertyName);\n if (isNonPureProperty) {\n context.report({\n messageId: \"NonPureAnimation\",\n node\n });\n }\n },\n JSXAttribute: (node) => {\n if (node.name.type === \"JSXIdentifier\" && node.name.name === \"className\" && node.value) {\n let classString;\n let valueNode;\n if (node.value.type === \"Literal\" && typeof node.value.value === \"string\") {\n classString = node.value.value;\n valueNode = node.value;\n } else if (node.value.type === \"JSXExpressionContainer\" && node.value.expression.type === \"Literal\" && typeof node.value.expression.value === \"string\") {\n classString = node.value.expression.value;\n valueNode = node.value.expression;\n } else if (node.value.type === \"JSXExpressionContainer\" && node.value.expression.type === \"TemplateLiteral\") {\n const templateLiteral = node.value.expression;\n classString = templateLiteral.quasis.map((q) => q.value.cooked || q.value.raw).join(\" \");\n valueNode = templateLiteral;\n }\n if (classString) {\n const problematicClass = findProblematicTailwindClass(classString);\n if (problematicClass) {\n const sourceCode = \"sourceCode\" in context ? context.sourceCode : context.getSourceCode();\n const valueStart = valueNode.range[0];\n const quoteOffset = valueNode.type === \"Literal\" ? 1 : 0;\n const classStart = valueStart + quoteOffset + problematicClass.index;\n const classEnd = classStart + problematicClass.match.length;\n const start = sourceCode.getLocFromIndex(classStart);\n const end = sourceCode.getLocFromIndex(classEnd);\n context.report({\n messageId: \"NonPureAnimation\",\n loc: {\n start,\n end\n }\n });\n }\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/slow-css-property.ts\nimport { ESLintUtils as ESLintUtils9 } from \"@typescript-eslint/utils\";\nfunction containsSlowTailwindClass(classString) {\n return slowTailwindClasses.some((pattern) => pattern.test(classString));\n}\nvar createRule9, SlowCssProperty, slowCssProperties, slowCssPropertiesKebab, slowTailwindClasses, slow_css_property_default;\nvar init_slow_css_property = __esm(() => {\n createRule9 = ESLintUtils9.RuleCreator(() => {\n return \"https://remotion.dev/docs/gpu\";\n });\n SlowCssProperty = [\n \"This GPU effect may slow down the render on machines which don't have a GPU.\",\n \"See: https://remotion.dev/docs/gpu\"\n ].join(`\n`);\n slowCssProperties = new Set([\"boxShadow\", \"textShadow\", \"filter\"]);\n slowCssPropertiesKebab = new Set([\"box-shadow\", \"text-shadow\", \"filter\"]);\n slowTailwindClasses = [\n /\\bshadow-(?:sm|md|lg|xl|2xl|inner|none|\\w+)\\b/,\n /\\bshadow-\\w+(?:\\/\\d+)?\\b/,\n /\\bblur-(?:none|sm|md|lg|xl|2xl|3xl|\\w+)\\b/,\n /\\bbrightness-\\d+\\b/,\n /\\bcontrast-\\d+\\b/,\n /\\bdrop-shadow-(?:sm|md|lg|xl|2xl|none|\\w+)\\b/,\n /\\bgrayscale(?:-\\d+)?\\b/,\n /\\bhue-rotate-\\d+\\b/,\n /\\binvert(?:-\\d+)?\\b/,\n /\\bsaturate-\\d+\\b/,\n /\\bsepia(?:-\\d+)?\\b/,\n /\\btext-shadow-\\w+\\b/\n ];\n slow_css_property_default = createRule9({\n name: \"slow-css-property\",\n meta: {\n type: \"problem\",\n docs: {\n description: SlowCssProperty,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n SlowCssProperty\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n Property: (node) => {\n let propertyName;\n if (node.key.type === \"Identifier\") {\n propertyName = node.key.name;\n } else if (node.key.type === \"Literal\" && typeof node.key.value === \"string\") {\n propertyName = node.key.value;\n }\n if (!propertyName) {\n return;\n }\n const isSlowProperty = slowCssProperties.has(propertyName) || slowCssPropertiesKebab.has(propertyName);\n if (isSlowProperty) {\n context.report({\n messageId: \"SlowCssProperty\",\n node\n });\n }\n },\n JSXAttribute: (node) => {\n if (node.name.type === \"JSXIdentifier\" && node.name.name === \"className\" && node.value) {\n let classString;\n if (node.value.type === \"Literal\" && typeof node.value.value === \"string\") {\n classString = node.value.value;\n } else if (node.value.type === \"JSXExpressionContainer\" && node.value.expression.type === \"Literal\" && typeof node.value.expression.value === \"string\") {\n classString = node.value.expression.value;\n } else if (node.value.type === \"JSXExpressionContainer\" && node.value.expression.type === \"TemplateLiteral\") {\n const templateLiteral = node.value.expression;\n classString = templateLiteral.quasis.map((q) => q.value.cooked || q.value.raw).join(\" \");\n }\n if (classString && containsSlowTailwindClass(classString)) {\n context.report({\n messageId: \"SlowCssProperty\",\n node\n });\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/staticfile-no-relative.ts\nimport { ESLintUtils as ESLintUtils10 } from \"@typescript-eslint/utils\";\nvar createRule10, RelativePathStaticFile, AbsoluteStaticFile, PublicStaticFile, staticfile_no_relative_default;\nvar init_staticfile_no_relative = __esm(() => {\n createRule10 = ESLintUtils10.RuleCreator(() => {\n return `https://remotion.dev/docs/staticfile-relative-paths`;\n });\n RelativePathStaticFile = [\n \"Don't pass a relative path to staticFile().\",\n \"See: https://remotion.dev/docs/staticfile-relative-paths\"\n ].join(`\n`);\n AbsoluteStaticFile = [\n \"Do not pass an absolute path to staticFile().\",\n \"See: https://remotion.dev/docs/staticfile-relative-paths\"\n ].join(\"\");\n PublicStaticFile = [\n \"Do not prefix your assets with public/.\",\n \"See: https://remotion.dev/docs/staticfile-relative-paths\"\n ].join(\"\");\n staticfile_no_relative_default = createRule10({\n name: \"staticfile-no-relative\",\n meta: {\n type: \"problem\",\n docs: {\n description: RelativePathStaticFile,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n RelativePathStaticFile,\n PublicStaticFile,\n AbsoluteStaticFile\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n CallExpression: (node) => {\n const value = node;\n if (!value) {\n return;\n }\n if (node.type === \"CallExpression\" && node.callee.type === \"Identifier\" && node.callee.name === \"staticFile\") {\n const args = node.arguments;\n if (args.length === 0) {\n return;\n }\n const firstArg = args[0];\n if (firstArg.type === \"Literal\") {\n const value = firstArg.value;\n if (typeof value !== \"string\") {\n return;\n }\n if (value.startsWith(\"./\")) {\n context.report({\n messageId: \"RelativePathStaticFile\",\n node\n });\n }\n if (value.startsWith(\"../\")) {\n context.report({\n messageId: \"RelativePathStaticFile\",\n node\n });\n }\n if (value.startsWith(\"public/\")) {\n context.report({\n messageId: \"PublicStaticFile\",\n node\n });\n }\n if (value.startsWith(\"/Users\") || value.startsWith(\"/home\") || value.startsWith(\"/tmp\") || value.startsWith(\"/etc\") || value.startsWith(\"/opt\") || value.startsWith(\"/var\") || value.startsWith(\"C:\") || value.startsWith(\"D:\") || value.startsWith(\"E:\")) {\n context.report({\n messageId: \"AbsoluteStaticFile\",\n node\n });\n }\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/staticfile-no-remote.ts\nimport { ESLintUtils as ESLintUtils11 } from \"@typescript-eslint/utils\";\nvar createRule11, RelativePathStaticFile2, staticfile_no_remote_default;\nvar init_staticfile_no_remote = __esm(() => {\n createRule11 = ESLintUtils11.RuleCreator(() => {\n return `https://remotion.dev/docs/staticfile-remote-urls`;\n });\n RelativePathStaticFile2 = [\n \"Don't pass a remote URL to staticFile().\",\n \"See: https://remotion.dev/docs/staticfile-remote-urls\"\n ].join(`\n`);\n staticfile_no_remote_default = createRule11({\n name: \"staticfile-no-remote\",\n meta: {\n type: \"problem\",\n docs: {\n description: RelativePathStaticFile2,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n RelativePathStaticFile: RelativePathStaticFile2\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n CallExpression: (node) => {\n const value = node;\n if (!value) {\n return;\n }\n if (node.type === \"CallExpression\" && node.callee.type === \"Identifier\" && node.callee.name === \"staticFile\") {\n const args = node.arguments;\n if (args.length === 0) {\n return;\n }\n const firstArg = args[0];\n if (firstArg.type === \"Literal\") {\n const value = firstArg.value;\n if (typeof value !== \"string\") {\n return;\n }\n if (value.startsWith(\"http://\")) {\n context.report({\n messageId: \"RelativePathStaticFile\",\n node\n });\n }\n if (value.startsWith(\"https://\")) {\n context.report({\n messageId: \"RelativePathStaticFile\",\n node\n });\n }\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/use-gif-component.ts\nimport { ESLintUtils as ESLintUtils12 } from \"@typescript-eslint/utils\";\nvar createRule12, UseGifComponent, use_gif_component_default;\nvar init_use_gif_component = __esm(() => {\n createRule12 = ESLintUtils12.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n UseGifComponent = [\n \"Use the <Gif> component animated GIFs.\",\n \"See: https://www.remotion.dev/docs/gif.\",\n \"Ignore this message if this is a non-animated GIF.\"\n ].join(`\n`);\n use_gif_component_default = createRule12({\n name: \"use-gif-component\",\n meta: {\n type: \"problem\",\n docs: {\n description: UseGifComponent,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n UseGifComponent\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXAttribute: (node) => {\n if (node.type !== \"JSXAttribute\") {\n return;\n }\n if (node.name.name !== \"src\") {\n return;\n }\n const parent = node.parent;\n if (!parent) {\n return;\n }\n if (parent.type !== \"JSXOpeningElement\") {\n return;\n }\n const name = parent.name;\n if (name.type !== \"JSXIdentifier\") {\n return;\n }\n if (name.name !== \"Img\" && name.name !== \"img\") {\n return;\n }\n const value = node.value;\n if (!value) {\n return;\n }\n const stringValue = value && value.type === \"JSXExpressionContainer\" && value.expression.type === \"Literal\" ? value.expression.value : value.type === \"Literal\" ? value.value : null;\n if (typeof stringValue === \"string\") {\n if (stringValue.includes(\".gif\")) {\n context.report({\n messageId: \"UseGifComponent\",\n node\n });\n }\n }\n if (value.type === \"JSXExpressionContainer\" && value.expression.type === \"CallExpression\" && value.expression.callee.type === \"Identifier\" && value.expression.callee.name === \"staticFile\") {\n const args = value.expression.arguments;\n if (args.length === 0) {\n return;\n }\n const firstArg = args[0];\n if (firstArg.type === \"Literal\") {\n const value = firstArg.value;\n if (typeof value !== \"string\") {\n return;\n }\n if (value.includes(\".gif\")) {\n context.report({\n messageId: \"UseGifComponent\",\n node\n });\n }\n }\n }\n }\n };\n }\n });\n});\n\n// src/rules/v4-import.ts\nimport { ESLintUtils as ESLintUtils13 } from \"@typescript-eslint/utils\";\nvar createRule13, ImportConfig = \"Update the import to the new V4 location: import {Config} from '@remotion/cli/config'\", rule, v4_import_default;\nvar init_v4_import = __esm(() => {\n createRule13 = ESLintUtils13.RuleCreator(() => {\n return `https://www.remotion.dev/docs/4-0-migration`;\n });\n rule = createRule13({\n name: \"v4-config-import\",\n meta: {\n type: \"problem\",\n docs: {\n description: ImportConfig,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n ImportConfig\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n ImportDeclaration: (node) => {\n if (node.source.value !== \"remotion\") {\n return;\n }\n const config = node.specifiers.find((s) => s.type === \"ImportSpecifier\" && s.imported.name === \"Config\");\n if (config) {\n context.report({\n messageId: \"ImportConfig\",\n node\n });\n }\n }\n };\n }\n });\n v4_import_default = rule;\n});\n\n// src/rules/valid-composition-and-folder-name.ts\nimport { ESLintUtils as ESLintUtils14 } from \"@typescript-eslint/utils\";\nvar createRule14, validNameRegex, InvalidCompositionId = \"Composition IDs can only contain a-z, A-Z, 0-9, CJK characters and -.\", InvalidFolderName = \"Folder names can only contain a-z, A-Z, 0-9, CJK characters and -.\", getStringValue = (value) => {\n if (!value) {\n return null;\n }\n if (value.type === \"Literal\") {\n return typeof value.value === \"string\" ? value.value : null;\n }\n if (value.type !== \"JSXExpressionContainer\") {\n return null;\n }\n const { expression } = value;\n if (expression.type === \"Literal\") {\n return typeof expression.value === \"string\" ? expression.value : null;\n }\n if (expression.type === \"TemplateLiteral\" && expression.expressions.length === 0) {\n return expression.quasis[0].value.cooked;\n }\n return null;\n}, getJsxElementName = (node) => {\n if (node.type !== \"JSXIdentifier\") {\n return null;\n }\n return node.name;\n}, valid_composition_and_folder_name_default;\nvar init_valid_composition_and_folder_name = __esm(() => {\n createRule14 = ESLintUtils14.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n validNameRegex = /^([a-zA-Z0-9-\\u4E00-\\u9FFF])+$/;\n valid_composition_and_folder_name_default = createRule14({\n name: \"valid-composition-and-folder-name\",\n meta: {\n type: \"problem\",\n docs: {\n description: \"Warns about invalid Remotion composition IDs and folder names.\",\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n InvalidCompositionId,\n InvalidFolderName\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXAttribute: (node) => {\n if (node.type !== \"JSXAttribute\") {\n return;\n }\n if (node.name.type !== \"JSXIdentifier\") {\n return;\n }\n const parent = node.parent;\n if (!parent || parent.type !== \"JSXOpeningElement\") {\n return;\n }\n const elementName = getJsxElementName(parent.name);\n if (elementName === null) {\n return;\n }\n const propName = node.name.name;\n const value = getStringValue(node.value);\n if (value === null || validNameRegex.test(value)) {\n return;\n }\n if ((elementName === \"Composition\" || elementName === \"Still\") && propName === \"id\") {\n context.report({\n messageId: \"InvalidCompositionId\",\n node\n });\n }\n if (elementName === \"Folder\" && propName === \"name\") {\n context.report({\n messageId: \"InvalidFolderName\",\n node\n });\n }\n }\n };\n }\n });\n});\n\n// src/rules/volume-callback.ts\nimport { ESLintUtils as ESLintUtils15 } from \"@typescript-eslint/utils\";\nvar createRule15, VolumeCallback = \"Deprecated no-op kept for compatibility. Volume can be animated with regular keyframes.\", volume_callback_default;\nvar init_volume_callback = __esm(() => {\n createRule15 = ESLintUtils15.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n volume_callback_default = createRule15({\n name: \"volume-callback\",\n meta: {\n type: \"problem\",\n docs: {\n description: VolumeCallback,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n VolumeCallback\n }\n },\n defaultOptions: [],\n create: () => ({})\n });\n});\n\n// src/rules/warn-native-media-tag.ts\nimport { ESLintUtils as ESLintUtils16 } from \"@typescript-eslint/utils\";\nvar createRule16, NoNativeImgTag = \"Prefer the <Img /> tag from 'remotion' package, because it will wait until the image is loaded when you are rendering your video.\", NoNativeIFrameTag = \"Prefer the <IFrame /> tag from 'remotion' package, because it will wait until the iframe is loaded when you are rendering your video.\", NoNativeAudioTag = \"Use the <Audio /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.\", NoNativeVideoTag = \"Use the <Video /> tag from '@remotion/media' package, because it will synchronize with the Remotion timeline.\", warn_native_media_tag_default;\nvar init_warn_native_media_tag = __esm(() => {\n createRule16 = ESLintUtils16.RuleCreator(() => {\n return `https://github.com/remotion-dev/remotion`;\n });\n warn_native_media_tag_default = createRule16({\n name: \"warn-native-media-tag\",\n meta: {\n type: \"problem\",\n docs: {\n description: NoNativeImgTag,\n recommended: \"warn\"\n },\n fixable: undefined,\n schema: [],\n messages: {\n NoNativeImgTag,\n NoNativeIFrameTag,\n NoNativeAudioTag,\n NoNativeVideoTag\n }\n },\n defaultOptions: [],\n create: (context) => {\n return {\n JSXOpeningElement: (node) => {\n if (node.name.type === \"JSXIdentifier\" && node.name.name === \"img\") {\n context.report({\n messageId: \"NoNativeImgTag\",\n node\n });\n }\n if (node.name.type === \"JSXIdentifier\" && node.name.name === \"iframe\") {\n context.report({\n messageId: \"NoNativeIFrameTag\",\n node\n });\n }\n if (node.name.type === \"JSXIdentifier\" && node.name.name === \"video\") {\n context.report({\n messageId: \"NoNativeVideoTag\",\n node\n });\n }\n if (node.name.type === \"JSXIdentifier\" && node.name.name === \"audio\") {\n context.report({\n messageId: \"NoNativeAudioTag\",\n node\n });\n }\n },\n TaggedTemplateExpression: (node) => {\n if (node.tag.type !== \"MemberExpression\") {\n return;\n }\n if (node.tag.object.type !== \"Identifier\") {\n return;\n }\n if (node.tag.object.name !== \"styled\") {\n return;\n }\n if (node.tag.property.type !== \"Identifier\") {\n return;\n }\n if (node.tag.property.name === \"img\") {\n context.report({\n messageId: \"NoNativeImgTag\",\n node\n });\n }\n if (node.tag.property.name === \"iframe\") {\n context.report({\n messageId: \"NoNativeIFrameTag\",\n node\n });\n }\n if (node.tag.property.name === \"audio\") {\n context.report({\n messageId: \"NoNativeAudioTag\",\n node\n });\n }\n if (node.tag.property.name === \"video\") {\n context.report({\n messageId: \"NoNativeVideoTag\",\n node\n });\n }\n }\n };\n }\n });\n});\n\n// src/index.ts\nvar require_src = __commonJS(function(exports, module) {\n init_deterministic_randomness();\n init_even_dimensions();\n init_no_background_image();\n init_no_duration_frames_infinity();\n init_no_from_0();\n init_no_object_fit_on_media_video();\n init_no_string_assets();\n init_non_pure_animation();\n init_slow_css_property();\n init_staticfile_no_relative();\n init_staticfile_no_remote();\n init_use_gif_component();\n init_v4_import();\n init_valid_composition_and_folder_name();\n init_volume_callback();\n init_warn_native_media_tag();\n var rules = {\n \"warn-native-media-tag\": warn_native_media_tag_default,\n \"deterministic-randomness\": deterministic_randomness_default,\n \"no-string-assets\": no_string_assets_default,\n \"even-dimensions\": even_dimensions_default,\n \"duration-in-frames\": no_duration_frames_infinity_default,\n \"from-0\": no_from_0_default,\n \"volume-callback\": volume_callback_default,\n \"use-gif-component\": use_gif_component_default,\n \"staticfile-no-relative\": staticfile_no_relative_default,\n \"staticfile-no-remote\": staticfile_no_remote_default,\n \"no-background-image\": no_background_image_default,\n \"non-pure-animation\": non_pure_animation_default,\n \"slow-css-property\": slow_css_property_default,\n \"v4-config-import\": v4_import_default,\n \"no-object-fit-on-media-video\": no_object_fit_on_media_video_default,\n \"valid-composition-and-folder-name\": valid_composition_and_folder_name_default\n };\n var recommendedRuleConfig = {\n \"@remotion/warn-native-media-tag\": \"error\",\n \"@remotion/deterministic-randomness\": \"error\",\n \"@remotion/no-string-assets\": \"error\",\n \"@remotion/even-dimensions\": \"error\",\n \"@remotion/duration-in-frames\": \"error\",\n \"@remotion/from-0\": \"error\",\n \"@remotion/use-gif-component\": \"error\",\n \"@remotion/staticfile-no-relative\": \"error\",\n \"@remotion/staticfile-no-remote\": \"error\",\n \"@remotion/no-background-image\": \"error\",\n \"@remotion/non-pure-animation\": \"warn\",\n \"@remotion/v4-config-import\": \"error\",\n \"@remotion/no-object-fit-on-media-video\": \"warn\",\n \"@remotion/valid-composition-and-folder-name\": \"error\"\n };\n var configs = {\n recommended: {\n rules: recommendedRuleConfig,\n plugins: [\"@remotion\"]\n }\n };\n var flatPlugin = {\n rules: recommendedRuleConfig,\n plugins: {\n \"@remotion\": {\n rules\n }\n }\n };\n module.exports = {\n configs,\n rules,\n flatPlugin\n };\n});\nexport default require_src();\n","import remotion from \"@remotion/eslint-plugin\";\n\nimport { plainRules, upstreamPlugin } from \"./upstream-plugin.ts\";\nimport type { UpstreamPlugin } from \"./upstream-plugin.ts\";\n\ntype ConfigName = \"recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\"@remotion\", remotion, plainRules);\n\nexport type { ConfigName };\nexport default plugin;\n"],"ignoreList":[0],"mappings":";;;AAcsD,6BAAA;AAdtD,IAAI,cAAc,IAAI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WAAW;MACX;KACF,CAAC;IAEL;GACF;EACF;CACF,CAAC;AACH,CAAC;AA0ED,IAAA,cAvEkB,WAAW,SAAS,SAAS,QAAQ;CACrD,8BAA8B;CAC9B,qBAAqB;CACrB,yBAAyB;CACzB,iCAAiC;CACjC,eAAe;CACf,kCAAkC;CAClC,sBAAsB;CACtB,wBAAwB;CACxB,uBAAuB;CACvB,4BAA4B;CAC5B,0BAA0B;CAC1B,uBAAuB;CACvB,eAAe;CACf,uCAAuC;CACvC,qBAAqB;CACrB,2BAA2B;CAC3B,IAAI,QAAQ;EACV,yBAAyB;EACzB,4BAA4B;EAC5B,oBAAoB;EACpB,mBAAmB;EACnB,sBAAsB;EACtB,UAAU;EACV,mBAAmB;EACnB,qBAAqB;EACrB,0BAA0B;EAC1B,wBAAwB;EACxB,uBAAuB;EACvB,sBAAsB;EACtB,qBAAqB;EACrB,oBAAoB;EACpB,gCAAgC;EAChC,qCAAqC;CACvC;CACA,IAAI,wBAAwB;EAC1B,mCAAmC;EACnC,sCAAsC;EACtC,8BAA8B;EAC9B,6BAA6B;EAC7B,gCAAgC;EAChC,oBAAoB;EACpB,+BAA+B;EAC/B,oCAAoC;EACpC,kCAAkC;EAClC,iCAAiC;EACjC,gCAAgC;EAChC,8BAA8B;EAC9B,0CAA0C;EAC1C,+CAA+C;CACjD;CAeA,OAAO,UAAU;EACf,SAAA,EAdA,aAAa;GACX,OAAO;GACP,SAAS,CAAC,WAAW;EACvB,EAWM;EACN;EACA,YAAA;GAVA,OAAO;GACP,SAAS,EACP,aAAa,EACX,MACF,EACF;EAKS;CACX;AACF,CACe,CAAA,CAAY;;AC3uC3B,MAAM,SAAqC,eAAe,aAAaC,aAAU,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r_masseater/oxlint-typed-rules",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Run ESLint rules that need type information as oxlint JS plugins on TypeScript 7, including TanStack Start's React Server Component rules, TanStack Query, TanStack Router, Drizzle and ESLint React.",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "Run ESLint rules that need type information as oxlint JS plugins on TypeScript 7, including TanStack Start's React Server Component rules, TanStack Query, TanStack Router, Drizzle, Remotion and ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"drizzle",
|
|
7
7
|
"eslint",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"oxlint",
|
|
10
10
|
"oxlint-plugin",
|
|
11
11
|
"react",
|
|
12
|
+
"remotion",
|
|
12
13
|
"tanstack-query",
|
|
13
14
|
"tanstack-router",
|
|
14
15
|
"tanstack-start",
|
|
@@ -42,6 +43,10 @@
|
|
|
42
43
|
"types": "./dist/react.d.mts",
|
|
43
44
|
"default": "./dist/react.mjs"
|
|
44
45
|
},
|
|
46
|
+
"./remotion": {
|
|
47
|
+
"types": "./dist/remotion.d.mts",
|
|
48
|
+
"default": "./dist/remotion.mjs"
|
|
49
|
+
},
|
|
45
50
|
"./tanstack-query": {
|
|
46
51
|
"types": "./dist/tanstack-query.d.mts",
|
|
47
52
|
"default": "./dist/tanstack-query.mjs"
|
|
@@ -68,6 +73,7 @@
|
|
|
68
73
|
"@effect/platform-node": "4.1.2",
|
|
69
74
|
"@effect/vitest": "4.1.2",
|
|
70
75
|
"@eslint-react/eslint-plugin": "5.28.8",
|
|
76
|
+
"@remotion/eslint-plugin": "4.0.541",
|
|
71
77
|
"@size-limit/file": "14.3.0",
|
|
72
78
|
"@tanstack/eslint-plugin-query": "5.105.3",
|
|
73
79
|
"@tanstack/eslint-plugin-router": "1.162.0",
|
|
@@ -111,6 +117,11 @@
|
|
|
111
117
|
"path": "dist/drizzle.mjs",
|
|
112
118
|
"limit": "2172 B"
|
|
113
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"name": "remotion",
|
|
122
|
+
"path": "dist/remotion.mjs",
|
|
123
|
+
"limit": "5263 B"
|
|
124
|
+
},
|
|
114
125
|
{
|
|
115
126
|
"name": "core",
|
|
116
127
|
"path": [
|
|
@@ -118,7 +129,8 @@
|
|
|
118
129
|
"!dist/react.mjs",
|
|
119
130
|
"!dist/tanstack-query.mjs",
|
|
120
131
|
"!dist/tanstack-router.mjs",
|
|
121
|
-
"!dist/drizzle.mjs"
|
|
132
|
+
"!dist/drizzle.mjs",
|
|
133
|
+
"!dist/remotion.mjs"
|
|
122
134
|
],
|
|
123
135
|
"limit": "30078 B"
|
|
124
136
|
}
|