@remotion/eslint-config 4.0.0-webhook.26 → 4.0.0

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/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",
@@ -342,7 +310,6 @@ const getRules = (typescript) => {
342
310
  "always",
343
311
  {
344
312
  // Workaround to allow class fields to not have lines between them.
345
- // TODO: Get ESLint to add an option to ignore class fields.
346
313
  exceptAfterSingleLine: true,
347
314
  },
348
315
  ],
@@ -422,7 +389,6 @@ const getRules = (typescript) => {
422
389
  {
423
390
  // `array` is disabled because it forces destructuring on
424
391
  // stupid stuff like `foo.bar = process.argv[2];`
425
- // TODO: Open ESLint issue about this
426
392
  VariableDeclarator: {
427
393
  array: false,
428
394
  object: true,
@@ -448,13 +414,6 @@ const getRules = (typescript) => {
448
414
  ],
449
415
  "react/button-has-type": "error",
450
416
  "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
417
  "react/no-access-state-in-setstate": "error",
459
418
  "react/no-children-prop": "error",
460
419
  "react/no-danger": "error",
@@ -474,8 +433,6 @@ const getRules = (typescript) => {
474
433
  },
475
434
  ],
476
435
  "react/no-this-in-sfc": "error",
477
- "react/no-unescaped-entities": "error",
478
- "react/no-unknown-property": "error",
479
436
  "react/no-unsafe": "error",
480
437
  "react/no-unused-prop-types": "error",
481
438
  "react/no-unused-state": "error",
@@ -531,7 +488,6 @@ const getRules = (typescript) => {
531
488
  "react/react-in-jsx-scope": "off",
532
489
  "react/jsx-key": "off",
533
490
  "react/jsx-no-target-blank": "off",
534
- "react/prop-types": "off",
535
491
  // The following rules are handled by typescript-eslint
536
492
  ...(typescript
537
493
  ? {
@@ -541,8 +497,26 @@ const getRules = (typescript) => {
541
497
  // Using `require` is useful for importing PNG sequences: require('frame' + frame + '.png')
542
498
  "@typescript-eslint/no-var-requires": "off",
543
499
  }
544
- : {}),
545
- // In Video.tsx we encourage using fragment for just a single composition
500
+ : {
501
+ "no-undef": [
502
+ "error",
503
+ {
504
+ typeof: true,
505
+ },
506
+ ],
507
+ "no-unused-vars": [
508
+ "error",
509
+ {
510
+ vars: "all",
511
+ args: "after-used",
512
+ ignoreRestSiblings: true,
513
+ argsIgnorePattern: /^_/.source,
514
+ caughtErrors: "all",
515
+ caughtErrorsIgnorePattern: /^_$/.source,
516
+ },
517
+ ],
518
+ }),
519
+ // In Root.tsx we encourage using fragment for just a single composition
546
520
  // since we intend to add more compositions later and you should then use a fragment.
547
521
  "react/jsx-no-useless-fragment": "off",
548
522
  // This is generally okay because on every frame, there will be a full rerender anyway!
@@ -553,7 +527,6 @@ const getRules = (typescript) => {
553
527
  imports: auto_import_rules_1.autoImports,
554
528
  },
555
529
  ],
556
- "@typescript-eslint/explicit-module-boundary-types": "off",
557
530
  };
558
531
  };
559
532
  (0, patch_eslint_1.allowESLintShareableConfig)();
File without changes
File without changes
package/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "@remotion/eslint-config",
3
- "version": "4.0.0-webhook.26+c8e41db11",
3
+ "version": "4.0.0",
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
- "@remotion/eslint-plugin": "4.0.0-webhook.26+c8e41db11",
20
- "@typescript-eslint/eslint-plugin": "5.19.0",
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.29.4",
24
- "eslint-plugin-react-hooks": "4.4.0"
18
+ "eslint-plugin-react": "7.32.2",
19
+ "eslint-plugin-react-hooks": "4.6.0",
20
+ "@remotion/eslint-plugin": "4.0.0"
25
21
  },
26
22
  "peerDependencies": {
27
23
  "eslint": ">=7.15.0"
28
24
  },
29
25
  "devDependencies": {
30
- "@types/node": "17.0.17",
31
- "eslint": "8.13.0",
32
- "typescript": "^4.7.0"
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
- "gitHead": "c8e41db114d645c5183edbf016a22b733243dce2"
46
- }
40
+ "scripts": {
41
+ "build": "tsc -d",
42
+ "watch": "tsc -w"
43
+ }
44
+ }