@remotion/eslint-config 4.0.0-webhook.27 → 4.1.0-alpha2
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.md +8 -8
- package/dist/auto-import-rules.d.ts +1 -0
- package/dist/auto-import-rules.js +2 -1
- package/dist/index.d.ts +1105 -309
- package/dist/index.js +20 -45
- package/dist/patch-eslint.d.ts +0 -0
- package/dist/patch-eslint.js +0 -0
- package/package.json +14 -16
package/dist/index.js
CHANGED
|
@@ -86,8 +86,6 @@ const getRules = (typescript) => {
|
|
|
86
86
|
"wrap-iife": "off",
|
|
87
87
|
"wrap-regex": "off",
|
|
88
88
|
"yield-star-spacing": "off",
|
|
89
|
-
"@babel/object-curly-spacing": "off",
|
|
90
|
-
"@babel/semi": "off",
|
|
91
89
|
"@typescript-eslint/brace-style": "off",
|
|
92
90
|
"@typescript-eslint/comma-dangle": "off",
|
|
93
91
|
"@typescript-eslint/comma-spacing": "off",
|
|
@@ -102,19 +100,6 @@ const getRules = (typescript) => {
|
|
|
102
100
|
"@typescript-eslint/space-before-function-paren": "off",
|
|
103
101
|
"@typescript-eslint/space-infix-ops": "off",
|
|
104
102
|
"@typescript-eslint/type-annotation-spacing": "off",
|
|
105
|
-
"babel/object-curly-spacing": "off",
|
|
106
|
-
"babel/semi": "off",
|
|
107
|
-
"flowtype/boolean-style": "off",
|
|
108
|
-
"flowtype/delimiter-dangle": "off",
|
|
109
|
-
"flowtype/generic-spacing": "off",
|
|
110
|
-
"flowtype/object-type-curly-spacing": "off",
|
|
111
|
-
"flowtype/object-type-delimiter": "off",
|
|
112
|
-
"flowtype/quotes": "off",
|
|
113
|
-
"flowtype/semi": "off",
|
|
114
|
-
"flowtype/space-after-type-colon": "off",
|
|
115
|
-
"flowtype/space-before-generic-bracket": "off",
|
|
116
|
-
"flowtype/space-before-type-colon": "off",
|
|
117
|
-
"flowtype/union-intersection-spacing": "off",
|
|
118
103
|
"react/jsx-child-element-spacing": "off",
|
|
119
104
|
"react/jsx-closing-bracket-location": "off",
|
|
120
105
|
"react/jsx-closing-tag-location": "off",
|
|
@@ -287,23 +272,6 @@ const getRules = (typescript) => {
|
|
|
287
272
|
"no-restricted-globals": ["error", "event"],
|
|
288
273
|
"no-shadow-restricted-names": "error",
|
|
289
274
|
"no-undef-init": "error",
|
|
290
|
-
"no-undef": [
|
|
291
|
-
"error",
|
|
292
|
-
{
|
|
293
|
-
typeof: true,
|
|
294
|
-
},
|
|
295
|
-
],
|
|
296
|
-
"no-unused-vars": [
|
|
297
|
-
"error",
|
|
298
|
-
{
|
|
299
|
-
vars: "all",
|
|
300
|
-
args: "after-used",
|
|
301
|
-
ignoreRestSiblings: true,
|
|
302
|
-
argsIgnorePattern: /^_/.source,
|
|
303
|
-
caughtErrors: "all",
|
|
304
|
-
caughtErrorsIgnorePattern: /^_$/.source,
|
|
305
|
-
},
|
|
306
|
-
],
|
|
307
275
|
"no-buffer-constructor": "error",
|
|
308
276
|
"no-restricted-imports": [
|
|
309
277
|
"error",
|
|
@@ -448,13 +416,6 @@ const getRules = (typescript) => {
|
|
|
448
416
|
],
|
|
449
417
|
"react/button-has-type": "error",
|
|
450
418
|
"react/default-props-match-prop-types": "error",
|
|
451
|
-
"react/function-component-definition": [
|
|
452
|
-
"error",
|
|
453
|
-
{
|
|
454
|
-
namedComponents: "arrow-function",
|
|
455
|
-
unnamedComponents: "arrow-function",
|
|
456
|
-
},
|
|
457
|
-
],
|
|
458
419
|
"react/no-access-state-in-setstate": "error",
|
|
459
420
|
"react/no-children-prop": "error",
|
|
460
421
|
"react/no-danger": "error",
|
|
@@ -474,8 +435,6 @@ const getRules = (typescript) => {
|
|
|
474
435
|
},
|
|
475
436
|
],
|
|
476
437
|
"react/no-this-in-sfc": "error",
|
|
477
|
-
"react/no-unescaped-entities": "error",
|
|
478
|
-
"react/no-unknown-property": "error",
|
|
479
438
|
"react/no-unsafe": "error",
|
|
480
439
|
"react/no-unused-prop-types": "error",
|
|
481
440
|
"react/no-unused-state": "error",
|
|
@@ -531,7 +490,6 @@ const getRules = (typescript) => {
|
|
|
531
490
|
"react/react-in-jsx-scope": "off",
|
|
532
491
|
"react/jsx-key": "off",
|
|
533
492
|
"react/jsx-no-target-blank": "off",
|
|
534
|
-
"react/prop-types": "off",
|
|
535
493
|
// The following rules are handled by typescript-eslint
|
|
536
494
|
...(typescript
|
|
537
495
|
? {
|
|
@@ -541,8 +499,26 @@ const getRules = (typescript) => {
|
|
|
541
499
|
// Using `require` is useful for importing PNG sequences: require('frame' + frame + '.png')
|
|
542
500
|
"@typescript-eslint/no-var-requires": "off",
|
|
543
501
|
}
|
|
544
|
-
: {
|
|
545
|
-
|
|
502
|
+
: {
|
|
503
|
+
"no-undef": [
|
|
504
|
+
"error",
|
|
505
|
+
{
|
|
506
|
+
typeof: true,
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
"no-unused-vars": [
|
|
510
|
+
"error",
|
|
511
|
+
{
|
|
512
|
+
vars: "all",
|
|
513
|
+
args: "after-used",
|
|
514
|
+
ignoreRestSiblings: true,
|
|
515
|
+
argsIgnorePattern: /^_/.source,
|
|
516
|
+
caughtErrors: "all",
|
|
517
|
+
caughtErrorsIgnorePattern: /^_$/.source,
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
}),
|
|
521
|
+
// In Root.tsx we encourage using fragment for just a single composition
|
|
546
522
|
// since we intend to add more compositions later and you should then use a fragment.
|
|
547
523
|
"react/jsx-no-useless-fragment": "off",
|
|
548
524
|
// This is generally okay because on every frame, there will be a full rerender anyway!
|
|
@@ -553,7 +529,6 @@ const getRules = (typescript) => {
|
|
|
553
529
|
imports: auto_import_rules_1.autoImports,
|
|
554
530
|
},
|
|
555
531
|
],
|
|
556
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
557
532
|
};
|
|
558
533
|
};
|
|
559
534
|
(0, patch_eslint_1.allowESLintShareableConfig)();
|
package/dist/patch-eslint.d.ts
CHANGED
|
File without changes
|
package/dist/patch-eslint.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0-alpha2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc -d",
|
|
8
|
-
"watch": "tsc -w"
|
|
9
|
-
},
|
|
10
6
|
"files": [
|
|
11
7
|
"dist"
|
|
12
8
|
],
|
|
@@ -16,31 +12,33 @@
|
|
|
16
12
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
17
13
|
"license": "ISC",
|
|
18
14
|
"dependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@typescript-eslint/
|
|
21
|
-
"@typescript-eslint/parser": "5.19.0",
|
|
15
|
+
"@typescript-eslint/eslint-plugin": "5.59.9",
|
|
16
|
+
"@typescript-eslint/parser": "5.59.9",
|
|
22
17
|
"eslint-plugin-10x": "1.5.2",
|
|
23
|
-
"eslint-plugin-react": "7.
|
|
24
|
-
"eslint-plugin-react-hooks": "4.
|
|
18
|
+
"eslint-plugin-react": "7.32.2",
|
|
19
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
20
|
+
"@remotion/eslint-plugin": "4.1.0-alpha2"
|
|
25
21
|
},
|
|
26
22
|
"peerDependencies": {
|
|
27
23
|
"eslint": ">=7.15.0"
|
|
28
24
|
},
|
|
29
25
|
"devDependencies": {
|
|
30
|
-
"@types/node": "
|
|
31
|
-
"eslint": "8.
|
|
32
|
-
"typescript": "
|
|
26
|
+
"@types/node": "18.14.6",
|
|
27
|
+
"eslint": "8.42.0",
|
|
28
|
+
"typescript": "4.9.5"
|
|
33
29
|
},
|
|
34
30
|
"keywords": [
|
|
35
31
|
"remotion",
|
|
36
32
|
"ffmpeg",
|
|
37
33
|
"video",
|
|
38
34
|
"react",
|
|
39
|
-
"puppeteer",
|
|
40
35
|
"player"
|
|
41
36
|
],
|
|
42
37
|
"publishConfig": {
|
|
43
38
|
"access": "public"
|
|
44
39
|
},
|
|
45
|
-
"
|
|
46
|
-
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsc -d",
|
|
42
|
+
"watch": "tsc -w"
|
|
43
|
+
}
|
|
44
|
+
}
|