@remotion/eslint-plugin 3.0.0-lambda.400 → 3.0.0-lambda.413
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[33m@remotion/eslint-plugin:build: [0mcache hit, replaying output [2mb3bee5feb7a41416[0m
|
|
2
|
+
[33m@remotion/eslint-plugin:build: [0m
|
|
3
|
+
[33m@remotion/eslint-plugin:build: [0m> @remotion/eslint-plugin@2.6.11 build /Users/jonathanburger/remotion/packages/eslint-plugin
|
|
4
|
+
[33m@remotion/eslint-plugin:build: [0m> tsc -d
|
|
5
|
+
[33m@remotion/eslint-plugin:build: [0m
|
package/LICENSE.md
CHANGED
|
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
|
|
|
7
7
|
|
|
8
8
|
## Free license
|
|
9
9
|
|
|
10
|
-
Copyright ©
|
|
10
|
+
Copyright © 2022 [Jonny Burger](https://jonny.io)
|
|
11
11
|
|
|
12
12
|
### Eligibility
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ The software is provided "as is", without warranty of any kind, express or impli
|
|
|
32
32
|
|
|
33
33
|
### Support
|
|
34
34
|
|
|
35
|
-
Support is provided on a best-we-can-do basis via GitHub Issues.
|
|
35
|
+
Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
36
36
|
|
|
37
37
|
## Company license
|
|
38
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-string-assets.d.ts","sourceRoot":"","sources":["../../src/rules/no-string-assets.ts"],"names":[],"mappings":";AAeA,
|
|
1
|
+
{"version":3,"file":"no-string-assets.d.ts","sourceRoot":"","sources":["../../src/rules/no-string-assets.ts"],"names":[],"mappings":";AAeA,wBAmFG"}
|
|
@@ -33,10 +33,20 @@ exports.default = createRule({
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
const value = node.value;
|
|
36
|
-
|
|
36
|
+
// src={"some string"}
|
|
37
|
+
const insideCurlyBraces = value &&
|
|
38
|
+
value.type === "JSXExpressionContainer" &&
|
|
39
|
+
value.expression.type === "Literal";
|
|
40
|
+
if (!value || (value.type !== "Literal" && !insideCurlyBraces)) {
|
|
37
41
|
return;
|
|
38
42
|
}
|
|
39
|
-
const stringValue = value
|
|
43
|
+
const stringValue = value &&
|
|
44
|
+
value.type === "JSXExpressionContainer" &&
|
|
45
|
+
value.expression.type === "Literal"
|
|
46
|
+
? value.expression.value
|
|
47
|
+
: value.type === "Literal"
|
|
48
|
+
? value.value
|
|
49
|
+
: null;
|
|
40
50
|
if (typeof stringValue !== "string") {
|
|
41
51
|
return;
|
|
42
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-string-assets.js","sourceRoot":"","sources":["../../src/rules/no-string-assets.ts"],"names":[],"mappings":";;AAAA,oDAAuD;AAEvD,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;IAClD,OAAO,0CAA0C,CAAC;AACpD,CAAC,CAAC,CAAC;AAMH,MAAM,cAAc,GAAG;IACrB,0FAA0F;IAC1F,2CAA2C;CAC5C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,kBAAe,UAAU,CAAsB;IAC7C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,cAAc,EAAE,cAAc;SAC/B;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE;QAClB,OAAO;YACL,YAA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ACD,IAAI,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;wBACtC,OAAO;qBACR;oBACD,IAAI,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;wBACnC,OAAO;qBACR;oBACD,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,gBAAgB;wBAC3B,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/eslint-plugin",
|
|
3
|
-
"version": "3.0.0-lambda.
|
|
3
|
+
"version": "3.0.0-lambda.413+d8d5466af",
|
|
4
4
|
"description": "A set of rules helping you avoid common pitfalls in Remotion.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -d",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"typescript": "^4.5.5"
|
|
22
22
|
},
|
|
23
23
|
"private": false,
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "d8d5466af401313364ee1a209ff3ea89c24d1b8a"
|
|
25
25
|
}
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
[32m@remotion/eslint-plugin:test: [0mcache hit, replaying output [2m58b1a7f5757d89fc[0m
|
|
2
|
-
[32m@remotion/eslint-plugin:test: [0m
|
|
3
|
-
[32m@remotion/eslint-plugin:test: [0m> @remotion/eslint-plugin@2.6.7 test /Users/jonathanburger/remotion/packages/eslint-plugin
|
|
4
|
-
[32m@remotion/eslint-plugin:test: [0m> jest
|
|
5
|
-
[32m@remotion/eslint-plugin:test: [0m
|
|
6
|
-
[32m@remotion/eslint-plugin:test: [0mwatchman warning: Recrawled this watch 45 times, most recently because:
|
|
7
|
-
[32m@remotion/eslint-plugin:test: [0mMustScanSubDirs UserDroppedTo resolve, please review the information on
|
|
8
|
-
[32m@remotion/eslint-plugin:test: [0mhttps://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
|
|
9
|
-
[32m@remotion/eslint-plugin:test: [0mTo clear this warning, run:
|
|
10
|
-
[32m@remotion/eslint-plugin:test: [0m`watchman watch-del '/Users/jonathanburger/remotion' ; watchman watch-project '/Users/jonathanburger/remotion'`
|
|
11
|
-
[32m@remotion/eslint-plugin:test: [0m
|
|
12
|
-
[32m@remotion/eslint-plugin:test: [0mPASS src/tests/no-mp4-import.test.ts (37.191 s)
|
|
13
|
-
[32m@remotion/eslint-plugin:test: [0mPASS src/tests/volume-callback.test.ts (38.252 s)
|
|
14
|
-
[32m@remotion/eslint-plugin:test: [0mPASS src/tests/no-duration-frames-infinity.test.ts (38.646 s)
|
|
15
|
-
[32m@remotion/eslint-plugin:test: [0mPASS src/tests/warn-native-image-tag.test.ts (38.51 s)
|
|
16
|
-
[32m@remotion/eslint-plugin:test: [0mPASS src/tests/even-dimensions.test.ts (38.766 s)
|
|
17
|
-
[32m@remotion/eslint-plugin:test: [0mPASS src/tests/no-math-random.test.ts (38.949 s)
|
|
18
|
-
[32m@remotion/eslint-plugin:test: [0mPASS src/tests/no-string-assets.test.ts (40.023 s)
|
|
19
|
-
[32m@remotion/eslint-plugin:test: [0m
|
|
20
|
-
[32m@remotion/eslint-plugin:test: [0mTest Suites: 7 passed, 7 total
|
|
21
|
-
[32m@remotion/eslint-plugin:test: [0mTests: 38 passed, 38 total
|
|
22
|
-
[32m@remotion/eslint-plugin:test: [0mSnapshots: 0 total
|
|
23
|
-
[32m@remotion/eslint-plugin:test: [0mTime: 41.514 s
|
|
24
|
-
[32m@remotion/eslint-plugin:test: [0mRan all test suites.
|