@remotion/eslint-config 4.0.0-alpha13 → 4.0.0-alpha14

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +908 -104
  2. package/dist/index.js +19 -36
  3. package/package.json +8 -8
package/dist/index.d.ts CHANGED
@@ -59,20 +59,10 @@ declare const _default: {
59
59
  styled: string;
60
60
  };
61
61
  })[];
62
- "@typescript-eslint/explicit-module-boundary-types": string;
63
- "no-unused-vars": string | (string | {
64
- vars: string;
65
- args: string;
66
- ignoreRestSiblings: boolean;
67
- argsIgnorePattern: string;
68
- caughtErrors: string;
69
- caughtErrorsIgnorePattern: string;
70
- })[];
71
- "no-undef": string | (string | {
72
- typeof: boolean;
73
- })[];
74
- "no-shadow"?: string | undefined;
75
- "@typescript-eslint/no-var-requires"?: string | undefined;
62
+ "no-unused-vars": string;
63
+ "no-undef": string;
64
+ "no-shadow": string;
65
+ "@typescript-eslint/no-var-requires": string;
76
66
  curly: number;
77
67
  "lines-around-comment": number;
78
68
  "max-len": number;
@@ -154,8 +144,6 @@ declare const _default: {
154
144
  "wrap-iife": string;
155
145
  "wrap-regex": string;
156
146
  "yield-star-spacing": string;
157
- "@babel/object-curly-spacing": string;
158
- "@babel/semi": string;
159
147
  "@typescript-eslint/brace-style": string;
160
148
  "@typescript-eslint/comma-dangle": string;
161
149
  "@typescript-eslint/comma-spacing": string;
@@ -170,19 +158,6 @@ declare const _default: {
170
158
  "@typescript-eslint/space-before-function-paren": string;
171
159
  "@typescript-eslint/space-infix-ops": string;
172
160
  "@typescript-eslint/type-annotation-spacing": string;
173
- "babel/object-curly-spacing": string;
174
- "babel/semi": string;
175
- "flowtype/boolean-style": string;
176
- "flowtype/delimiter-dangle": string;
177
- "flowtype/generic-spacing": string;
178
- "flowtype/object-type-curly-spacing": string;
179
- "flowtype/object-type-delimiter": string;
180
- "flowtype/quotes": string;
181
- "flowtype/semi": string;
182
- "flowtype/space-after-type-colon": string;
183
- "flowtype/space-before-generic-bracket": string;
184
- "flowtype/space-before-type-colon": string;
185
- "flowtype/union-intersection-spacing": string;
186
161
  "react/jsx-child-element-spacing": string;
187
162
  "react/jsx-closing-bracket-location": string;
188
163
  "react/jsx-closing-tag-location": string;
@@ -423,7 +398,6 @@ declare const _default: {
423
398
  noTemplateLiterals: boolean;
424
399
  })[];
425
400
  "react/no-this-in-sfc": string;
426
- "react/no-unknown-property": string;
427
401
  "react/no-unsafe": string;
428
402
  "react/no-unused-prop-types": string;
429
403
  "react/no-unused-state": string;
@@ -466,64 +440,911 @@ declare const _default: {
466
440
  "react/react-in-jsx-scope": string;
467
441
  "react/jsx-key": string;
468
442
  "react/jsx-no-target-blank": string;
469
- "react/prop-types": string;
470
- };
471
- }[];
472
- rules: {
473
- "react/jsx-no-useless-fragment": string;
474
- "react/no-array-index-key": string;
475
- "10x/auto-import": (string | {
476
- imports: {
477
- useRef: string;
478
- useEffect: string;
479
- useState: string;
480
- useCallback: string;
481
- useMemo: string;
482
- useReducer: string;
483
- useCurrentFrame: string;
484
- useVideoConfig: string;
485
- spring: string;
486
- measureSpring: string;
487
- random: string;
488
- interpolate: string;
489
- interpolateColors: string;
490
- Easing: string;
491
- getInputProps: string;
492
- continueRender: string;
493
- delayRender: string;
494
- AbsoluteFill: string;
495
- Sequence: string;
496
- Composition: string;
497
- Audio: string;
498
- Video: string;
499
- OffthreadVideo: string;
500
- Series: string;
501
- Still: string;
502
- Freeze: string;
503
- Loop: string;
504
- staticFile: string;
505
- Config: string;
506
- Img: string;
507
- IFrame: string;
508
- Folder: string;
509
- z: string;
510
- styled: string;
511
- };
512
- })[];
513
- "@typescript-eslint/explicit-module-boundary-types": string;
514
- "no-unused-vars": string | (string | {
515
- vars: string;
516
- args: string;
517
- ignoreRestSiblings: boolean;
518
- argsIgnorePattern: string;
519
- caughtErrors: string;
520
- caughtErrorsIgnorePattern: string;
521
- })[];
522
- "no-undef": string | (string | {
523
- typeof: boolean;
443
+ } | {
444
+ "react/jsx-no-useless-fragment": string;
445
+ "react/no-array-index-key": string;
446
+ "10x/auto-import": (string | {
447
+ imports: {
448
+ useRef: string;
449
+ useEffect: string;
450
+ useState: string;
451
+ useCallback: string;
452
+ useMemo: string;
453
+ useReducer: string;
454
+ useCurrentFrame: string;
455
+ useVideoConfig: string;
456
+ spring: string;
457
+ measureSpring: string;
458
+ random: string;
459
+ interpolate: string;
460
+ interpolateColors: string;
461
+ Easing: string;
462
+ getInputProps: string;
463
+ continueRender: string;
464
+ delayRender: string;
465
+ AbsoluteFill: string;
466
+ Sequence: string;
467
+ Composition: string;
468
+ Audio: string;
469
+ Video: string;
470
+ OffthreadVideo: string;
471
+ Series: string;
472
+ Still: string;
473
+ Freeze: string;
474
+ Loop: string;
475
+ staticFile: string;
476
+ Config: string;
477
+ Img: string;
478
+ IFrame: string;
479
+ Folder: string;
480
+ z: string;
481
+ styled: string;
482
+ };
483
+ })[];
484
+ "no-undef": (string | {
485
+ typeof: boolean;
486
+ })[];
487
+ "no-unused-vars": (string | {
488
+ vars: string;
489
+ args: string;
490
+ ignoreRestSiblings: boolean;
491
+ argsIgnorePattern: string;
492
+ caughtErrors: string;
493
+ caughtErrorsIgnorePattern: string;
494
+ })[];
495
+ curly: number;
496
+ "lines-around-comment": number;
497
+ "max-len": number;
498
+ "no-confusing-arrow": number;
499
+ "no-mixed-operators": number;
500
+ "no-tabs": number;
501
+ "no-unexpected-multiline": number;
502
+ quotes: number;
503
+ "@typescript-eslint/quotes": number;
504
+ "babel/quotes": number;
505
+ "array-bracket-newline": string;
506
+ "array-bracket-spacing": string;
507
+ "array-element-newline": string;
508
+ "arrow-parens": string;
509
+ "arrow-spacing": string;
510
+ "block-spacing": string;
511
+ "brace-style": string;
512
+ "comma-dangle": string;
513
+ "comma-spacing": string;
514
+ "comma-style": string;
515
+ "computed-property-spacing": string;
516
+ "dot-location": string;
517
+ "eol-last": string;
518
+ "func-call-spacing": string;
519
+ "function-call-argument-newline": string;
520
+ "function-paren-newline": string;
521
+ "generator-star": string;
522
+ "generator-star-spacing": string;
523
+ "implicit-arrow-linebreak": string;
524
+ indent: string;
525
+ "jsx-quotes": string;
526
+ "key-spacing": string;
527
+ "keyword-spacing": string;
528
+ "linebreak-style": string;
529
+ "multiline-ternary": string;
530
+ "newline-per-chained-call": string;
531
+ "new-parens": string;
532
+ "no-arrow-condition": string;
533
+ "no-comma-dangle": string;
534
+ "no-extra-parens": string;
535
+ "no-extra-semi": string;
536
+ "no-floating-decimal": string;
537
+ "no-mixed-spaces-and-tabs": string;
538
+ "no-multi-spaces": string;
539
+ "no-multiple-empty-lines": string;
540
+ "no-reserved-keys": string;
541
+ "no-space-before-semi": string;
542
+ "no-trailing-spaces": string;
543
+ "no-whitespace-before-property": string;
544
+ "no-wrap-func": string;
545
+ "nonblock-statement-body-position": string;
546
+ "object-curly-newline": string;
547
+ "object-curly-spacing": string;
548
+ "object-property-newline": string;
549
+ "one-var-declaration-per-line": string;
550
+ "operator-linebreak": string;
551
+ "padded-blocks": string;
552
+ "quote-props": string;
553
+ "rest-spread-spacing": string;
554
+ semi: string;
555
+ "semi-spacing": string;
556
+ "semi-style": string;
557
+ "space-after-function-name": string;
558
+ "space-after-keywords": string;
559
+ "space-before-blocks": string;
560
+ "space-before-function-paren": string;
561
+ "space-before-function-parentheses": string;
562
+ "space-before-keywords": string;
563
+ "space-in-brackets": string;
564
+ "space-in-parens": string;
565
+ "space-infix-ops": string;
566
+ "space-return-throw-case": string;
567
+ "space-unary-ops": string;
568
+ "space-unary-word-ops": string;
569
+ "switch-colon-spacing": string;
570
+ "template-curly-spacing": string;
571
+ "template-tag-spacing": string;
572
+ "unicode-bom": string;
573
+ "wrap-iife": string;
574
+ "wrap-regex": string;
575
+ "yield-star-spacing": string;
576
+ "@typescript-eslint/brace-style": string;
577
+ "@typescript-eslint/comma-dangle": string;
578
+ "@typescript-eslint/comma-spacing": string;
579
+ "@typescript-eslint/func-call-spacing": string;
580
+ "@typescript-eslint/indent": string;
581
+ "@typescript-eslint/keyword-spacing": string;
582
+ "@typescript-eslint/member-delimiter-style": string;
583
+ "@typescript-eslint/no-extra-parens": string;
584
+ "@typescript-eslint/no-extra-semi": string;
585
+ "@typescript-eslint/object-curly-spacing": string;
586
+ "@typescript-eslint/semi": string;
587
+ "@typescript-eslint/space-before-function-paren": string;
588
+ "@typescript-eslint/space-infix-ops": string;
589
+ "@typescript-eslint/type-annotation-spacing": string;
590
+ "react/jsx-child-element-spacing": string;
591
+ "react/jsx-closing-bracket-location": string;
592
+ "react/jsx-closing-tag-location": string;
593
+ "react/jsx-curly-newline": string;
594
+ "react/jsx-curly-spacing": string;
595
+ "react/jsx-equals-spacing": string;
596
+ "react/jsx-first-prop-new-line": string;
597
+ "react/jsx-indent": string;
598
+ "react/jsx-indent-props": string;
599
+ "react/jsx-max-props-per-line": string;
600
+ "react/jsx-newline": string;
601
+ "react/jsx-one-expression-per-line": string;
602
+ "react/jsx-props-no-multi-spaces": string;
603
+ "react/jsx-tag-spacing": string;
604
+ "react/jsx-wrap-multilines": string;
605
+ "for-direction": string;
606
+ "getter-return": string;
607
+ "no-async-promise-executor": string;
608
+ "no-compare-neg-zero": string;
609
+ "no-cond-assign": string;
610
+ "no-constant-condition": string;
611
+ "no-control-regex": string;
612
+ "no-debugger": string;
613
+ "no-dupe-args": string;
614
+ "no-dupe-else-if": string;
615
+ "no-dupe-keys": string;
616
+ "no-duplicate-case": string;
617
+ "no-empty-character-class": string;
618
+ "no-empty": (string | {
619
+ allowEmptyCatch: boolean;
620
+ })[];
621
+ "no-ex-assign": string;
622
+ "no-extra-boolean-cast": string;
623
+ "no-func-assign": string;
624
+ "no-import-assign": string;
625
+ "no-inner-declarations": string;
626
+ "no-invalid-regexp": string;
627
+ "no-irregular-whitespace": string;
628
+ "no-loss-of-precision": string;
629
+ "no-misleading-character-class": string;
630
+ "no-obj-calls": string;
631
+ "no-promise-executor-return": string;
632
+ "no-prototype-builtins": string;
633
+ "no-regex-spaces": string;
634
+ "no-setter-return": string;
635
+ "no-sparse-arrays": string;
636
+ "no-template-curly-in-string": string;
637
+ "no-unreachable": string;
638
+ "no-unreachable-loop": string;
639
+ "no-unsafe-finally": string;
640
+ "no-unsafe-negation": string;
641
+ "no-unsafe-optional-chaining": (string | {
642
+ disallowArithmeticOperators: boolean;
643
+ })[];
644
+ "no-useless-backreference": string;
645
+ "use-isnan": string;
646
+ "valid-typeof": (string | {
647
+ requireStringLiterals: boolean;
648
+ })[];
649
+ "accessor-pairs": (string | {
650
+ enforceForClassMembers: boolean;
651
+ })[];
652
+ "array-callback-return": (string | {
653
+ allowImplicit: boolean;
654
+ })[];
655
+ "block-scoped-var": string;
656
+ complexity: string;
657
+ "default-case": string;
658
+ "default-case-last": string;
659
+ "default-param-last": string;
660
+ "dot-notation": string;
661
+ eqeqeq: string;
662
+ "grouped-accessor-pairs": string[];
663
+ "guard-for-in": string;
664
+ "no-alert": string;
665
+ "no-caller": string;
666
+ "no-case-declarations": string;
667
+ "no-constructor-return": string;
668
+ "no-else-return": (string | {
669
+ allowElseIf: boolean;
670
+ })[];
671
+ "no-empty-pattern": string;
672
+ "no-eq-null": string;
673
+ "no-eval": string;
674
+ "no-extend-native": string;
675
+ "no-extra-bind": string;
676
+ "no-extra-label": string;
677
+ "no-fallthrough": string;
678
+ "no-global-assign": string;
679
+ "no-implicit-coercion": string;
680
+ "no-implicit-globals": string;
681
+ "no-implied-eval": string;
682
+ "no-iterator": string;
683
+ "no-labels": string;
684
+ "no-lone-blocks": string;
685
+ "no-multi-str": string;
686
+ "no-new-func": string;
687
+ "no-new-wrappers": string;
688
+ "no-nonoctal-decimal-escape": string;
689
+ "no-new": string;
690
+ "no-octal-escape": string;
691
+ "no-octal": string;
692
+ "no-proto": string;
693
+ "no-redeclare": string;
694
+ "no-return-assign": string[];
695
+ "no-return-await": string;
696
+ "no-script-url": string;
697
+ "no-self-assign": (string | {
698
+ props: boolean;
699
+ })[];
700
+ "no-self-compare": string;
701
+ "no-sequences": string;
702
+ "no-throw-literal": string;
703
+ "no-unmodified-loop-condition": string;
704
+ "no-unused-labels": string;
705
+ "no-useless-call": string;
706
+ "no-useless-concat": string;
707
+ "no-useless-escape": string;
708
+ "no-useless-return": string;
709
+ "no-void": string;
710
+ "no-warning-comments": string;
711
+ "no-with": string;
712
+ "prefer-promise-reject-errors": (string | {
713
+ allowEmptyReject: boolean;
714
+ })[];
715
+ "prefer-regex-literals": string;
716
+ radix: string;
717
+ yoda: string;
718
+ "no-delete-var": string;
719
+ "no-label-var": string;
720
+ "no-restricted-globals": string[];
721
+ "no-shadow-restricted-names": string;
722
+ "no-undef-init": string;
723
+ "no-buffer-constructor": string;
724
+ "no-restricted-imports": string[];
725
+ camelcase: (string | {
726
+ properties: string;
727
+ })[];
728
+ "capitalized-comments": (string | {
729
+ ignorePattern: string;
730
+ ignoreInlineComments: boolean;
731
+ ignoreConsecutiveComments: boolean;
732
+ })[];
733
+ "func-name-matching": (string | {
734
+ considerPropertyDescriptor: boolean;
735
+ })[];
736
+ "func-names": string[];
737
+ "lines-between-class-members": (string | {
738
+ exceptAfterSingleLine: boolean;
739
+ })[];
740
+ "max-depth": string;
741
+ "max-nested-callbacks": (string | number)[];
742
+ "max-params": (string | {
743
+ max: number;
744
+ })[];
745
+ "max-statements-per-line": string;
746
+ "no-array-constructor": string;
747
+ "no-lonely-if": string;
748
+ "no-multi-assign": string;
749
+ "no-negated-condition": string;
750
+ "no-new-object": string;
751
+ "no-restricted-syntax": string[];
752
+ "no-unneeded-ternary": string;
753
+ "one-var": string[];
754
+ "operator-assignment": string[];
755
+ "padding-line-between-statements": string;
756
+ "prefer-exponentiation-operator": string;
757
+ "spaced-comment": (string | {
758
+ line: {
759
+ exceptions: string[];
760
+ markers: string[];
761
+ };
762
+ block: {
763
+ exceptions: string[];
764
+ markers: string[];
765
+ balanced: boolean;
766
+ };
767
+ })[];
768
+ "constructor-super": string;
769
+ "no-class-assign": string;
770
+ "no-const-assign": string;
771
+ "no-dupe-class-members": string;
772
+ "no-new-symbol": string;
773
+ "no-this-before-super": string;
774
+ "no-useless-computed-key": (string | {
775
+ enforceForClassMembers: boolean;
776
+ })[];
777
+ "no-useless-constructor": string;
778
+ "no-useless-rename": string;
779
+ "require-yield": string;
780
+ "symbol-description": string;
781
+ "no-var": string;
782
+ "object-shorthand": string[];
783
+ "prefer-arrow-callback": (string | {
784
+ allowNamedFunctions: boolean;
785
+ })[];
786
+ "prefer-const": (string | {
787
+ destructuring: string;
788
+ })[];
789
+ "prefer-numeric-literals": string;
790
+ "prefer-rest-params": string;
791
+ "prefer-spread": string;
792
+ "prefer-object-spread": string;
793
+ "prefer-destructuring": (string | {
794
+ VariableDeclarator: {
795
+ array: boolean;
796
+ object: boolean;
797
+ };
798
+ AssignmentExpression: {
799
+ array: boolean;
800
+ object: boolean;
801
+ };
802
+ enforceForRenamedProperties?: undefined;
803
+ } | {
804
+ enforceForRenamedProperties: boolean;
805
+ VariableDeclarator?: undefined;
806
+ AssignmentExpression?: undefined;
807
+ })[];
808
+ "no-useless-catch": string;
809
+ "react/boolean-prop-naming": (string | {
810
+ validateNested: boolean;
811
+ })[];
812
+ "react/button-has-type": string;
813
+ "react/default-props-match-prop-types": string;
814
+ "react/no-access-state-in-setstate": string;
815
+ "react/no-children-prop": string;
816
+ "react/no-danger": string;
817
+ "react/no-danger-with-children": string;
818
+ "react/no-deprecated": string;
819
+ "react/no-did-update-set-state": string;
820
+ "react/no-direct-mutation-state": string;
821
+ "react/no-find-dom-node": string;
822
+ "react/no-is-mounted": string;
823
+ "react/no-redundant-should-component-update": string;
824
+ "react/no-render-return-value": string;
825
+ "react/no-typos": string;
826
+ "react/no-string-refs": (string | {
827
+ noTemplateLiterals: boolean;
828
+ })[];
829
+ "react/no-this-in-sfc": string;
830
+ "react/no-unsafe": string;
831
+ "react/no-unused-prop-types": string;
832
+ "react/no-unused-state": string;
833
+ "react/prefer-read-only-props": string;
834
+ "react/require-default-props": (string | {
835
+ forbidDefaultForRequired: boolean;
836
+ ignoreFunctionalComponents: boolean;
837
+ })[];
838
+ "react/self-closing-comp": string;
839
+ "react/state-in-constructor": string[];
840
+ "react/static-property-placement": string;
841
+ "react/style-prop-object": string;
842
+ "react/void-dom-elements-no-children": string;
843
+ "react/jsx-boolean-value": string;
844
+ "react/jsx-no-bind": (string | {
845
+ allowArrowFunctions: boolean;
846
+ })[];
847
+ "react/jsx-no-comment-textnodes": string;
848
+ "react/jsx-no-duplicate-props": (string | {
849
+ ignoreCase: boolean;
850
+ })[];
851
+ "react/jsx-no-script-url": string;
852
+ "react/jsx-no-undef": string;
853
+ "react/jsx-curly-brace-presence": string[];
854
+ "react/jsx-fragments": string[];
855
+ "react/jsx-pascal-case": string;
856
+ "react/jsx-sort-props": (string | {
857
+ callbacksLast: boolean;
858
+ shorthandFirst: boolean;
859
+ noSortAlphabetically: boolean;
860
+ reservedFirst: boolean;
861
+ })[];
862
+ "react/jsx-uses-react": string;
863
+ "react/jsx-uses-vars": string;
864
+ "react-hooks/rules-of-hooks": string;
865
+ "react-hooks/exhaustive-deps": string;
866
+ "react/jsx-no-constructed-context-values": string;
867
+ "no-console": string;
868
+ "10x/react-in-scope": string;
869
+ "react/react-in-jsx-scope": string;
870
+ "react/jsx-key": string;
871
+ "react/jsx-no-target-blank": string;
872
+ };
873
+ }[];
874
+ rules: {
875
+ "react/jsx-no-useless-fragment": string;
876
+ "react/no-array-index-key": string;
877
+ "10x/auto-import": (string | {
878
+ imports: {
879
+ useRef: string;
880
+ useEffect: string;
881
+ useState: string;
882
+ useCallback: string;
883
+ useMemo: string;
884
+ useReducer: string;
885
+ useCurrentFrame: string;
886
+ useVideoConfig: string;
887
+ spring: string;
888
+ measureSpring: string;
889
+ random: string;
890
+ interpolate: string;
891
+ interpolateColors: string;
892
+ Easing: string;
893
+ getInputProps: string;
894
+ continueRender: string;
895
+ delayRender: string;
896
+ AbsoluteFill: string;
897
+ Sequence: string;
898
+ Composition: string;
899
+ Audio: string;
900
+ Video: string;
901
+ OffthreadVideo: string;
902
+ Series: string;
903
+ Still: string;
904
+ Freeze: string;
905
+ Loop: string;
906
+ staticFile: string;
907
+ Config: string;
908
+ Img: string;
909
+ IFrame: string;
910
+ Folder: string;
911
+ z: string;
912
+ styled: string;
913
+ };
914
+ })[];
915
+ "no-unused-vars": string;
916
+ "no-undef": string;
917
+ "no-shadow": string;
918
+ "@typescript-eslint/no-var-requires": string;
919
+ curly: number;
920
+ "lines-around-comment": number;
921
+ "max-len": number;
922
+ "no-confusing-arrow": number;
923
+ "no-mixed-operators": number;
924
+ "no-tabs": number;
925
+ "no-unexpected-multiline": number;
926
+ quotes: number;
927
+ "@typescript-eslint/quotes": number;
928
+ "babel/quotes": number;
929
+ "array-bracket-newline": string;
930
+ "array-bracket-spacing": string;
931
+ "array-element-newline": string;
932
+ "arrow-parens": string;
933
+ "arrow-spacing": string;
934
+ "block-spacing": string;
935
+ "brace-style": string;
936
+ "comma-dangle": string;
937
+ "comma-spacing": string;
938
+ "comma-style": string;
939
+ "computed-property-spacing": string;
940
+ "dot-location": string;
941
+ "eol-last": string;
942
+ "func-call-spacing": string;
943
+ "function-call-argument-newline": string;
944
+ "function-paren-newline": string;
945
+ "generator-star": string;
946
+ "generator-star-spacing": string;
947
+ "implicit-arrow-linebreak": string;
948
+ indent: string;
949
+ "jsx-quotes": string;
950
+ "key-spacing": string;
951
+ "keyword-spacing": string;
952
+ "linebreak-style": string;
953
+ "multiline-ternary": string;
954
+ "newline-per-chained-call": string;
955
+ "new-parens": string;
956
+ "no-arrow-condition": string;
957
+ "no-comma-dangle": string;
958
+ "no-extra-parens": string;
959
+ "no-extra-semi": string;
960
+ "no-floating-decimal": string;
961
+ "no-mixed-spaces-and-tabs": string;
962
+ "no-multi-spaces": string;
963
+ "no-multiple-empty-lines": string;
964
+ "no-reserved-keys": string;
965
+ "no-space-before-semi": string;
966
+ "no-trailing-spaces": string;
967
+ "no-whitespace-before-property": string;
968
+ "no-wrap-func": string;
969
+ "nonblock-statement-body-position": string;
970
+ "object-curly-newline": string;
971
+ "object-curly-spacing": string;
972
+ "object-property-newline": string;
973
+ "one-var-declaration-per-line": string;
974
+ "operator-linebreak": string;
975
+ "padded-blocks": string;
976
+ "quote-props": string;
977
+ "rest-spread-spacing": string;
978
+ semi: string;
979
+ "semi-spacing": string;
980
+ "semi-style": string;
981
+ "space-after-function-name": string;
982
+ "space-after-keywords": string;
983
+ "space-before-blocks": string;
984
+ "space-before-function-paren": string;
985
+ "space-before-function-parentheses": string;
986
+ "space-before-keywords": string;
987
+ "space-in-brackets": string;
988
+ "space-in-parens": string;
989
+ "space-infix-ops": string;
990
+ "space-return-throw-case": string;
991
+ "space-unary-ops": string;
992
+ "space-unary-word-ops": string;
993
+ "switch-colon-spacing": string;
994
+ "template-curly-spacing": string;
995
+ "template-tag-spacing": string;
996
+ "unicode-bom": string;
997
+ "wrap-iife": string;
998
+ "wrap-regex": string;
999
+ "yield-star-spacing": string;
1000
+ "@typescript-eslint/brace-style": string;
1001
+ "@typescript-eslint/comma-dangle": string;
1002
+ "@typescript-eslint/comma-spacing": string;
1003
+ "@typescript-eslint/func-call-spacing": string;
1004
+ "@typescript-eslint/indent": string;
1005
+ "@typescript-eslint/keyword-spacing": string;
1006
+ "@typescript-eslint/member-delimiter-style": string;
1007
+ "@typescript-eslint/no-extra-parens": string;
1008
+ "@typescript-eslint/no-extra-semi": string;
1009
+ "@typescript-eslint/object-curly-spacing": string;
1010
+ "@typescript-eslint/semi": string;
1011
+ "@typescript-eslint/space-before-function-paren": string;
1012
+ "@typescript-eslint/space-infix-ops": string;
1013
+ "@typescript-eslint/type-annotation-spacing": string;
1014
+ "react/jsx-child-element-spacing": string;
1015
+ "react/jsx-closing-bracket-location": string;
1016
+ "react/jsx-closing-tag-location": string;
1017
+ "react/jsx-curly-newline": string;
1018
+ "react/jsx-curly-spacing": string;
1019
+ "react/jsx-equals-spacing": string;
1020
+ "react/jsx-first-prop-new-line": string;
1021
+ "react/jsx-indent": string;
1022
+ "react/jsx-indent-props": string;
1023
+ "react/jsx-max-props-per-line": string;
1024
+ "react/jsx-newline": string;
1025
+ "react/jsx-one-expression-per-line": string;
1026
+ "react/jsx-props-no-multi-spaces": string;
1027
+ "react/jsx-tag-spacing": string;
1028
+ "react/jsx-wrap-multilines": string;
1029
+ "for-direction": string;
1030
+ "getter-return": string;
1031
+ "no-async-promise-executor": string;
1032
+ "no-compare-neg-zero": string;
1033
+ "no-cond-assign": string;
1034
+ "no-constant-condition": string;
1035
+ "no-control-regex": string;
1036
+ "no-debugger": string;
1037
+ "no-dupe-args": string;
1038
+ "no-dupe-else-if": string;
1039
+ "no-dupe-keys": string;
1040
+ "no-duplicate-case": string;
1041
+ "no-empty-character-class": string;
1042
+ "no-empty": (string | {
1043
+ allowEmptyCatch: boolean;
1044
+ })[];
1045
+ "no-ex-assign": string;
1046
+ "no-extra-boolean-cast": string;
1047
+ "no-func-assign": string;
1048
+ "no-import-assign": string;
1049
+ "no-inner-declarations": string;
1050
+ "no-invalid-regexp": string;
1051
+ "no-irregular-whitespace": string;
1052
+ "no-loss-of-precision": string;
1053
+ "no-misleading-character-class": string;
1054
+ "no-obj-calls": string;
1055
+ "no-promise-executor-return": string;
1056
+ "no-prototype-builtins": string;
1057
+ "no-regex-spaces": string;
1058
+ "no-setter-return": string;
1059
+ "no-sparse-arrays": string;
1060
+ "no-template-curly-in-string": string;
1061
+ "no-unreachable": string;
1062
+ "no-unreachable-loop": string;
1063
+ "no-unsafe-finally": string;
1064
+ "no-unsafe-negation": string;
1065
+ "no-unsafe-optional-chaining": (string | {
1066
+ disallowArithmeticOperators: boolean;
1067
+ })[];
1068
+ "no-useless-backreference": string;
1069
+ "use-isnan": string;
1070
+ "valid-typeof": (string | {
1071
+ requireStringLiterals: boolean;
1072
+ })[];
1073
+ "accessor-pairs": (string | {
1074
+ enforceForClassMembers: boolean;
1075
+ })[];
1076
+ "array-callback-return": (string | {
1077
+ allowImplicit: boolean;
1078
+ })[];
1079
+ "block-scoped-var": string;
1080
+ complexity: string;
1081
+ "default-case": string;
1082
+ "default-case-last": string;
1083
+ "default-param-last": string;
1084
+ "dot-notation": string;
1085
+ eqeqeq: string;
1086
+ "grouped-accessor-pairs": string[];
1087
+ "guard-for-in": string;
1088
+ "no-alert": string;
1089
+ "no-caller": string;
1090
+ "no-case-declarations": string;
1091
+ "no-constructor-return": string;
1092
+ "no-else-return": (string | {
1093
+ allowElseIf: boolean;
1094
+ })[];
1095
+ "no-empty-pattern": string;
1096
+ "no-eq-null": string;
1097
+ "no-eval": string;
1098
+ "no-extend-native": string;
1099
+ "no-extra-bind": string;
1100
+ "no-extra-label": string;
1101
+ "no-fallthrough": string;
1102
+ "no-global-assign": string;
1103
+ "no-implicit-coercion": string;
1104
+ "no-implicit-globals": string;
1105
+ "no-implied-eval": string;
1106
+ "no-iterator": string;
1107
+ "no-labels": string;
1108
+ "no-lone-blocks": string;
1109
+ "no-multi-str": string;
1110
+ "no-new-func": string;
1111
+ "no-new-wrappers": string;
1112
+ "no-nonoctal-decimal-escape": string;
1113
+ "no-new": string;
1114
+ "no-octal-escape": string;
1115
+ "no-octal": string;
1116
+ "no-proto": string;
1117
+ "no-redeclare": string;
1118
+ "no-return-assign": string[];
1119
+ "no-return-await": string;
1120
+ "no-script-url": string;
1121
+ "no-self-assign": (string | {
1122
+ props: boolean;
1123
+ })[];
1124
+ "no-self-compare": string;
1125
+ "no-sequences": string;
1126
+ "no-throw-literal": string;
1127
+ "no-unmodified-loop-condition": string;
1128
+ "no-unused-labels": string;
1129
+ "no-useless-call": string;
1130
+ "no-useless-concat": string;
1131
+ "no-useless-escape": string;
1132
+ "no-useless-return": string;
1133
+ "no-void": string;
1134
+ "no-warning-comments": string;
1135
+ "no-with": string;
1136
+ "prefer-promise-reject-errors": (string | {
1137
+ allowEmptyReject: boolean;
1138
+ })[];
1139
+ "prefer-regex-literals": string;
1140
+ radix: string;
1141
+ yoda: string;
1142
+ "no-delete-var": string;
1143
+ "no-label-var": string;
1144
+ "no-restricted-globals": string[];
1145
+ "no-shadow-restricted-names": string;
1146
+ "no-undef-init": string;
1147
+ "no-buffer-constructor": string;
1148
+ "no-restricted-imports": string[];
1149
+ camelcase: (string | {
1150
+ properties: string;
1151
+ })[];
1152
+ "capitalized-comments": (string | {
1153
+ ignorePattern: string;
1154
+ ignoreInlineComments: boolean;
1155
+ ignoreConsecutiveComments: boolean;
1156
+ })[];
1157
+ "func-name-matching": (string | {
1158
+ considerPropertyDescriptor: boolean;
1159
+ })[];
1160
+ "func-names": string[];
1161
+ "lines-between-class-members": (string | {
1162
+ exceptAfterSingleLine: boolean;
1163
+ })[];
1164
+ "max-depth": string;
1165
+ "max-nested-callbacks": (string | number)[];
1166
+ "max-params": (string | {
1167
+ max: number;
1168
+ })[];
1169
+ "max-statements-per-line": string;
1170
+ "no-array-constructor": string;
1171
+ "no-lonely-if": string;
1172
+ "no-multi-assign": string;
1173
+ "no-negated-condition": string;
1174
+ "no-new-object": string;
1175
+ "no-restricted-syntax": string[];
1176
+ "no-unneeded-ternary": string;
1177
+ "one-var": string[];
1178
+ "operator-assignment": string[];
1179
+ "padding-line-between-statements": string;
1180
+ "prefer-exponentiation-operator": string;
1181
+ "spaced-comment": (string | {
1182
+ line: {
1183
+ exceptions: string[];
1184
+ markers: string[];
1185
+ };
1186
+ block: {
1187
+ exceptions: string[];
1188
+ markers: string[];
1189
+ balanced: boolean;
1190
+ };
1191
+ })[];
1192
+ "constructor-super": string;
1193
+ "no-class-assign": string;
1194
+ "no-const-assign": string;
1195
+ "no-dupe-class-members": string;
1196
+ "no-new-symbol": string;
1197
+ "no-this-before-super": string;
1198
+ "no-useless-computed-key": (string | {
1199
+ enforceForClassMembers: boolean;
1200
+ })[];
1201
+ "no-useless-constructor": string;
1202
+ "no-useless-rename": string;
1203
+ "require-yield": string;
1204
+ "symbol-description": string;
1205
+ "no-var": string;
1206
+ "object-shorthand": string[];
1207
+ "prefer-arrow-callback": (string | {
1208
+ allowNamedFunctions: boolean;
1209
+ })[];
1210
+ "prefer-const": (string | {
1211
+ destructuring: string;
1212
+ })[];
1213
+ "prefer-numeric-literals": string;
1214
+ "prefer-rest-params": string;
1215
+ "prefer-spread": string;
1216
+ "prefer-object-spread": string;
1217
+ "prefer-destructuring": (string | {
1218
+ VariableDeclarator: {
1219
+ array: boolean;
1220
+ object: boolean;
1221
+ };
1222
+ AssignmentExpression: {
1223
+ array: boolean;
1224
+ object: boolean;
1225
+ };
1226
+ enforceForRenamedProperties?: undefined;
1227
+ } | {
1228
+ enforceForRenamedProperties: boolean;
1229
+ VariableDeclarator?: undefined;
1230
+ AssignmentExpression?: undefined;
1231
+ })[];
1232
+ "no-useless-catch": string;
1233
+ "react/boolean-prop-naming": (string | {
1234
+ validateNested: boolean;
1235
+ })[];
1236
+ "react/button-has-type": string;
1237
+ "react/default-props-match-prop-types": string;
1238
+ "react/no-access-state-in-setstate": string;
1239
+ "react/no-children-prop": string;
1240
+ "react/no-danger": string;
1241
+ "react/no-danger-with-children": string;
1242
+ "react/no-deprecated": string;
1243
+ "react/no-did-update-set-state": string;
1244
+ "react/no-direct-mutation-state": string;
1245
+ "react/no-find-dom-node": string;
1246
+ "react/no-is-mounted": string;
1247
+ "react/no-redundant-should-component-update": string;
1248
+ "react/no-render-return-value": string;
1249
+ "react/no-typos": string;
1250
+ "react/no-string-refs": (string | {
1251
+ noTemplateLiterals: boolean;
1252
+ })[];
1253
+ "react/no-this-in-sfc": string;
1254
+ "react/no-unsafe": string;
1255
+ "react/no-unused-prop-types": string;
1256
+ "react/no-unused-state": string;
1257
+ "react/prefer-read-only-props": string;
1258
+ "react/require-default-props": (string | {
1259
+ forbidDefaultForRequired: boolean;
1260
+ ignoreFunctionalComponents: boolean;
1261
+ })[];
1262
+ "react/self-closing-comp": string;
1263
+ "react/state-in-constructor": string[];
1264
+ "react/static-property-placement": string;
1265
+ "react/style-prop-object": string;
1266
+ "react/void-dom-elements-no-children": string;
1267
+ "react/jsx-boolean-value": string;
1268
+ "react/jsx-no-bind": (string | {
1269
+ allowArrowFunctions: boolean;
1270
+ })[];
1271
+ "react/jsx-no-comment-textnodes": string;
1272
+ "react/jsx-no-duplicate-props": (string | {
1273
+ ignoreCase: boolean;
1274
+ })[];
1275
+ "react/jsx-no-script-url": string;
1276
+ "react/jsx-no-undef": string;
1277
+ "react/jsx-curly-brace-presence": string[];
1278
+ "react/jsx-fragments": string[];
1279
+ "react/jsx-pascal-case": string;
1280
+ "react/jsx-sort-props": (string | {
1281
+ callbacksLast: boolean;
1282
+ shorthandFirst: boolean;
1283
+ noSortAlphabetically: boolean;
1284
+ reservedFirst: boolean;
1285
+ })[];
1286
+ "react/jsx-uses-react": string;
1287
+ "react/jsx-uses-vars": string;
1288
+ "react-hooks/rules-of-hooks": string;
1289
+ "react-hooks/exhaustive-deps": string;
1290
+ "react/jsx-no-constructed-context-values": string;
1291
+ "no-console": string;
1292
+ "10x/react-in-scope": string;
1293
+ "react/react-in-jsx-scope": string;
1294
+ "react/jsx-key": string;
1295
+ "react/jsx-no-target-blank": string;
1296
+ } | {
1297
+ "react/jsx-no-useless-fragment": string;
1298
+ "react/no-array-index-key": string;
1299
+ "10x/auto-import": (string | {
1300
+ imports: {
1301
+ useRef: string;
1302
+ useEffect: string;
1303
+ useState: string;
1304
+ useCallback: string;
1305
+ useMemo: string;
1306
+ useReducer: string;
1307
+ useCurrentFrame: string;
1308
+ useVideoConfig: string;
1309
+ spring: string;
1310
+ measureSpring: string;
1311
+ random: string;
1312
+ interpolate: string;
1313
+ interpolateColors: string;
1314
+ Easing: string;
1315
+ getInputProps: string;
1316
+ continueRender: string;
1317
+ delayRender: string;
1318
+ AbsoluteFill: string;
1319
+ Sequence: string;
1320
+ Composition: string;
1321
+ Audio: string;
1322
+ Video: string;
1323
+ OffthreadVideo: string;
1324
+ Series: string;
1325
+ Still: string;
1326
+ Freeze: string;
1327
+ Loop: string;
1328
+ staticFile: string;
1329
+ Config: string;
1330
+ Img: string;
1331
+ IFrame: string;
1332
+ Folder: string;
1333
+ z: string;
1334
+ styled: string;
1335
+ };
1336
+ })[];
1337
+ "no-undef": (string | {
1338
+ typeof: boolean;
1339
+ })[];
1340
+ "no-unused-vars": (string | {
1341
+ vars: string;
1342
+ args: string;
1343
+ ignoreRestSiblings: boolean;
1344
+ argsIgnorePattern: string;
1345
+ caughtErrors: string;
1346
+ caughtErrorsIgnorePattern: string;
524
1347
  })[];
525
- "no-shadow"?: string | undefined;
526
- "@typescript-eslint/no-var-requires"?: string | undefined;
527
1348
  curly: number;
528
1349
  "lines-around-comment": number;
529
1350
  "max-len": number;
@@ -605,8 +1426,6 @@ declare const _default: {
605
1426
  "wrap-iife": string;
606
1427
  "wrap-regex": string;
607
1428
  "yield-star-spacing": string;
608
- "@babel/object-curly-spacing": string;
609
- "@babel/semi": string;
610
1429
  "@typescript-eslint/brace-style": string;
611
1430
  "@typescript-eslint/comma-dangle": string;
612
1431
  "@typescript-eslint/comma-spacing": string;
@@ -621,19 +1440,6 @@ declare const _default: {
621
1440
  "@typescript-eslint/space-before-function-paren": string;
622
1441
  "@typescript-eslint/space-infix-ops": string;
623
1442
  "@typescript-eslint/type-annotation-spacing": string;
624
- "babel/object-curly-spacing": string;
625
- "babel/semi": string;
626
- "flowtype/boolean-style": string;
627
- "flowtype/delimiter-dangle": string;
628
- "flowtype/generic-spacing": string;
629
- "flowtype/object-type-curly-spacing": string;
630
- "flowtype/object-type-delimiter": string;
631
- "flowtype/quotes": string;
632
- "flowtype/semi": string;
633
- "flowtype/space-after-type-colon": string;
634
- "flowtype/space-before-generic-bracket": string;
635
- "flowtype/space-before-type-colon": string;
636
- "flowtype/union-intersection-spacing": string;
637
1443
  "react/jsx-child-element-spacing": string;
638
1444
  "react/jsx-closing-bracket-location": string;
639
1445
  "react/jsx-closing-tag-location": string;
@@ -874,7 +1680,6 @@ declare const _default: {
874
1680
  noTemplateLiterals: boolean;
875
1681
  })[];
876
1682
  "react/no-this-in-sfc": string;
877
- "react/no-unknown-property": string;
878
1683
  "react/no-unsafe": string;
879
1684
  "react/no-unused-prop-types": string;
880
1685
  "react/no-unused-state": string;
@@ -917,7 +1722,6 @@ declare const _default: {
917
1722
  "react/react-in-jsx-scope": string;
918
1723
  "react/jsx-key": string;
919
1724
  "react/jsx-no-target-blank": string;
920
- "react/prop-types": string;
921
1725
  };
922
1726
  settings: {
923
1727
  react: {
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",
@@ -467,7 +435,6 @@ const getRules = (typescript) => {
467
435
  },
468
436
  ],
469
437
  "react/no-this-in-sfc": "error",
470
- "react/no-unknown-property": "error",
471
438
  "react/no-unsafe": "error",
472
439
  "react/no-unused-prop-types": "error",
473
440
  "react/no-unused-state": "error",
@@ -523,7 +490,6 @@ const getRules = (typescript) => {
523
490
  "react/react-in-jsx-scope": "off",
524
491
  "react/jsx-key": "off",
525
492
  "react/jsx-no-target-blank": "off",
526
- "react/prop-types": "off",
527
493
  // The following rules are handled by typescript-eslint
528
494
  ...(typescript
529
495
  ? {
@@ -533,7 +499,25 @@ const getRules = (typescript) => {
533
499
  // Using `require` is useful for importing PNG sequences: require('frame' + frame + '.png')
534
500
  "@typescript-eslint/no-var-requires": "off",
535
501
  }
536
- : {}),
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
+ }),
537
521
  // In Root.tsx we encourage using fragment for just a single composition
538
522
  // since we intend to add more compositions later and you should then use a fragment.
539
523
  "react/jsx-no-useless-fragment": "off",
@@ -545,7 +529,6 @@ const getRules = (typescript) => {
545
529
  imports: auto_import_rules_1.autoImports,
546
530
  },
547
531
  ],
548
- "@typescript-eslint/explicit-module-boundary-types": "off",
549
532
  };
550
533
  };
551
534
  (0, patch_eslint_1.allowESLintShareableConfig)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/eslint-config",
3
- "version": "4.0.0-alpha13",
3
+ "version": "4.0.0-alpha14",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -12,20 +12,20 @@
12
12
  "author": "Jonny Burger <jonny@remotion.dev>",
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
- "@typescript-eslint/eslint-plugin": "5.19.0",
16
- "@typescript-eslint/parser": "5.19.0",
15
+ "@typescript-eslint/eslint-plugin": "5.59.9",
16
+ "@typescript-eslint/parser": "5.59.9",
17
17
  "eslint-plugin-10x": "1.5.2",
18
- "eslint-plugin-react": "7.29.4",
19
- "eslint-plugin-react-hooks": "4.4.0",
20
- "@remotion/eslint-plugin": "4.0.0-alpha13"
18
+ "eslint-plugin-react": "7.32.2",
19
+ "eslint-plugin-react-hooks": "4.6.0",
20
+ "@remotion/eslint-plugin": "4.0.0-alpha14"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "eslint": ">=7.15.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "18.14.6",
27
- "eslint": "8.25.0",
28
- "typescript": "^4.7.0"
27
+ "eslint": "8.42.0",
28
+ "typescript": "4.9.5"
29
29
  },
30
30
  "keywords": [
31
31
  "remotion",