@remotion/eslint-config 4.0.252 → 4.0.254
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/README.md +1 -1
- package/dist/index.d.ts +0 -176
- package/dist/index.js +1 -9
- package/dist/patch-eslint.js +0 -2
- package/package.json +9 -11
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @remotion/eslint-config
|
|
2
2
|
|
|
3
|
-
Default configuration for Remotion templates
|
|
3
|
+
Default configuration for Remotion templates (ESLint <= 8)
|
|
4
4
|
|
|
5
5
|
[](https://npmcharts.com/compare/@remotion/eslint-config?minimal=true)
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -21,49 +21,6 @@ declare const _default: {
|
|
|
21
21
|
rules: {
|
|
22
22
|
'react/jsx-no-useless-fragment': string;
|
|
23
23
|
'react/no-array-index-key': string;
|
|
24
|
-
'10x/auto-import': (string | {
|
|
25
|
-
imports: {
|
|
26
|
-
useRef: string;
|
|
27
|
-
useEffect: string;
|
|
28
|
-
useState: string;
|
|
29
|
-
useCallback: string;
|
|
30
|
-
useMemo: string;
|
|
31
|
-
useReducer: string;
|
|
32
|
-
useCurrentFrame: string;
|
|
33
|
-
useVideoConfig: string;
|
|
34
|
-
spring: string;
|
|
35
|
-
measureSpring: string;
|
|
36
|
-
random: string;
|
|
37
|
-
interpolate: string;
|
|
38
|
-
interpolateColors: string;
|
|
39
|
-
Easing: string;
|
|
40
|
-
getInputProps: string;
|
|
41
|
-
getStaticFiles: string;
|
|
42
|
-
watchStaticFiles: string;
|
|
43
|
-
continueRender: string;
|
|
44
|
-
delayRender: string;
|
|
45
|
-
AbsoluteFill: string;
|
|
46
|
-
Sequence: string;
|
|
47
|
-
Composition: string;
|
|
48
|
-
Audio: string;
|
|
49
|
-
Video: string;
|
|
50
|
-
OffthreadVideo: string;
|
|
51
|
-
Series: string;
|
|
52
|
-
Still: string;
|
|
53
|
-
Freeze: string;
|
|
54
|
-
Loop: string;
|
|
55
|
-
staticFile: string;
|
|
56
|
-
Config: string;
|
|
57
|
-
Img: string;
|
|
58
|
-
IFrame: string;
|
|
59
|
-
Folder: string;
|
|
60
|
-
useCurrentScale: string;
|
|
61
|
-
VERSION: string;
|
|
62
|
-
watchStaticFile: string;
|
|
63
|
-
z: string;
|
|
64
|
-
styled: string;
|
|
65
|
-
};
|
|
66
|
-
})[];
|
|
67
24
|
'no-unused-vars': string;
|
|
68
25
|
'no-undef': string;
|
|
69
26
|
'no-shadow': string;
|
|
@@ -432,56 +389,12 @@ declare const _default: {
|
|
|
432
389
|
'react-hooks/exhaustive-deps': string;
|
|
433
390
|
'react/jsx-no-constructed-context-values': string;
|
|
434
391
|
'no-console': string;
|
|
435
|
-
'10x/react-in-scope': string;
|
|
436
392
|
'react/react-in-jsx-scope': string;
|
|
437
393
|
'react/jsx-key': string;
|
|
438
394
|
'react/jsx-no-target-blank': string;
|
|
439
395
|
} | {
|
|
440
396
|
'react/jsx-no-useless-fragment': string;
|
|
441
397
|
'react/no-array-index-key': string;
|
|
442
|
-
'10x/auto-import': (string | {
|
|
443
|
-
imports: {
|
|
444
|
-
useRef: string;
|
|
445
|
-
useEffect: string;
|
|
446
|
-
useState: string;
|
|
447
|
-
useCallback: string;
|
|
448
|
-
useMemo: string;
|
|
449
|
-
useReducer: string;
|
|
450
|
-
useCurrentFrame: string;
|
|
451
|
-
useVideoConfig: string;
|
|
452
|
-
spring: string;
|
|
453
|
-
measureSpring: string;
|
|
454
|
-
random: string;
|
|
455
|
-
interpolate: string;
|
|
456
|
-
interpolateColors: string;
|
|
457
|
-
Easing: string;
|
|
458
|
-
getInputProps: string;
|
|
459
|
-
getStaticFiles: string;
|
|
460
|
-
watchStaticFiles: string;
|
|
461
|
-
continueRender: string;
|
|
462
|
-
delayRender: string;
|
|
463
|
-
AbsoluteFill: string;
|
|
464
|
-
Sequence: string;
|
|
465
|
-
Composition: string;
|
|
466
|
-
Audio: string;
|
|
467
|
-
Video: string;
|
|
468
|
-
OffthreadVideo: string;
|
|
469
|
-
Series: string;
|
|
470
|
-
Still: string;
|
|
471
|
-
Freeze: string;
|
|
472
|
-
Loop: string;
|
|
473
|
-
staticFile: string;
|
|
474
|
-
Config: string;
|
|
475
|
-
Img: string;
|
|
476
|
-
IFrame: string;
|
|
477
|
-
Folder: string;
|
|
478
|
-
useCurrentScale: string;
|
|
479
|
-
VERSION: string;
|
|
480
|
-
watchStaticFile: string;
|
|
481
|
-
z: string;
|
|
482
|
-
styled: string;
|
|
483
|
-
};
|
|
484
|
-
})[];
|
|
485
398
|
'no-undef': (string | {
|
|
486
399
|
typeof: boolean;
|
|
487
400
|
})[];
|
|
@@ -857,7 +770,6 @@ declare const _default: {
|
|
|
857
770
|
'react-hooks/exhaustive-deps': string;
|
|
858
771
|
'react/jsx-no-constructed-context-values': string;
|
|
859
772
|
'no-console': string;
|
|
860
|
-
'10x/react-in-scope': string;
|
|
861
773
|
'react/react-in-jsx-scope': string;
|
|
862
774
|
'react/jsx-key': string;
|
|
863
775
|
'react/jsx-no-target-blank': string;
|
|
@@ -866,49 +778,6 @@ declare const _default: {
|
|
|
866
778
|
rules: {
|
|
867
779
|
'react/jsx-no-useless-fragment': string;
|
|
868
780
|
'react/no-array-index-key': string;
|
|
869
|
-
'10x/auto-import': (string | {
|
|
870
|
-
imports: {
|
|
871
|
-
useRef: string;
|
|
872
|
-
useEffect: string;
|
|
873
|
-
useState: string;
|
|
874
|
-
useCallback: string;
|
|
875
|
-
useMemo: string;
|
|
876
|
-
useReducer: string;
|
|
877
|
-
useCurrentFrame: string;
|
|
878
|
-
useVideoConfig: string;
|
|
879
|
-
spring: string;
|
|
880
|
-
measureSpring: string;
|
|
881
|
-
random: string;
|
|
882
|
-
interpolate: string;
|
|
883
|
-
interpolateColors: string;
|
|
884
|
-
Easing: string;
|
|
885
|
-
getInputProps: string;
|
|
886
|
-
getStaticFiles: string;
|
|
887
|
-
watchStaticFiles: string;
|
|
888
|
-
continueRender: string;
|
|
889
|
-
delayRender: string;
|
|
890
|
-
AbsoluteFill: string;
|
|
891
|
-
Sequence: string;
|
|
892
|
-
Composition: string;
|
|
893
|
-
Audio: string;
|
|
894
|
-
Video: string;
|
|
895
|
-
OffthreadVideo: string;
|
|
896
|
-
Series: string;
|
|
897
|
-
Still: string;
|
|
898
|
-
Freeze: string;
|
|
899
|
-
Loop: string;
|
|
900
|
-
staticFile: string;
|
|
901
|
-
Config: string;
|
|
902
|
-
Img: string;
|
|
903
|
-
IFrame: string;
|
|
904
|
-
Folder: string;
|
|
905
|
-
useCurrentScale: string;
|
|
906
|
-
VERSION: string;
|
|
907
|
-
watchStaticFile: string;
|
|
908
|
-
z: string;
|
|
909
|
-
styled: string;
|
|
910
|
-
};
|
|
911
|
-
})[];
|
|
912
781
|
'no-unused-vars': string;
|
|
913
782
|
'no-undef': string;
|
|
914
783
|
'no-shadow': string;
|
|
@@ -1277,56 +1146,12 @@ declare const _default: {
|
|
|
1277
1146
|
'react-hooks/exhaustive-deps': string;
|
|
1278
1147
|
'react/jsx-no-constructed-context-values': string;
|
|
1279
1148
|
'no-console': string;
|
|
1280
|
-
'10x/react-in-scope': string;
|
|
1281
1149
|
'react/react-in-jsx-scope': string;
|
|
1282
1150
|
'react/jsx-key': string;
|
|
1283
1151
|
'react/jsx-no-target-blank': string;
|
|
1284
1152
|
} | {
|
|
1285
1153
|
'react/jsx-no-useless-fragment': string;
|
|
1286
1154
|
'react/no-array-index-key': string;
|
|
1287
|
-
'10x/auto-import': (string | {
|
|
1288
|
-
imports: {
|
|
1289
|
-
useRef: string;
|
|
1290
|
-
useEffect: string;
|
|
1291
|
-
useState: string;
|
|
1292
|
-
useCallback: string;
|
|
1293
|
-
useMemo: string;
|
|
1294
|
-
useReducer: string;
|
|
1295
|
-
useCurrentFrame: string;
|
|
1296
|
-
useVideoConfig: string;
|
|
1297
|
-
spring: string;
|
|
1298
|
-
measureSpring: string;
|
|
1299
|
-
random: string;
|
|
1300
|
-
interpolate: string;
|
|
1301
|
-
interpolateColors: string;
|
|
1302
|
-
Easing: string;
|
|
1303
|
-
getInputProps: string;
|
|
1304
|
-
getStaticFiles: string;
|
|
1305
|
-
watchStaticFiles: string;
|
|
1306
|
-
continueRender: string;
|
|
1307
|
-
delayRender: string;
|
|
1308
|
-
AbsoluteFill: string;
|
|
1309
|
-
Sequence: string;
|
|
1310
|
-
Composition: string;
|
|
1311
|
-
Audio: string;
|
|
1312
|
-
Video: string;
|
|
1313
|
-
OffthreadVideo: string;
|
|
1314
|
-
Series: string;
|
|
1315
|
-
Still: string;
|
|
1316
|
-
Freeze: string;
|
|
1317
|
-
Loop: string;
|
|
1318
|
-
staticFile: string;
|
|
1319
|
-
Config: string;
|
|
1320
|
-
Img: string;
|
|
1321
|
-
IFrame: string;
|
|
1322
|
-
Folder: string;
|
|
1323
|
-
useCurrentScale: string;
|
|
1324
|
-
VERSION: string;
|
|
1325
|
-
watchStaticFile: string;
|
|
1326
|
-
z: string;
|
|
1327
|
-
styled: string;
|
|
1328
|
-
};
|
|
1329
|
-
})[];
|
|
1330
1155
|
'no-undef': (string | {
|
|
1331
1156
|
typeof: boolean;
|
|
1332
1157
|
})[];
|
|
@@ -1702,7 +1527,6 @@ declare const _default: {
|
|
|
1702
1527
|
'react-hooks/exhaustive-deps': string;
|
|
1703
1528
|
'react/jsx-no-constructed-context-values': string;
|
|
1704
1529
|
'no-console': string;
|
|
1705
|
-
'10x/react-in-scope': string;
|
|
1706
1530
|
'react/react-in-jsx-scope': string;
|
|
1707
1531
|
'react/jsx-key': string;
|
|
1708
1532
|
'react/jsx-no-target-blank': string;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const auto_import_rules_1 = require("./auto-import-rules");
|
|
3
2
|
const patch_eslint_1 = require("./patch-eslint");
|
|
4
3
|
const baseExtends = ['eslint:recommended', 'plugin:@remotion/recommended'];
|
|
5
4
|
const getRules = (typescript) => {
|
|
@@ -465,7 +464,6 @@ const getRules = (typescript) => {
|
|
|
465
464
|
// Turning off rules that are too strict or don't apply to Remotion
|
|
466
465
|
'react/jsx-no-constructed-context-values': 'off',
|
|
467
466
|
'no-console': 'off',
|
|
468
|
-
'10x/react-in-scope': 'off',
|
|
469
467
|
'react/react-in-jsx-scope': 'off',
|
|
470
468
|
'react/jsx-key': 'off',
|
|
471
469
|
'react/jsx-no-target-blank': 'off',
|
|
@@ -502,12 +500,6 @@ const getRules = (typescript) => {
|
|
|
502
500
|
'react/jsx-no-useless-fragment': 'off',
|
|
503
501
|
// This is generally okay because on every frame, there will be a full rerender anyway!
|
|
504
502
|
'react/no-array-index-key': 'off',
|
|
505
|
-
'10x/auto-import': [
|
|
506
|
-
'error',
|
|
507
|
-
{
|
|
508
|
-
imports: auto_import_rules_1.autoImports,
|
|
509
|
-
},
|
|
510
|
-
],
|
|
511
503
|
};
|
|
512
504
|
};
|
|
513
505
|
(0, patch_eslint_1.allowESLintShareableConfig)();
|
|
@@ -517,7 +509,7 @@ module.exports = {
|
|
|
517
509
|
es6: true,
|
|
518
510
|
jest: true,
|
|
519
511
|
},
|
|
520
|
-
plugins: ['react', 'react-hooks', '@typescript-eslint', '
|
|
512
|
+
plugins: ['react', 'react-hooks', '@typescript-eslint', '@remotion'],
|
|
521
513
|
extends: baseExtends,
|
|
522
514
|
parser: require.resolve('@typescript-eslint/parser'),
|
|
523
515
|
parserOptions: {
|
package/dist/patch-eslint.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* eslint-disable max-depth */
|
|
3
2
|
// Taken from https://github.com/microsoft/rushstack/blob/main/eslint/eslint-patch/src/modern-module-resolution.ts
|
|
4
3
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -38,7 +37,6 @@ const allowESLintShareableConfig = () => {
|
|
|
38
37
|
let eslintFolder;
|
|
39
38
|
// Probe for the ESLint >=8.0.0 layout:
|
|
40
39
|
for (let currentModule = module;;) {
|
|
41
|
-
// eslint-disable-next-line no-negated-condition
|
|
42
40
|
if (!eslintrcBundlePath) {
|
|
43
41
|
if (currentModule.filename.endsWith('eslintrc.cjs')) {
|
|
44
42
|
// For ESLint >=8.0.0, all @eslint/eslintrc code is bundled at this path:
|
package/package.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-config"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/eslint-config",
|
|
6
|
-
"version": "4.0.
|
|
7
|
-
"description": "Default configuration for Remotion templates",
|
|
6
|
+
"version": "4.0.254",
|
|
7
|
+
"description": "Default configuration for Remotion templates (ESLint <= 8)",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
@@ -14,20 +14,18 @@
|
|
|
14
14
|
},
|
|
15
15
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
16
16
|
"license": "ISC",
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
19
|
-
"@typescript-eslint/parser": "6.21.0",
|
|
20
|
-
"eslint-plugin-10x": "1.5.2",
|
|
21
|
-
"eslint-plugin-react": "7.37.2",
|
|
22
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
23
|
-
"@remotion/eslint-plugin": "4.0.252"
|
|
24
|
-
},
|
|
17
|
+
"dependencies": {},
|
|
25
18
|
"peerDependencies": {
|
|
26
19
|
"eslint": ">=7.15.0"
|
|
27
20
|
},
|
|
28
21
|
"devDependencies": {
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
23
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
24
|
+
"eslint-plugin-react": "7.37.4",
|
|
25
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
29
26
|
"eslint": "9.14.0",
|
|
30
|
-
"@remotion/eslint-
|
|
27
|
+
"@remotion/eslint-plugin": "4.0.254",
|
|
28
|
+
"@remotion/eslint-config-internal": "4.0.254"
|
|
31
29
|
},
|
|
32
30
|
"keywords": [
|
|
33
31
|
"remotion",
|