@meteorlxy/eslint-config 4.2.3 → 4.3.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.cjs CHANGED
@@ -705,15 +705,42 @@ const eslintCommentsRules = {
705
705
  const importsRules = {
706
706
  "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
707
707
  "import/default": "off",
708
+ "import/dynamic-import-chunkname": [
709
+ "off",
710
+ {
711
+ importFunctions: [],
712
+ webpackChunknameFormat: "[0-9a-zA-Z-_/.]+"
713
+ }
714
+ ],
708
715
  "import/export": "error",
716
+ "import/exports-last": "off",
709
717
  "import/extensions": "off",
710
718
  "import/first": "error",
719
+ "import/group-exports": "off",
711
720
  "import/imports-first": "off",
721
+ "import/max-dependencies": "off",
712
722
  "import/named": "error",
713
723
  "import/namespace": "off",
724
+ "import/newline-after-import": "error",
725
+ "import/no-absolute-path": "error",
726
+ "import/no-amd": "error",
727
+ "import/no-anonymous-default-export": [
728
+ "off",
729
+ {
730
+ allowArray: false,
731
+ allowArrowFunction: false,
732
+ allowAnonymousClass: false,
733
+ allowAnonymousFunction: false,
734
+ allowLiteral: false,
735
+ allowObject: false
736
+ }
737
+ ],
714
738
  "import/no-commonjs": "off",
739
+ "import/no-cycle": ["error", { maxDepth: "\u221E" }],
740
+ "import/no-default-export": "off",
715
741
  "import/no-deprecated": "off",
716
742
  "import/no-duplicates": "error",
743
+ "import/no-dynamic-require": "error",
717
744
  "import/no-empty-named-blocks": "off",
718
745
  "import/no-extraneous-dependencies": [
719
746
  "warn",
@@ -753,14 +780,42 @@ const importsRules = {
753
780
  optionalDependencies: false
754
781
  }
755
782
  ],
783
+ "import/no-import-module-exports": [
784
+ "error",
785
+ {
786
+ exceptions: []
787
+ }
788
+ ],
789
+ "import/no-internal-modules": [
790
+ "off",
791
+ {
792
+ allow: []
793
+ }
794
+ ],
756
795
  "import/no-mutable-exports": "error",
757
796
  "import/no-named-as-default": "off",
758
797
  "import/no-named-as-default-member": "off",
759
798
  "import/no-named-default": "off",
799
+ "import/no-named-export": "off",
760
800
  "import/no-namespace": "off",
761
- "import/no-unresolved": ["error", { commonjs: true, caseSensitive: true }],
762
- "import/no-amd": "error",
763
801
  "import/no-nodejs-modules": "off",
802
+ "import/no-relative-packages": "error",
803
+ "import/no-relative-parent-imports": "off",
804
+ "import/no-rename-default": "warn",
805
+ "import/no-restricted-paths": "off",
806
+ "import/no-self-import": "error",
807
+ "import/no-unassigned-import": "off",
808
+ "import/no-unresolved": ["error", { commonjs: true, caseSensitive: true }],
809
+ "import/no-unused-modules": [
810
+ "off",
811
+ {
812
+ ignoreExports: [],
813
+ missingExports: true,
814
+ unusedExports: true
815
+ }
816
+ ],
817
+ "import/no-useless-path-segments": ["error", { commonjs: true }],
818
+ "import/no-webpack-loader-syntax": "error",
764
819
  "import/order": [
765
820
  "error",
766
821
  {
@@ -794,62 +849,8 @@ const importsRules = {
794
849
  ]
795
850
  }
796
851
  ],
797
- "import/newline-after-import": "error",
798
852
  "import/prefer-default-export": "off",
799
- "import/no-restricted-paths": "off",
800
- "import/max-dependencies": "off",
801
- "import/no-absolute-path": "error",
802
- "import/no-dynamic-require": "error",
803
- "import/no-internal-modules": [
804
- "off",
805
- {
806
- allow: []
807
- }
808
- ],
809
- "import/unambiguous": "off",
810
- "import/no-webpack-loader-syntax": "error",
811
- "import/no-unassigned-import": "off",
812
- "import/no-anonymous-default-export": [
813
- "off",
814
- {
815
- allowArray: false,
816
- allowArrowFunction: false,
817
- allowAnonymousClass: false,
818
- allowAnonymousFunction: false,
819
- allowLiteral: false,
820
- allowObject: false
821
- }
822
- ],
823
- "import/exports-last": "off",
824
- "import/group-exports": "off",
825
- "import/no-default-export": "off",
826
- "import/no-named-export": "off",
827
- "import/no-self-import": "error",
828
- "import/no-cycle": ["error", { maxDepth: "\u221E" }],
829
- "import/no-useless-path-segments": ["error", { commonjs: true }],
830
- "import/dynamic-import-chunkname": [
831
- "off",
832
- {
833
- importFunctions: [],
834
- webpackChunknameFormat: "[0-9a-zA-Z-_/.]+"
835
- }
836
- ],
837
- "import/no-relative-parent-imports": "off",
838
- "import/no-unused-modules": [
839
- "off",
840
- {
841
- ignoreExports: [],
842
- missingExports: true,
843
- unusedExports: true
844
- }
845
- ],
846
- "import/no-import-module-exports": [
847
- "error",
848
- {
849
- exceptions: []
850
- }
851
- ],
852
- "import/no-relative-packages": "error"
853
+ "import/unambiguous": "off"
853
854
  };
854
855
 
855
856
  const markdownShimRules = {
@@ -866,13 +867,16 @@ const markdownShimRules = {
866
867
  "strict": "off",
867
868
  "unicode-bom": "off",
868
869
  // import rules
870
+ "import/no-absolute-path": "off",
869
871
  "import/no-extraneous-dependencies": "off",
870
872
  "import/no-unresolved": "off",
871
873
  // typescript-eslint rules, should disable type checking
872
874
  ...tsPlugin__default.configs["disable-type-checked"].rules,
875
+ "@typescript-eslint/no-explicit-any": "off",
873
876
  "@typescript-eslint/no-unused-expressions": "off",
874
877
  "@typescript-eslint/no-unused-vars": "off",
875
878
  // vue rules
879
+ "vue/no-v-html": "off",
876
880
  "vue/require-name-property": "off"
877
881
  };
878
882
 
package/dist/index.d.cts CHANGED
@@ -562,31 +562,75 @@ declare const eslintCommentsRules: {
562
562
  declare const importsRules: {
563
563
  'import/consistent-type-specifier-style': ["error", string];
564
564
  'import/default': "off";
565
+ 'import/dynamic-import-chunkname': ["off", {
566
+ importFunctions: never[];
567
+ webpackChunknameFormat: string;
568
+ }];
565
569
  'import/export': "error";
570
+ 'import/exports-last': "off";
566
571
  'import/extensions': "off";
567
572
  'import/first': "error";
573
+ 'import/group-exports': "off";
568
574
  'import/imports-first': "off";
575
+ 'import/max-dependencies': "off";
569
576
  'import/named': "error";
570
577
  'import/namespace': "off";
578
+ 'import/newline-after-import': "error";
579
+ 'import/no-absolute-path': "error";
580
+ 'import/no-amd': "error";
581
+ 'import/no-anonymous-default-export': ["off", {
582
+ allowArray: boolean;
583
+ allowArrowFunction: boolean;
584
+ allowAnonymousClass: boolean;
585
+ allowAnonymousFunction: boolean;
586
+ allowLiteral: boolean;
587
+ allowObject: boolean;
588
+ }];
571
589
  'import/no-commonjs': "off";
590
+ 'import/no-cycle': ["error", {
591
+ maxDepth: string;
592
+ }];
593
+ 'import/no-default-export': "off";
572
594
  'import/no-deprecated': "off";
573
595
  'import/no-duplicates': "error";
596
+ 'import/no-dynamic-require': "error";
574
597
  'import/no-empty-named-blocks': "off";
575
598
  'import/no-extraneous-dependencies': ["warn", {
576
599
  devDependencies: string[];
577
600
  optionalDependencies: boolean;
578
601
  }];
602
+ 'import/no-import-module-exports': ["error", {
603
+ exceptions: never[];
604
+ }];
605
+ 'import/no-internal-modules': ["off", {
606
+ allow: never[];
607
+ }];
579
608
  'import/no-mutable-exports': "error";
580
609
  'import/no-named-as-default': "off";
581
610
  'import/no-named-as-default-member': "off";
582
611
  'import/no-named-default': "off";
612
+ 'import/no-named-export': "off";
583
613
  'import/no-namespace': "off";
614
+ 'import/no-nodejs-modules': "off";
615
+ 'import/no-relative-packages': "error";
616
+ 'import/no-relative-parent-imports': "off";
617
+ 'import/no-rename-default': "warn";
618
+ 'import/no-restricted-paths': "off";
619
+ 'import/no-self-import': "error";
620
+ 'import/no-unassigned-import': "off";
584
621
  'import/no-unresolved': ["error", {
585
622
  commonjs: boolean;
586
623
  caseSensitive: boolean;
587
624
  }];
588
- 'import/no-amd': "error";
589
- 'import/no-nodejs-modules': "off";
625
+ 'import/no-unused-modules': ["off", {
626
+ ignoreExports: never[];
627
+ missingExports: boolean;
628
+ unusedExports: boolean;
629
+ }];
630
+ 'import/no-useless-path-segments': ["error", {
631
+ commonjs: boolean;
632
+ }];
633
+ 'import/no-webpack-loader-syntax': "error";
590
634
  'import/order': ["error", {
591
635
  groups: string[];
592
636
  'newlines-between': string;
@@ -600,56 +644,15 @@ declare const importsRules: {
600
644
  group: string;
601
645
  }[];
602
646
  }];
603
- 'import/newline-after-import': "error";
604
647
  'import/prefer-default-export': "off";
605
- 'import/no-restricted-paths': "off";
606
- 'import/max-dependencies': "off";
607
- 'import/no-absolute-path': "error";
608
- 'import/no-dynamic-require': "error";
609
- 'import/no-internal-modules': ["off", {
610
- allow: never[];
611
- }];
612
648
  'import/unambiguous': "off";
613
- 'import/no-webpack-loader-syntax': "error";
614
- 'import/no-unassigned-import': "off";
615
- 'import/no-anonymous-default-export': ["off", {
616
- allowArray: boolean;
617
- allowArrowFunction: boolean;
618
- allowAnonymousClass: boolean;
619
- allowAnonymousFunction: boolean;
620
- allowLiteral: boolean;
621
- allowObject: boolean;
622
- }];
623
- 'import/exports-last': "off";
624
- 'import/group-exports': "off";
625
- 'import/no-default-export': "off";
626
- 'import/no-named-export': "off";
627
- 'import/no-self-import': "error";
628
- 'import/no-cycle': ["error", {
629
- maxDepth: string;
630
- }];
631
- 'import/no-useless-path-segments': ["error", {
632
- commonjs: boolean;
633
- }];
634
- 'import/dynamic-import-chunkname': ["off", {
635
- importFunctions: never[];
636
- webpackChunknameFormat: string;
637
- }];
638
- 'import/no-relative-parent-imports': "off";
639
- 'import/no-unused-modules': ["off", {
640
- ignoreExports: never[];
641
- missingExports: boolean;
642
- unusedExports: boolean;
643
- }];
644
- 'import/no-import-module-exports': ["error", {
645
- exceptions: never[];
646
- }];
647
- 'import/no-relative-packages': "error";
648
649
  };
649
650
 
650
651
  declare const markdownShimRules: {
652
+ '@typescript-eslint/no-explicit-any': "off";
651
653
  '@typescript-eslint/no-unused-expressions': "off";
652
654
  '@typescript-eslint/no-unused-vars': "off";
655
+ 'vue/no-v-html': "off";
653
656
  'vue/require-name-property': "off";
654
657
  'no-alert': "off";
655
658
  'no-console': "off";
@@ -662,6 +665,7 @@ declare const markdownShimRules: {
662
665
  'no-unused-vars': "off";
663
666
  strict: "off";
664
667
  'unicode-bom': "off";
668
+ 'import/no-absolute-path': "off";
665
669
  'import/no-extraneous-dependencies': "off";
666
670
  'import/no-unresolved': "off";
667
671
  };
package/dist/index.d.mts CHANGED
@@ -562,31 +562,75 @@ declare const eslintCommentsRules: {
562
562
  declare const importsRules: {
563
563
  'import/consistent-type-specifier-style': ["error", string];
564
564
  'import/default': "off";
565
+ 'import/dynamic-import-chunkname': ["off", {
566
+ importFunctions: never[];
567
+ webpackChunknameFormat: string;
568
+ }];
565
569
  'import/export': "error";
570
+ 'import/exports-last': "off";
566
571
  'import/extensions': "off";
567
572
  'import/first': "error";
573
+ 'import/group-exports': "off";
568
574
  'import/imports-first': "off";
575
+ 'import/max-dependencies': "off";
569
576
  'import/named': "error";
570
577
  'import/namespace': "off";
578
+ 'import/newline-after-import': "error";
579
+ 'import/no-absolute-path': "error";
580
+ 'import/no-amd': "error";
581
+ 'import/no-anonymous-default-export': ["off", {
582
+ allowArray: boolean;
583
+ allowArrowFunction: boolean;
584
+ allowAnonymousClass: boolean;
585
+ allowAnonymousFunction: boolean;
586
+ allowLiteral: boolean;
587
+ allowObject: boolean;
588
+ }];
571
589
  'import/no-commonjs': "off";
590
+ 'import/no-cycle': ["error", {
591
+ maxDepth: string;
592
+ }];
593
+ 'import/no-default-export': "off";
572
594
  'import/no-deprecated': "off";
573
595
  'import/no-duplicates': "error";
596
+ 'import/no-dynamic-require': "error";
574
597
  'import/no-empty-named-blocks': "off";
575
598
  'import/no-extraneous-dependencies': ["warn", {
576
599
  devDependencies: string[];
577
600
  optionalDependencies: boolean;
578
601
  }];
602
+ 'import/no-import-module-exports': ["error", {
603
+ exceptions: never[];
604
+ }];
605
+ 'import/no-internal-modules': ["off", {
606
+ allow: never[];
607
+ }];
579
608
  'import/no-mutable-exports': "error";
580
609
  'import/no-named-as-default': "off";
581
610
  'import/no-named-as-default-member': "off";
582
611
  'import/no-named-default': "off";
612
+ 'import/no-named-export': "off";
583
613
  'import/no-namespace': "off";
614
+ 'import/no-nodejs-modules': "off";
615
+ 'import/no-relative-packages': "error";
616
+ 'import/no-relative-parent-imports': "off";
617
+ 'import/no-rename-default': "warn";
618
+ 'import/no-restricted-paths': "off";
619
+ 'import/no-self-import': "error";
620
+ 'import/no-unassigned-import': "off";
584
621
  'import/no-unresolved': ["error", {
585
622
  commonjs: boolean;
586
623
  caseSensitive: boolean;
587
624
  }];
588
- 'import/no-amd': "error";
589
- 'import/no-nodejs-modules': "off";
625
+ 'import/no-unused-modules': ["off", {
626
+ ignoreExports: never[];
627
+ missingExports: boolean;
628
+ unusedExports: boolean;
629
+ }];
630
+ 'import/no-useless-path-segments': ["error", {
631
+ commonjs: boolean;
632
+ }];
633
+ 'import/no-webpack-loader-syntax': "error";
590
634
  'import/order': ["error", {
591
635
  groups: string[];
592
636
  'newlines-between': string;
@@ -600,56 +644,15 @@ declare const importsRules: {
600
644
  group: string;
601
645
  }[];
602
646
  }];
603
- 'import/newline-after-import': "error";
604
647
  'import/prefer-default-export': "off";
605
- 'import/no-restricted-paths': "off";
606
- 'import/max-dependencies': "off";
607
- 'import/no-absolute-path': "error";
608
- 'import/no-dynamic-require': "error";
609
- 'import/no-internal-modules': ["off", {
610
- allow: never[];
611
- }];
612
648
  'import/unambiguous': "off";
613
- 'import/no-webpack-loader-syntax': "error";
614
- 'import/no-unassigned-import': "off";
615
- 'import/no-anonymous-default-export': ["off", {
616
- allowArray: boolean;
617
- allowArrowFunction: boolean;
618
- allowAnonymousClass: boolean;
619
- allowAnonymousFunction: boolean;
620
- allowLiteral: boolean;
621
- allowObject: boolean;
622
- }];
623
- 'import/exports-last': "off";
624
- 'import/group-exports': "off";
625
- 'import/no-default-export': "off";
626
- 'import/no-named-export': "off";
627
- 'import/no-self-import': "error";
628
- 'import/no-cycle': ["error", {
629
- maxDepth: string;
630
- }];
631
- 'import/no-useless-path-segments': ["error", {
632
- commonjs: boolean;
633
- }];
634
- 'import/dynamic-import-chunkname': ["off", {
635
- importFunctions: never[];
636
- webpackChunknameFormat: string;
637
- }];
638
- 'import/no-relative-parent-imports': "off";
639
- 'import/no-unused-modules': ["off", {
640
- ignoreExports: never[];
641
- missingExports: boolean;
642
- unusedExports: boolean;
643
- }];
644
- 'import/no-import-module-exports': ["error", {
645
- exceptions: never[];
646
- }];
647
- 'import/no-relative-packages': "error";
648
649
  };
649
650
 
650
651
  declare const markdownShimRules: {
652
+ '@typescript-eslint/no-explicit-any': "off";
651
653
  '@typescript-eslint/no-unused-expressions': "off";
652
654
  '@typescript-eslint/no-unused-vars': "off";
655
+ 'vue/no-v-html': "off";
653
656
  'vue/require-name-property': "off";
654
657
  'no-alert': "off";
655
658
  'no-console': "off";
@@ -662,6 +665,7 @@ declare const markdownShimRules: {
662
665
  'no-unused-vars': "off";
663
666
  strict: "off";
664
667
  'unicode-bom': "off";
668
+ 'import/no-absolute-path': "off";
665
669
  'import/no-extraneous-dependencies': "off";
666
670
  'import/no-unresolved': "off";
667
671
  };
package/dist/index.d.ts CHANGED
@@ -562,31 +562,75 @@ declare const eslintCommentsRules: {
562
562
  declare const importsRules: {
563
563
  'import/consistent-type-specifier-style': ["error", string];
564
564
  'import/default': "off";
565
+ 'import/dynamic-import-chunkname': ["off", {
566
+ importFunctions: never[];
567
+ webpackChunknameFormat: string;
568
+ }];
565
569
  'import/export': "error";
570
+ 'import/exports-last': "off";
566
571
  'import/extensions': "off";
567
572
  'import/first': "error";
573
+ 'import/group-exports': "off";
568
574
  'import/imports-first': "off";
575
+ 'import/max-dependencies': "off";
569
576
  'import/named': "error";
570
577
  'import/namespace': "off";
578
+ 'import/newline-after-import': "error";
579
+ 'import/no-absolute-path': "error";
580
+ 'import/no-amd': "error";
581
+ 'import/no-anonymous-default-export': ["off", {
582
+ allowArray: boolean;
583
+ allowArrowFunction: boolean;
584
+ allowAnonymousClass: boolean;
585
+ allowAnonymousFunction: boolean;
586
+ allowLiteral: boolean;
587
+ allowObject: boolean;
588
+ }];
571
589
  'import/no-commonjs': "off";
590
+ 'import/no-cycle': ["error", {
591
+ maxDepth: string;
592
+ }];
593
+ 'import/no-default-export': "off";
572
594
  'import/no-deprecated': "off";
573
595
  'import/no-duplicates': "error";
596
+ 'import/no-dynamic-require': "error";
574
597
  'import/no-empty-named-blocks': "off";
575
598
  'import/no-extraneous-dependencies': ["warn", {
576
599
  devDependencies: string[];
577
600
  optionalDependencies: boolean;
578
601
  }];
602
+ 'import/no-import-module-exports': ["error", {
603
+ exceptions: never[];
604
+ }];
605
+ 'import/no-internal-modules': ["off", {
606
+ allow: never[];
607
+ }];
579
608
  'import/no-mutable-exports': "error";
580
609
  'import/no-named-as-default': "off";
581
610
  'import/no-named-as-default-member': "off";
582
611
  'import/no-named-default': "off";
612
+ 'import/no-named-export': "off";
583
613
  'import/no-namespace': "off";
614
+ 'import/no-nodejs-modules': "off";
615
+ 'import/no-relative-packages': "error";
616
+ 'import/no-relative-parent-imports': "off";
617
+ 'import/no-rename-default': "warn";
618
+ 'import/no-restricted-paths': "off";
619
+ 'import/no-self-import': "error";
620
+ 'import/no-unassigned-import': "off";
584
621
  'import/no-unresolved': ["error", {
585
622
  commonjs: boolean;
586
623
  caseSensitive: boolean;
587
624
  }];
588
- 'import/no-amd': "error";
589
- 'import/no-nodejs-modules': "off";
625
+ 'import/no-unused-modules': ["off", {
626
+ ignoreExports: never[];
627
+ missingExports: boolean;
628
+ unusedExports: boolean;
629
+ }];
630
+ 'import/no-useless-path-segments': ["error", {
631
+ commonjs: boolean;
632
+ }];
633
+ 'import/no-webpack-loader-syntax': "error";
590
634
  'import/order': ["error", {
591
635
  groups: string[];
592
636
  'newlines-between': string;
@@ -600,56 +644,15 @@ declare const importsRules: {
600
644
  group: string;
601
645
  }[];
602
646
  }];
603
- 'import/newline-after-import': "error";
604
647
  'import/prefer-default-export': "off";
605
- 'import/no-restricted-paths': "off";
606
- 'import/max-dependencies': "off";
607
- 'import/no-absolute-path': "error";
608
- 'import/no-dynamic-require': "error";
609
- 'import/no-internal-modules': ["off", {
610
- allow: never[];
611
- }];
612
648
  'import/unambiguous': "off";
613
- 'import/no-webpack-loader-syntax': "error";
614
- 'import/no-unassigned-import': "off";
615
- 'import/no-anonymous-default-export': ["off", {
616
- allowArray: boolean;
617
- allowArrowFunction: boolean;
618
- allowAnonymousClass: boolean;
619
- allowAnonymousFunction: boolean;
620
- allowLiteral: boolean;
621
- allowObject: boolean;
622
- }];
623
- 'import/exports-last': "off";
624
- 'import/group-exports': "off";
625
- 'import/no-default-export': "off";
626
- 'import/no-named-export': "off";
627
- 'import/no-self-import': "error";
628
- 'import/no-cycle': ["error", {
629
- maxDepth: string;
630
- }];
631
- 'import/no-useless-path-segments': ["error", {
632
- commonjs: boolean;
633
- }];
634
- 'import/dynamic-import-chunkname': ["off", {
635
- importFunctions: never[];
636
- webpackChunknameFormat: string;
637
- }];
638
- 'import/no-relative-parent-imports': "off";
639
- 'import/no-unused-modules': ["off", {
640
- ignoreExports: never[];
641
- missingExports: boolean;
642
- unusedExports: boolean;
643
- }];
644
- 'import/no-import-module-exports': ["error", {
645
- exceptions: never[];
646
- }];
647
- 'import/no-relative-packages': "error";
648
649
  };
649
650
 
650
651
  declare const markdownShimRules: {
652
+ '@typescript-eslint/no-explicit-any': "off";
651
653
  '@typescript-eslint/no-unused-expressions': "off";
652
654
  '@typescript-eslint/no-unused-vars': "off";
655
+ 'vue/no-v-html': "off";
653
656
  'vue/require-name-property': "off";
654
657
  'no-alert': "off";
655
658
  'no-console': "off";
@@ -662,6 +665,7 @@ declare const markdownShimRules: {
662
665
  'no-unused-vars': "off";
663
666
  strict: "off";
664
667
  'unicode-bom': "off";
668
+ 'import/no-absolute-path': "off";
665
669
  'import/no-extraneous-dependencies': "off";
666
670
  'import/no-unresolved': "off";
667
671
  };
package/dist/index.mjs CHANGED
@@ -693,15 +693,42 @@ const eslintCommentsRules = {
693
693
  const importsRules = {
694
694
  "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
695
695
  "import/default": "off",
696
+ "import/dynamic-import-chunkname": [
697
+ "off",
698
+ {
699
+ importFunctions: [],
700
+ webpackChunknameFormat: "[0-9a-zA-Z-_/.]+"
701
+ }
702
+ ],
696
703
  "import/export": "error",
704
+ "import/exports-last": "off",
697
705
  "import/extensions": "off",
698
706
  "import/first": "error",
707
+ "import/group-exports": "off",
699
708
  "import/imports-first": "off",
709
+ "import/max-dependencies": "off",
700
710
  "import/named": "error",
701
711
  "import/namespace": "off",
712
+ "import/newline-after-import": "error",
713
+ "import/no-absolute-path": "error",
714
+ "import/no-amd": "error",
715
+ "import/no-anonymous-default-export": [
716
+ "off",
717
+ {
718
+ allowArray: false,
719
+ allowArrowFunction: false,
720
+ allowAnonymousClass: false,
721
+ allowAnonymousFunction: false,
722
+ allowLiteral: false,
723
+ allowObject: false
724
+ }
725
+ ],
702
726
  "import/no-commonjs": "off",
727
+ "import/no-cycle": ["error", { maxDepth: "\u221E" }],
728
+ "import/no-default-export": "off",
703
729
  "import/no-deprecated": "off",
704
730
  "import/no-duplicates": "error",
731
+ "import/no-dynamic-require": "error",
705
732
  "import/no-empty-named-blocks": "off",
706
733
  "import/no-extraneous-dependencies": [
707
734
  "warn",
@@ -741,14 +768,42 @@ const importsRules = {
741
768
  optionalDependencies: false
742
769
  }
743
770
  ],
771
+ "import/no-import-module-exports": [
772
+ "error",
773
+ {
774
+ exceptions: []
775
+ }
776
+ ],
777
+ "import/no-internal-modules": [
778
+ "off",
779
+ {
780
+ allow: []
781
+ }
782
+ ],
744
783
  "import/no-mutable-exports": "error",
745
784
  "import/no-named-as-default": "off",
746
785
  "import/no-named-as-default-member": "off",
747
786
  "import/no-named-default": "off",
787
+ "import/no-named-export": "off",
748
788
  "import/no-namespace": "off",
749
- "import/no-unresolved": ["error", { commonjs: true, caseSensitive: true }],
750
- "import/no-amd": "error",
751
789
  "import/no-nodejs-modules": "off",
790
+ "import/no-relative-packages": "error",
791
+ "import/no-relative-parent-imports": "off",
792
+ "import/no-rename-default": "warn",
793
+ "import/no-restricted-paths": "off",
794
+ "import/no-self-import": "error",
795
+ "import/no-unassigned-import": "off",
796
+ "import/no-unresolved": ["error", { commonjs: true, caseSensitive: true }],
797
+ "import/no-unused-modules": [
798
+ "off",
799
+ {
800
+ ignoreExports: [],
801
+ missingExports: true,
802
+ unusedExports: true
803
+ }
804
+ ],
805
+ "import/no-useless-path-segments": ["error", { commonjs: true }],
806
+ "import/no-webpack-loader-syntax": "error",
752
807
  "import/order": [
753
808
  "error",
754
809
  {
@@ -782,62 +837,8 @@ const importsRules = {
782
837
  ]
783
838
  }
784
839
  ],
785
- "import/newline-after-import": "error",
786
840
  "import/prefer-default-export": "off",
787
- "import/no-restricted-paths": "off",
788
- "import/max-dependencies": "off",
789
- "import/no-absolute-path": "error",
790
- "import/no-dynamic-require": "error",
791
- "import/no-internal-modules": [
792
- "off",
793
- {
794
- allow: []
795
- }
796
- ],
797
- "import/unambiguous": "off",
798
- "import/no-webpack-loader-syntax": "error",
799
- "import/no-unassigned-import": "off",
800
- "import/no-anonymous-default-export": [
801
- "off",
802
- {
803
- allowArray: false,
804
- allowArrowFunction: false,
805
- allowAnonymousClass: false,
806
- allowAnonymousFunction: false,
807
- allowLiteral: false,
808
- allowObject: false
809
- }
810
- ],
811
- "import/exports-last": "off",
812
- "import/group-exports": "off",
813
- "import/no-default-export": "off",
814
- "import/no-named-export": "off",
815
- "import/no-self-import": "error",
816
- "import/no-cycle": ["error", { maxDepth: "\u221E" }],
817
- "import/no-useless-path-segments": ["error", { commonjs: true }],
818
- "import/dynamic-import-chunkname": [
819
- "off",
820
- {
821
- importFunctions: [],
822
- webpackChunknameFormat: "[0-9a-zA-Z-_/.]+"
823
- }
824
- ],
825
- "import/no-relative-parent-imports": "off",
826
- "import/no-unused-modules": [
827
- "off",
828
- {
829
- ignoreExports: [],
830
- missingExports: true,
831
- unusedExports: true
832
- }
833
- ],
834
- "import/no-import-module-exports": [
835
- "error",
836
- {
837
- exceptions: []
838
- }
839
- ],
840
- "import/no-relative-packages": "error"
841
+ "import/unambiguous": "off"
841
842
  };
842
843
 
843
844
  const markdownShimRules = {
@@ -854,13 +855,16 @@ const markdownShimRules = {
854
855
  "strict": "off",
855
856
  "unicode-bom": "off",
856
857
  // import rules
858
+ "import/no-absolute-path": "off",
857
859
  "import/no-extraneous-dependencies": "off",
858
860
  "import/no-unresolved": "off",
859
861
  // typescript-eslint rules, should disable type checking
860
862
  ...tsPlugin.configs["disable-type-checked"].rules,
863
+ "@typescript-eslint/no-explicit-any": "off",
861
864
  "@typescript-eslint/no-unused-expressions": "off",
862
865
  "@typescript-eslint/no-unused-vars": "off",
863
866
  // vue rules
867
+ "vue/no-v-html": "off",
864
868
  "vue/require-name-property": "off"
865
869
  };
866
870
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorlxy/eslint-config",
3
- "version": "4.2.3",
3
+ "version": "4.3.0",
4
4
  "description": "meteorlxy eslint config",
5
5
  "keywords": [
6
6
  "config",
@@ -32,23 +32,23 @@
32
32
  "clean": "rimraf ./dist"
33
33
  },
34
34
  "dependencies": {
35
- "@typescript-eslint/eslint-plugin": "^8.1.0",
36
- "@typescript-eslint/parser": "^8.1.0",
37
- "@typescript-eslint/utils": "^8.1.0",
35
+ "@typescript-eslint/eslint-plugin": "^8.3.0",
36
+ "@typescript-eslint/parser": "^8.3.0",
37
+ "@typescript-eslint/utils": "^8.3.0",
38
38
  "confusing-browser-globals": "^1.0.11",
39
39
  "eslint-config-prettier": "^9.1.0",
40
40
  "eslint-plugin-eslint-comments": "^3.2.0",
41
- "eslint-plugin-import-x": "^3.1.0",
41
+ "eslint-plugin-import-x": "^4.1.0",
42
42
  "eslint-plugin-markdown": "^5.1.0",
43
43
  "globals": "^15.9.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/confusing-browser-globals": "^1.0.3",
47
- "@types/eslint": "^9.6.0",
48
- "eslint": "^9.9.0",
47
+ "@types/eslint": "^9.6.1",
48
+ "eslint": "^9.9.1",
49
49
  "eslint-plugin-react": "^7.35.0",
50
50
  "eslint-plugin-react-hooks": "^4.6.2",
51
- "eslint-plugin-react-refresh": "^0.4.9",
51
+ "eslint-plugin-react-refresh": "^0.4.11",
52
52
  "eslint-plugin-vue": "^9.27.0",
53
53
  "vue-eslint-parser": "^9.4.3"
54
54
  },
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "74a0d7b16e704a0903e46fbbd5ad4c5fa7bc06dd"
82
+ "gitHead": "1844e9e57fad7ba4b66636bb546ea602256ead6c"
83
83
  }