@luxass/eslint-config 4.8.1 → 4.8.2
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 +24 -10
- package/dist/index.d.cts +127 -111
- package/dist/index.d.ts +127 -111
- package/dist/index.js +24 -10
- package/package.json +5 -3
package/dist/index.d.cts
CHANGED
|
@@ -637,42 +637,42 @@ interface RuleOptions {
|
|
|
637
637
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
638
638
|
/**
|
|
639
639
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
640
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
640
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/consistent-type-specifier-style.md
|
|
641
641
|
*/
|
|
642
642
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
643
643
|
/**
|
|
644
644
|
* Ensure a default export is present, given a default import.
|
|
645
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
645
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/default.md
|
|
646
646
|
*/
|
|
647
647
|
'import/default'?: Linter.RuleEntry<[]>
|
|
648
648
|
/**
|
|
649
649
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
650
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
650
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/dynamic-import-chunkname.md
|
|
651
651
|
*/
|
|
652
652
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
653
653
|
/**
|
|
654
654
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
655
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
655
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/export.md
|
|
656
656
|
*/
|
|
657
657
|
'import/export'?: Linter.RuleEntry<[]>
|
|
658
658
|
/**
|
|
659
659
|
* Ensure all exports appear after other statements.
|
|
660
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
660
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/exports-last.md
|
|
661
661
|
*/
|
|
662
662
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
663
663
|
/**
|
|
664
664
|
* Ensure consistent use of file extension within the import path.
|
|
665
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
665
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/extensions.md
|
|
666
666
|
*/
|
|
667
667
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
668
668
|
/**
|
|
669
669
|
* Ensure all imports appear before other statements.
|
|
670
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
670
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/first.md
|
|
671
671
|
*/
|
|
672
672
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
673
673
|
/**
|
|
674
674
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
675
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
675
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/group-exports.md
|
|
676
676
|
*/
|
|
677
677
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
678
678
|
/**
|
|
@@ -683,182 +683,182 @@ interface RuleOptions {
|
|
|
683
683
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
684
684
|
/**
|
|
685
685
|
* Enforce the maximum number of dependencies a module can have.
|
|
686
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
686
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/max-dependencies.md
|
|
687
687
|
*/
|
|
688
688
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
689
689
|
/**
|
|
690
690
|
* Ensure named imports correspond to a named export in the remote file.
|
|
691
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
691
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/named.md
|
|
692
692
|
*/
|
|
693
693
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
694
694
|
/**
|
|
695
695
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
696
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
696
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/namespace.md
|
|
697
697
|
*/
|
|
698
698
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
699
699
|
/**
|
|
700
700
|
* Enforce a newline after import statements.
|
|
701
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
701
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/newline-after-import.md
|
|
702
702
|
*/
|
|
703
703
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
704
704
|
/**
|
|
705
705
|
* Forbid import of modules using absolute paths.
|
|
706
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
706
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-absolute-path.md
|
|
707
707
|
*/
|
|
708
708
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
709
709
|
/**
|
|
710
710
|
* Forbid AMD `require` and `define` calls.
|
|
711
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
711
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-amd.md
|
|
712
712
|
*/
|
|
713
713
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
714
714
|
/**
|
|
715
715
|
* Forbid anonymous values as default exports.
|
|
716
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
716
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-anonymous-default-export.md
|
|
717
717
|
*/
|
|
718
718
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
719
719
|
/**
|
|
720
720
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
721
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
721
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-commonjs.md
|
|
722
722
|
*/
|
|
723
723
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
724
724
|
/**
|
|
725
725
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
726
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
726
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-cycle.md
|
|
727
727
|
*/
|
|
728
728
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
729
729
|
/**
|
|
730
730
|
* Forbid default exports.
|
|
731
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
731
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-default-export.md
|
|
732
732
|
*/
|
|
733
733
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
734
734
|
/**
|
|
735
735
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
736
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
736
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-deprecated.md
|
|
737
737
|
*/
|
|
738
738
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
739
739
|
/**
|
|
740
740
|
* Forbid repeated import of the same module in multiple places.
|
|
741
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
741
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-duplicates.md
|
|
742
742
|
*/
|
|
743
743
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
744
744
|
/**
|
|
745
745
|
* Forbid `require()` calls with expressions.
|
|
746
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
746
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-dynamic-require.md
|
|
747
747
|
*/
|
|
748
748
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
749
749
|
/**
|
|
750
750
|
* Forbid empty named import blocks.
|
|
751
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
751
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-empty-named-blocks.md
|
|
752
752
|
*/
|
|
753
753
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
754
754
|
/**
|
|
755
755
|
* Forbid the use of extraneous packages.
|
|
756
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
756
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-extraneous-dependencies.md
|
|
757
757
|
*/
|
|
758
758
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
759
759
|
/**
|
|
760
760
|
* Forbid import statements with CommonJS module.exports.
|
|
761
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
761
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-import-module-exports.md
|
|
762
762
|
*/
|
|
763
763
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
764
764
|
/**
|
|
765
765
|
* Forbid importing the submodules of other modules.
|
|
766
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
766
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-internal-modules.md
|
|
767
767
|
*/
|
|
768
768
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
769
769
|
/**
|
|
770
770
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
771
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
771
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-mutable-exports.md
|
|
772
772
|
*/
|
|
773
773
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
774
774
|
/**
|
|
775
775
|
* Forbid use of exported name as identifier of default export.
|
|
776
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
776
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default.md
|
|
777
777
|
*/
|
|
778
778
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
779
779
|
/**
|
|
780
780
|
* Forbid use of exported name as property of default export.
|
|
781
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
781
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default-member.md
|
|
782
782
|
*/
|
|
783
783
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
784
784
|
/**
|
|
785
785
|
* Forbid named default exports.
|
|
786
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
786
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-default.md
|
|
787
787
|
*/
|
|
788
788
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
789
789
|
/**
|
|
790
790
|
* Forbid named exports.
|
|
791
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
791
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-export.md
|
|
792
792
|
*/
|
|
793
793
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
794
794
|
/**
|
|
795
795
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
796
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
796
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-namespace.md
|
|
797
797
|
*/
|
|
798
798
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
799
799
|
/**
|
|
800
800
|
* Forbid Node.js builtin modules.
|
|
801
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
801
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-nodejs-modules.md
|
|
802
802
|
*/
|
|
803
803
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
804
804
|
/**
|
|
805
805
|
* Forbid importing packages through relative paths.
|
|
806
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
806
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-packages.md
|
|
807
807
|
*/
|
|
808
808
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
809
809
|
/**
|
|
810
810
|
* Forbid importing modules from parent directories.
|
|
811
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
811
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-parent-imports.md
|
|
812
812
|
*/
|
|
813
813
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
814
814
|
/**
|
|
815
815
|
* Enforce which files can be imported in a given folder.
|
|
816
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
816
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-restricted-paths.md
|
|
817
817
|
*/
|
|
818
818
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
819
819
|
/**
|
|
820
820
|
* Forbid a module from importing itself.
|
|
821
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
821
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-self-import.md
|
|
822
822
|
*/
|
|
823
823
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
824
824
|
/**
|
|
825
825
|
* Forbid unassigned imports.
|
|
826
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
826
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unassigned-import.md
|
|
827
827
|
*/
|
|
828
828
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
829
829
|
/**
|
|
830
830
|
* Ensure imports point to a file/module that can be resolved.
|
|
831
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
831
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unresolved.md
|
|
832
832
|
*/
|
|
833
833
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
834
834
|
/**
|
|
835
835
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
836
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
836
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unused-modules.md
|
|
837
837
|
*/
|
|
838
838
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
839
839
|
/**
|
|
840
840
|
* Forbid unnecessary path segments in import and require statements.
|
|
841
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
841
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-useless-path-segments.md
|
|
842
842
|
*/
|
|
843
843
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
844
844
|
/**
|
|
845
845
|
* Forbid webpack loader syntax in imports.
|
|
846
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
846
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-webpack-loader-syntax.md
|
|
847
847
|
*/
|
|
848
848
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
849
849
|
/**
|
|
850
850
|
* Enforce a convention in module import order.
|
|
851
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
851
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/order.md
|
|
852
852
|
*/
|
|
853
853
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
854
854
|
/**
|
|
855
855
|
* Prefer a default export if module exports a single name or multiple names.
|
|
856
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
856
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/prefer-default-export.md
|
|
857
857
|
*/
|
|
858
858
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
859
859
|
/**
|
|
860
860
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
861
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
861
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/unambiguous.md
|
|
862
862
|
*/
|
|
863
863
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
864
864
|
/**
|
|
@@ -2658,77 +2658,77 @@ interface RuleOptions {
|
|
|
2658
2658
|
'radix'?: Linter.RuleEntry<Radix>
|
|
2659
2659
|
/**
|
|
2660
2660
|
* disallow passing 'children' to void DOM elements
|
|
2661
|
-
* @see https://eslint-react.xyz/rules/dom-no-children-in-void-dom-elements
|
|
2661
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-children-in-void-dom-elements
|
|
2662
2662
|
*/
|
|
2663
2663
|
'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
|
|
2664
2664
|
/**
|
|
2665
2665
|
* disallow when a DOM component is using 'dangerouslySetInnerHTML'
|
|
2666
|
-
* @see https://eslint-react.xyz/rules/dom-no-dangerously-set-innerhtml
|
|
2666
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
2667
2667
|
*/
|
|
2668
2668
|
'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
|
|
2669
2669
|
/**
|
|
2670
2670
|
* disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
|
|
2671
|
-
* @see https://eslint-react.xyz/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2671
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
|
|
2672
2672
|
*/
|
|
2673
2673
|
'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
|
|
2674
2674
|
/**
|
|
2675
2675
|
* disallow 'findDOMNode'
|
|
2676
|
-
* @see https://eslint-react.xyz/rules/dom-no-find-dom-node
|
|
2676
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
|
|
2677
2677
|
*/
|
|
2678
2678
|
'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
|
|
2679
2679
|
/**
|
|
2680
2680
|
* enforce that button component have an explicit 'type' attribute
|
|
2681
|
-
* @see https://eslint-react.xyz/rules/dom-no-missing-button-type
|
|
2681
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
|
|
2682
2682
|
*/
|
|
2683
2683
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
|
|
2684
2684
|
/**
|
|
2685
2685
|
* enforce that 'iframe' component have an explicit 'sandbox' attribute
|
|
2686
|
-
* @see https://eslint-react.xyz/rules/dom-no-missing-iframe-sandbox
|
|
2686
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
2687
2687
|
*/
|
|
2688
2688
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2689
2689
|
/**
|
|
2690
2690
|
* enforce that namespaces are not used in React elements
|
|
2691
|
-
* @see https://eslint-react.xyz/rules/dom-no-namespace
|
|
2691
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-namespace
|
|
2692
2692
|
*/
|
|
2693
2693
|
'react-dom/no-namespace'?: Linter.RuleEntry<[]>
|
|
2694
2694
|
/**
|
|
2695
2695
|
* disallow usage of the return value of 'ReactDOM.render'
|
|
2696
|
-
* @see https://eslint-react.xyz/rules/dom-no-render-return-value
|
|
2696
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
|
|
2697
2697
|
*/
|
|
2698
2698
|
'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
|
|
2699
2699
|
/**
|
|
2700
2700
|
* disallow 'javascript:' URLs as JSX event handler prop's value
|
|
2701
|
-
* @see https://eslint-react.xyz/rules/dom-no-script-url
|
|
2701
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-script-url
|
|
2702
2702
|
*/
|
|
2703
2703
|
'react-dom/no-script-url'?: Linter.RuleEntry<[]>
|
|
2704
2704
|
/**
|
|
2705
2705
|
* disallow unsafe iframe 'sandbox' attribute combinations
|
|
2706
|
-
* @see https://eslint-react.xyz/rules/dom-no-unsafe-iframe-sandbox
|
|
2706
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2707
2707
|
*/
|
|
2708
2708
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
2709
2709
|
/**
|
|
2710
2710
|
* disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'.
|
|
2711
|
-
* @see https://eslint-react.xyz/rules/dom-no-unsafe-target-blank
|
|
2711
|
+
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
|
|
2712
2712
|
*/
|
|
2713
2713
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2714
2714
|
/**
|
|
2715
2715
|
* enforce custom hooks using other hooks
|
|
2716
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-custom-hooks-using-other-hooks
|
|
2716
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-custom-hooks-using-other-hooks
|
|
2717
2717
|
*/
|
|
2718
2718
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
2719
2719
|
/**
|
|
2720
2720
|
* enforce 'useCallback' has non-empty dependencies array
|
|
2721
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-use-callback-has-non-empty-deps
|
|
2721
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-callback-has-non-empty-deps
|
|
2722
2722
|
*/
|
|
2723
2723
|
'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2724
2724
|
/**
|
|
2725
2725
|
* enforce 'useMemo' has non-empty dependencies array
|
|
2726
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2726
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2727
2727
|
*/
|
|
2728
2728
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2729
2729
|
/**
|
|
2730
2730
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
2731
|
-
* @see https://eslint-react.xyz/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
2731
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
2732
2732
|
*/
|
|
2733
2733
|
'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
|
|
2734
2734
|
/**
|
|
@@ -2743,235 +2743,239 @@ interface RuleOptions {
|
|
|
2743
2743
|
'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
|
|
2744
2744
|
/**
|
|
2745
2745
|
* enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
|
|
2746
|
-
* @see https://eslint-react.xyz/rules/naming-convention-component-name
|
|
2746
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
|
|
2747
2747
|
*/
|
|
2748
2748
|
'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
|
|
2749
2749
|
/**
|
|
2750
2750
|
* enforce naming convention for JSX filenames
|
|
2751
|
-
* @see https://eslint-react.xyz/rules/naming-convention-filename
|
|
2751
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename
|
|
2752
2752
|
*/
|
|
2753
2753
|
'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>
|
|
2754
2754
|
/**
|
|
2755
2755
|
* enforce naming convention for JSX file extensions
|
|
2756
|
-
* @see https://eslint-react.xyz/rules/naming-convention-filename-extension
|
|
2756
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
2757
2757
|
*/
|
|
2758
2758
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
|
|
2759
2759
|
/**
|
|
2760
2760
|
* enforce destructuring and symmetric naming of 'useState' hook value and setter variables
|
|
2761
|
-
* @see https://eslint-react.xyz/rules/naming-convention-use-state
|
|
2761
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
2762
2762
|
*/
|
|
2763
2763
|
'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
|
|
2764
2764
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
|
|
2765
2765
|
/**
|
|
2766
2766
|
* enforce boolean attributes notation in JSX
|
|
2767
|
-
* @see https://eslint-react.xyz/rules/avoid-shorthand-boolean
|
|
2767
|
+
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
|
|
2768
2768
|
*/
|
|
2769
2769
|
'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2770
2770
|
/**
|
|
2771
2771
|
* enforce using fragment component instead of shorthand fragment syntax
|
|
2772
|
-
* @see https://eslint-react.xyz/rules/avoid-shorthand-fragment
|
|
2772
|
+
* @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
|
|
2773
2773
|
*/
|
|
2774
2774
|
'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2775
2775
|
/**
|
|
2776
2776
|
* require all 'forwardRef' components include a 'ref' parameter
|
|
2777
|
-
* @see https://eslint-react.xyz/rules/ensure-forward-ref-using-ref
|
|
2777
|
+
* @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
|
|
2778
2778
|
*/
|
|
2779
2779
|
'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
|
|
2780
2780
|
/**
|
|
2781
2781
|
* disallow accessing 'this.state' within 'setState'
|
|
2782
|
-
* @see https://eslint-react.xyz/rules/no-access-state-in-setstate
|
|
2782
|
+
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
2783
2783
|
*/
|
|
2784
2784
|
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
|
|
2785
2785
|
/**
|
|
2786
2786
|
* disallow using Array index as key
|
|
2787
|
-
* @see https://eslint-react.xyz/rules/no-array-index-key
|
|
2787
|
+
* @see https://eslint-react.xyz/docs/rules/no-array-index-key
|
|
2788
2788
|
*/
|
|
2789
2789
|
'react/no-array-index-key'?: Linter.RuleEntry<[]>
|
|
2790
2790
|
/**
|
|
2791
2791
|
* disallow 'Children.count'
|
|
2792
|
-
* @see https://eslint-react.xyz/rules/no-children-count
|
|
2792
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-count
|
|
2793
2793
|
*/
|
|
2794
2794
|
'react/no-children-count'?: Linter.RuleEntry<[]>
|
|
2795
2795
|
/**
|
|
2796
2796
|
* disallow 'Children.forEach'
|
|
2797
|
-
* @see https://eslint-react.xyz/rules/no-children-for-each
|
|
2797
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-for-each
|
|
2798
2798
|
*/
|
|
2799
2799
|
'react/no-children-for-each'?: Linter.RuleEntry<[]>
|
|
2800
2800
|
/**
|
|
2801
2801
|
* disallow 'Children.map'
|
|
2802
|
-
* @see https://eslint-react.xyz/rules/no-children-map
|
|
2802
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-map
|
|
2803
2803
|
*/
|
|
2804
2804
|
'react/no-children-map'?: Linter.RuleEntry<[]>
|
|
2805
2805
|
/**
|
|
2806
2806
|
* disallow 'Children.only'
|
|
2807
|
-
* @see https://eslint-react.xyz/rules/no-children-only
|
|
2807
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-only
|
|
2808
2808
|
*/
|
|
2809
2809
|
'react/no-children-only'?: Linter.RuleEntry<[]>
|
|
2810
2810
|
/**
|
|
2811
2811
|
* disallow passing of 'children' as props
|
|
2812
|
-
* @see https://eslint-react.xyz/rules/no-children-prop
|
|
2812
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-prop
|
|
2813
2813
|
*/
|
|
2814
2814
|
'react/no-children-prop'?: Linter.RuleEntry<[]>
|
|
2815
2815
|
/**
|
|
2816
2816
|
* disallow 'Children.toArray'
|
|
2817
|
-
* @see https://eslint-react.xyz/rules/no-children-to-array
|
|
2817
|
+
* @see https://eslint-react.xyz/docs/rules/no-children-to-array
|
|
2818
2818
|
*/
|
|
2819
2819
|
'react/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2820
2820
|
/**
|
|
2821
2821
|
* disallow class component
|
|
2822
|
-
* @see https://eslint-react.xyz/rules/no-class-component
|
|
2822
|
+
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2823
2823
|
*/
|
|
2824
2824
|
'react/no-class-component'?: Linter.RuleEntry<[]>
|
|
2825
2825
|
/**
|
|
2826
2826
|
* disallow 'cloneElement'
|
|
2827
|
-
* @see https://eslint-react.xyz/rules/no-clone-element
|
|
2827
|
+
* @see https://eslint-react.xyz/docs/rules/no-clone-element
|
|
2828
2828
|
*/
|
|
2829
2829
|
'react/no-clone-element'?: Linter.RuleEntry<[]>
|
|
2830
2830
|
/**
|
|
2831
2831
|
* disallow comments from being inserted as text nodes
|
|
2832
|
-
* @see https://eslint-react.xyz/rules/no-comment-textnodes
|
|
2832
|
+
* @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
|
|
2833
2833
|
*/
|
|
2834
2834
|
'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
|
|
2835
2835
|
/**
|
|
2836
2836
|
* disallow complicated conditional rendering
|
|
2837
|
-
* @see https://eslint-react.xyz/rules/no-complicated-conditional-rendering
|
|
2837
|
+
* @see https://eslint-react.xyz/docs/rules/no-complicated-conditional-rendering
|
|
2838
2838
|
* @deprecated
|
|
2839
2839
|
*/
|
|
2840
2840
|
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2841
2841
|
/**
|
|
2842
2842
|
* disallow usage of 'componentWillMount'
|
|
2843
|
-
* @see https://eslint-react.xyz/rules/no-component-will-mount
|
|
2843
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-mount
|
|
2844
2844
|
*/
|
|
2845
2845
|
'react/no-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2846
2846
|
/**
|
|
2847
2847
|
* disallow usage of 'componentWillReceiveProps'
|
|
2848
|
-
* @see https://eslint-react.xyz/rules/no-component-will-receive-props
|
|
2848
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
|
|
2849
2849
|
*/
|
|
2850
2850
|
'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2851
2851
|
/**
|
|
2852
2852
|
* disallow usage of 'componentWillUpdate'
|
|
2853
|
-
* @see https://eslint-react.xyz/rules/no-component-will-update
|
|
2853
|
+
* @see https://eslint-react.xyz/docs/rules/no-component-will-update
|
|
2854
2854
|
*/
|
|
2855
2855
|
'react/no-component-will-update'?: Linter.RuleEntry<[]>
|
|
2856
2856
|
/**
|
|
2857
2857
|
* disallow 'createRef' in function components
|
|
2858
|
-
* @see https://eslint-react.xyz/rules/no-create-ref
|
|
2858
|
+
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
2859
2859
|
*/
|
|
2860
2860
|
'react/no-create-ref'?: Linter.RuleEntry<[]>
|
|
2861
2861
|
/**
|
|
2862
2862
|
* disallow direct mutation of state
|
|
2863
|
-
* @see https://eslint-react.xyz/rules/no-direct-mutation-state
|
|
2863
|
+
* @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
|
|
2864
2864
|
*/
|
|
2865
2865
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
|
|
2866
2866
|
/**
|
|
2867
2867
|
* disallow duplicate keys in 'key' prop when rendering list
|
|
2868
|
-
* @see https://eslint-react.xyz/rules/no-duplicate-key
|
|
2868
|
+
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
2869
2869
|
*/
|
|
2870
2870
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>
|
|
2871
2871
|
/**
|
|
2872
2872
|
* disallow spreading 'key' from objects.
|
|
2873
|
-
* @see https://eslint-react.xyz/rules/no-implicit-key
|
|
2873
|
+
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
2874
2874
|
* @deprecated
|
|
2875
2875
|
*/
|
|
2876
2876
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
2877
2877
|
/**
|
|
2878
2878
|
* disallow problematic leaked values from being rendered
|
|
2879
|
-
* @see https://eslint-react.xyz/rules/no-leaked-conditional-rendering
|
|
2879
|
+
* @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
|
|
2880
2880
|
*/
|
|
2881
2881
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
2882
2882
|
/**
|
|
2883
2883
|
* require 'displayName' for memo and forwardRef components
|
|
2884
|
-
* @see https://eslint-react.xyz/rules/no-missing-component-display-name
|
|
2884
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
2885
2885
|
*/
|
|
2886
2886
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
|
|
2887
2887
|
/**
|
|
2888
2888
|
* require 'key' prop when rendering list
|
|
2889
|
-
* @see https://eslint-react.xyz/rules/no-missing-key
|
|
2889
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2890
2890
|
*/
|
|
2891
2891
|
'react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2892
2892
|
/**
|
|
2893
2893
|
* disallow usage of unstable nested components
|
|
2894
|
-
* @see https://eslint-react.xyz/rules/no-nested-components
|
|
2894
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-components
|
|
2895
2895
|
*/
|
|
2896
2896
|
'react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2897
2897
|
/**
|
|
2898
2898
|
* disallow usage of 'shouldComponentUpdate' in class component extends 'React.PureComponent'
|
|
2899
|
-
* @see https://eslint-react.xyz/rules/no-redundant-should-component-update
|
|
2899
|
+
* @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
|
|
2900
2900
|
*/
|
|
2901
2901
|
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
|
|
2902
2902
|
/**
|
|
2903
2903
|
* disallow 'setState' in 'componentDidMount'
|
|
2904
|
-
* @see https://eslint-react.xyz/rules/no-set-state-in-component-did-mount
|
|
2904
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
|
|
2905
2905
|
*/
|
|
2906
2906
|
'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2907
2907
|
/**
|
|
2908
2908
|
* disallow 'setState' in 'componentDidUpdate'
|
|
2909
|
-
* @see https://eslint-react.xyz/rules/no-set-state-in-component-did-update
|
|
2909
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2910
2910
|
*/
|
|
2911
2911
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
2912
2912
|
/**
|
|
2913
2913
|
* disallow 'setState' in 'componentWillUpdate'
|
|
2914
|
-
* @see https://eslint-react.xyz/rules/no-set-state-in-component-will-update
|
|
2914
|
+
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
2915
2915
|
*/
|
|
2916
2916
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
2917
2917
|
/**
|
|
2918
2918
|
* disallow using deprecated string refs
|
|
2919
|
-
* @see https://eslint-react.xyz/rules/no-string-refs
|
|
2919
|
+
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
2920
2920
|
*/
|
|
2921
2921
|
'react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
2922
2922
|
/**
|
|
2923
2923
|
* disallow usage of 'UNSAFE_componentWillMount'
|
|
2924
|
-
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-mount
|
|
2924
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
|
|
2925
2925
|
*/
|
|
2926
2926
|
'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
|
|
2927
2927
|
/**
|
|
2928
2928
|
* disallow usage of 'UNSAFE_componentWillReceiveProps'
|
|
2929
|
-
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-receive-props
|
|
2929
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
|
|
2930
2930
|
*/
|
|
2931
2931
|
'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
|
|
2932
2932
|
/**
|
|
2933
2933
|
* disallow usage of 'UNSAFE_componentWillUpdate'
|
|
2934
|
-
* @see https://eslint-react.xyz/rules/no-unsafe-component-will-update
|
|
2934
|
+
* @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
|
|
2935
2935
|
*/
|
|
2936
2936
|
'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
|
|
2937
2937
|
/**
|
|
2938
2938
|
* disallow passing constructed values to context providers
|
|
2939
|
-
* @see https://eslint-react.xyz/rules/no-unstable-context-value
|
|
2939
|
+
* @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
|
|
2940
2940
|
*/
|
|
2941
2941
|
'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
|
|
2942
2942
|
/**
|
|
2943
2943
|
* disallow usage of unstable value as default param in function component
|
|
2944
|
-
* @see https://eslint-react.xyz/rules/no-unstable-default-props
|
|
2944
|
+
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
2945
2945
|
*/
|
|
2946
2946
|
'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
|
|
2947
2947
|
/**
|
|
2948
2948
|
* disallow unused class component members
|
|
2949
|
-
* @see https://eslint-react.xyz/rules/no-unused-class-component-members
|
|
2949
|
+
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
2950
2950
|
*/
|
|
2951
2951
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
2952
2952
|
/**
|
|
2953
2953
|
* Prevents unused state of class component.
|
|
2954
|
-
* @see https://eslint-react.xyz/rules/no-unused-state
|
|
2954
|
+
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
2955
2955
|
*/
|
|
2956
2956
|
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2957
2957
|
/**
|
|
2958
2958
|
* disallow unnecessary fragments
|
|
2959
|
-
* @see https://eslint-react.xyz/rules/no-useless-fragment
|
|
2959
|
+
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
2960
2960
|
*/
|
|
2961
2961
|
'react/no-useless-fragment'?: Linter.RuleEntry<[]>
|
|
2962
2962
|
/**
|
|
2963
2963
|
* enforce using destructuring assignment in component props and context
|
|
2964
|
-
* @see https://eslint-react.xyz/rules/prefer-destructuring-assignment
|
|
2964
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
|
|
2965
2965
|
*/
|
|
2966
2966
|
'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
|
|
2967
|
+
/**
|
|
2968
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
|
|
2969
|
+
*/
|
|
2970
|
+
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
|
|
2967
2971
|
/**
|
|
2968
2972
|
* enforce boolean attributes notation in JSX
|
|
2969
|
-
* @see https://eslint-react.xyz/rules/prefer-shorthand-boolean
|
|
2973
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
|
|
2970
2974
|
*/
|
|
2971
2975
|
'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
|
|
2972
2976
|
/**
|
|
2973
2977
|
* enforce using fragment syntax instead of Fragment component
|
|
2974
|
-
* @see https://eslint-react.xyz/rules/prefer-shorthand-fragment
|
|
2978
|
+
* @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
|
|
2975
2979
|
*/
|
|
2976
2980
|
'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
|
|
2977
2981
|
/**
|
|
@@ -4231,6 +4235,11 @@ interface RuleOptions {
|
|
|
4231
4235
|
* @see https://typescript-eslint.io/rules/no-empty-interface
|
|
4232
4236
|
*/
|
|
4233
4237
|
'ts/no-empty-interface'?: Linter.RuleEntry<TsNoEmptyInterface>
|
|
4238
|
+
/**
|
|
4239
|
+
* Disallow accidentally using the "empty object" type
|
|
4240
|
+
* @see https://typescript-eslint.io/rules/no-empty-object-type
|
|
4241
|
+
*/
|
|
4242
|
+
'ts/no-empty-object-type'?: Linter.RuleEntry<TsNoEmptyObjectType>
|
|
4234
4243
|
/**
|
|
4235
4244
|
* Disallow the `any` type
|
|
4236
4245
|
* @see https://typescript-eslint.io/rules/no-explicit-any
|
|
@@ -11797,6 +11806,12 @@ type TsNoEmptyFunction = []|[{
|
|
|
11797
11806
|
type TsNoEmptyInterface = []|[{
|
|
11798
11807
|
allowSingleExtends?: boolean
|
|
11799
11808
|
}]
|
|
11809
|
+
// ----- ts/no-empty-object-type -----
|
|
11810
|
+
type TsNoEmptyObjectType = []|[{
|
|
11811
|
+
allowInterfaces?: ("always" | "never" | "with-single-extends")
|
|
11812
|
+
allowObjectTypes?: ("always" | "in-type-alias-with-name" | "never")
|
|
11813
|
+
allowWithName?: string
|
|
11814
|
+
}]
|
|
11800
11815
|
// ----- ts/no-explicit-any -----
|
|
11801
11816
|
type TsNoExplicitAny = []|[{
|
|
11802
11817
|
|
|
@@ -13929,7 +13944,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
13929
13944
|
onlyEquality?: boolean
|
|
13930
13945
|
}]
|
|
13931
13946
|
// Names of all the configs
|
|
13932
|
-
type ConfigNames = 'luxass/astro/setup' | 'luxass/astro/rules' | 'luxass/eslint-comments' | 'luxass/formatter/setup' | 'luxass/imports' | 'luxass/disables/imports-bin' | 'luxass/javascript' | 'luxass/disables/cli' | 'luxass/jsdoc' | 'luxass/jsonc/setup' | 'luxass/jsonc/rules' | 'luxass/markdown/setup' | 'luxass/markdown/processor' | 'luxass/markdown/parser' | 'luxass/markdown/disables' | 'luxass/node' | 'luxass/react/setup' | 'luxass/react/rules' | 'luxass/sort/package-json' | 'luxass/stylistic' | 'luxass/tailwindcss
|
|
13947
|
+
type ConfigNames = 'luxass/astro/setup' | 'luxass/astro/rules' | 'luxass/eslint-comments' | 'luxass/formatter/setup' | 'luxass/imports' | 'luxass/disables/imports-bin' | 'luxass/javascript' | 'luxass/disables/cli' | 'luxass/jsdoc' | 'luxass/jsonc/setup' | 'luxass/jsonc/rules' | 'luxass/markdown/setup' | 'luxass/markdown/processor' | 'luxass/markdown/parser' | 'luxass/markdown/disables' | 'luxass/node' | 'luxass/react/setup' | 'luxass/react/rules' | 'luxass/sort/package-json' | 'luxass/stylistic' | 'luxass/tailwindcss' | 'luxass/sort/tsconfig' | 'luxass/test/setup' | 'luxass/test/rules' | 'luxass/toml/setup' | 'luxass/toml/rules' | 'luxass/typescript/setup' | 'luxass/typescript/parser' | 'luxass/typescript/rules' | 'luxass/typescript/rules-type-aware' | 'luxass/typescript/disables/dts' | 'luxass/typescript/disables/tests' | 'luxass/typescript/disables/playground' | 'luxass/typescript/disables/javascript' | 'luxass/unicorn' | 'luxass/unocss' | 'luxass/vue/setup' | 'luxass/vue/rules' | 'luxass/yaml/setup' | 'luxass/yaml/rules' | 'luxass/yaml/github-actions'
|
|
13933
13948
|
|
|
13934
13949
|
declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
13935
13950
|
|
|
@@ -14172,6 +14187,10 @@ interface UnoCSSOptions {
|
|
|
14172
14187
|
* @default true
|
|
14173
14188
|
*/
|
|
14174
14189
|
attributify?: boolean;
|
|
14190
|
+
/**
|
|
14191
|
+
* Path to the unocss config file.
|
|
14192
|
+
*/
|
|
14193
|
+
configPath?: string;
|
|
14175
14194
|
/**
|
|
14176
14195
|
* Override rules for for files with unocss classes.
|
|
14177
14196
|
*/
|
|
@@ -14222,12 +14241,9 @@ declare function astro(options?: AstroOptions): Promise<TypedFlatConfigItem[]>;
|
|
|
14222
14241
|
|
|
14223
14242
|
interface TailwindCSSOptions {
|
|
14224
14243
|
/**
|
|
14225
|
-
*
|
|
14226
|
-
*
|
|
14227
|
-
* @default [GLOB_SRC]
|
|
14228
|
-
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
14244
|
+
* Path to the tailwindcss config file.
|
|
14229
14245
|
*/
|
|
14230
|
-
|
|
14246
|
+
configPath?: string;
|
|
14231
14247
|
/**
|
|
14232
14248
|
* Override rules for for files with tailwind classes.
|
|
14233
14249
|
*/
|