@jimmy.codes/eslint-config 5.10.0 → 5.11.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.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import * as _eslint_react_kit from '@eslint-react/kit';
|
|
|
11
11
|
import * as _stylistic_eslint_plugin from '@stylistic/eslint-plugin';
|
|
12
12
|
import * as eslint_plugin_regexp from 'eslint-plugin-regexp';
|
|
13
13
|
import * as eslint_plugin_n from 'eslint-plugin-n';
|
|
14
|
-
import * as eslint_plugin_import_x from 'eslint-plugin-import-x';
|
|
15
14
|
import * as eslint_plugin_import_x_rules_no_import_module_exports from 'eslint-plugin-import-x/rules/no-import-module-exports';
|
|
16
15
|
import * as eslint_plugin_import_x_rules_dynamic_import_chunkname from 'eslint-plugin-import-x/rules/dynamic-import-chunkname';
|
|
17
16
|
import * as eslint_plugin_import_x_rules_no_useless_path_segments from 'eslint-plugin-import-x/rules/no-useless-path-segments';
|
|
@@ -41,7 +40,7 @@ import * as eslint_plugin_import_x_rules_namespace from 'eslint-plugin-import-x/
|
|
|
41
40
|
import * as eslint_plugin_import_x_rules_named from 'eslint-plugin-import-x/rules/named';
|
|
42
41
|
import * as eslint_plugin_import_x_utils from 'eslint-plugin-import-x/utils';
|
|
43
42
|
import * as eslint_plugin_import_x_rules_no_unresolved from 'eslint-plugin-import-x/rules/no-unresolved';
|
|
44
|
-
import * as
|
|
43
|
+
import * as eslint_plugin_import_x from 'eslint-plugin-import-x';
|
|
45
44
|
|
|
46
45
|
declare function nextjsConfig(): Promise<{
|
|
47
46
|
files: string[];
|
|
@@ -109,11 +108,7 @@ declare function playwrightConfig(): Promise<{
|
|
|
109
108
|
"playwright/no-useless-not": "error";
|
|
110
109
|
"playwright/no-wait-for-selector": "error";
|
|
111
110
|
"playwright/no-wait-for-timeout": "error";
|
|
112
|
-
"playwright/valid-title":
|
|
113
|
-
mustMatch: {
|
|
114
|
-
it: string;
|
|
115
|
-
};
|
|
116
|
-
}];
|
|
111
|
+
"playwright/valid-title": "off";
|
|
117
112
|
};
|
|
118
113
|
ignores?: string[];
|
|
119
114
|
language?: string;
|
|
@@ -479,6 +474,7 @@ declare function tanstackQueryConfig(): Promise<{
|
|
|
479
474
|
"@tanstack/query/infinite-query-property-order": "error";
|
|
480
475
|
"@tanstack/query/no-rest-destructuring": "error";
|
|
481
476
|
"@tanstack/query/no-unstable-deps": "error";
|
|
477
|
+
"@tanstack/query/no-void-query-fn": "error";
|
|
482
478
|
"@tanstack/query/stable-query-client": "error";
|
|
483
479
|
};
|
|
484
480
|
}[]>;
|
|
@@ -1667,7 +1663,9 @@ declare function reactConfig(): Promise<{
|
|
|
1667
1663
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1668
1664
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1669
1665
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1666
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1670
1667
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1668
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1671
1669
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1672
1670
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1673
1671
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1746,7 +1744,9 @@ declare function reactConfig(): Promise<{
|
|
|
1746
1744
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1747
1745
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1748
1746
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1747
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1749
1748
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1749
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1750
1750
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1751
1751
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1752
1752
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1825,7 +1825,9 @@ declare function reactConfig(): Promise<{
|
|
|
1825
1825
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1826
1826
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1827
1827
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1828
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1828
1829
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1830
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1829
1831
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1830
1832
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1831
1833
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1902,7 +1904,9 @@ declare function reactConfig(): Promise<{
|
|
|
1902
1904
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1903
1905
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1904
1906
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1907
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1905
1908
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1909
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1906
1910
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1907
1911
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1908
1912
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2588,7 +2592,7 @@ interface RuleOptions {
|
|
|
2588
2592
|
*/
|
|
2589
2593
|
'@eslint-react/jsx-no-undef'?: Linter.RuleEntry<[]>
|
|
2590
2594
|
/**
|
|
2591
|
-
* Marks React variables as used when JSX is used
|
|
2595
|
+
* Marks React variables as used when JSX is used.
|
|
2592
2596
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
2593
2597
|
*/
|
|
2594
2598
|
'@eslint-react/jsx-uses-react'?: Linter.RuleEntry<[]>
|
|
@@ -2663,7 +2667,7 @@ interface RuleOptions {
|
|
|
2663
2667
|
*/
|
|
2664
2668
|
'@eslint-react/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2665
2669
|
/**
|
|
2666
|
-
* Disallow class components.
|
|
2670
|
+
* Disallow class components except for error boundaries.
|
|
2667
2671
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2668
2672
|
*/
|
|
2669
2673
|
'@eslint-react/no-class-component'?: Linter.RuleEntry<[]>
|
|
@@ -2762,6 +2766,11 @@ interface RuleOptions {
|
|
|
2762
2766
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2763
2767
|
*/
|
|
2764
2768
|
'@eslint-react/no-missing-key'?: Linter.RuleEntry<[]>
|
|
2769
|
+
/**
|
|
2770
|
+
* Prevents incorrect usage of `captureOwnerStack`.
|
|
2771
|
+
* @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
|
|
2772
|
+
*/
|
|
2773
|
+
'@eslint-react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>
|
|
2765
2774
|
/**
|
|
2766
2775
|
* Disallow nesting component definitions inside other components.
|
|
2767
2776
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
@@ -2772,6 +2781,11 @@ interface RuleOptions {
|
|
|
2772
2781
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2773
2782
|
*/
|
|
2774
2783
|
'@eslint-react/no-nested-components'?: Linter.RuleEntry<[]>
|
|
2784
|
+
/**
|
|
2785
|
+
* Disallow nesting lazy component declarations inside other components.
|
|
2786
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2787
|
+
*/
|
|
2788
|
+
'@eslint-react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
|
|
2775
2789
|
/**
|
|
2776
2790
|
* Disallow `propTypes` in favor of TypeScript or another type-checking solution.
|
|
2777
2791
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
@@ -2788,7 +2802,7 @@ interface RuleOptions {
|
|
|
2788
2802
|
*/
|
|
2789
2803
|
'@eslint-react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2790
2804
|
/**
|
|
2791
|
-
*
|
|
2805
|
+
* Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
|
|
2792
2806
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2793
2807
|
*/
|
|
2794
2808
|
'@eslint-react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
@@ -2798,7 +2812,7 @@ interface RuleOptions {
|
|
|
2798
2812
|
*/
|
|
2799
2813
|
'@eslint-react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
2800
2814
|
/**
|
|
2801
|
-
*
|
|
2815
|
+
* Replaces string refs with callback refs.
|
|
2802
2816
|
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
2803
2817
|
*/
|
|
2804
2818
|
'@eslint-react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
@@ -3507,6 +3521,11 @@ interface RuleOptions {
|
|
|
3507
3521
|
* @see https://tanstack.com/query/latest/docs/eslint/no-unstable-deps
|
|
3508
3522
|
*/
|
|
3509
3523
|
'@tanstack/query/no-unstable-deps'?: Linter.RuleEntry<[]>
|
|
3524
|
+
/**
|
|
3525
|
+
* Ensures queryFn returns a non-undefined value
|
|
3526
|
+
* @see https://tanstack.com/query/latest/docs/eslint/no-void-query-fn
|
|
3527
|
+
*/
|
|
3528
|
+
'@tanstack/query/no-void-query-fn'?: Linter.RuleEntry<[]>
|
|
3510
3529
|
/**
|
|
3511
3530
|
* Makes sure that QueryClient is stable
|
|
3512
3531
|
* @see https://tanstack.com/query/latest/docs/eslint/stable-query-client
|
|
@@ -4702,233 +4721,233 @@ interface RuleOptions {
|
|
|
4702
4721
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
4703
4722
|
/**
|
|
4704
4723
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4705
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/consistent-type-specifier-style.md
|
|
4706
4725
|
*/
|
|
4707
4726
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
4708
4727
|
/**
|
|
4709
4728
|
* Ensure a default export is present, given a default import.
|
|
4710
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/default.md
|
|
4711
4730
|
*/
|
|
4712
4731
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
4713
4732
|
/**
|
|
4714
4733
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4715
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/dynamic-import-chunkname.md
|
|
4716
4735
|
*/
|
|
4717
4736
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
4718
4737
|
/**
|
|
4719
4738
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4720
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/export.md
|
|
4721
4740
|
*/
|
|
4722
4741
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
4723
4742
|
/**
|
|
4724
4743
|
* Ensure all exports appear after other statements.
|
|
4725
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/exports-last.md
|
|
4726
4745
|
*/
|
|
4727
4746
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
4728
4747
|
/**
|
|
4729
4748
|
* Ensure consistent use of file extension within the import path.
|
|
4730
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4749
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/extensions.md
|
|
4731
4750
|
*/
|
|
4732
4751
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
4733
4752
|
/**
|
|
4734
4753
|
* Ensure all imports appear before other statements.
|
|
4735
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4754
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/first.md
|
|
4736
4755
|
*/
|
|
4737
4756
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
4738
4757
|
/**
|
|
4739
4758
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4740
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/group-exports.md
|
|
4741
4760
|
*/
|
|
4742
4761
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
4743
4762
|
/**
|
|
4744
4763
|
* Replaced by `import-x/first`.
|
|
4745
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/imports-first.md
|
|
4746
4765
|
* @deprecated
|
|
4747
4766
|
*/
|
|
4748
4767
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
4749
4768
|
/**
|
|
4750
4769
|
* Enforce the maximum number of dependencies a module can have.
|
|
4751
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4770
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/max-dependencies.md
|
|
4752
4771
|
*/
|
|
4753
4772
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
4754
4773
|
/**
|
|
4755
4774
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4756
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4775
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/named.md
|
|
4757
4776
|
*/
|
|
4758
4777
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
4759
4778
|
/**
|
|
4760
4779
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4761
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4780
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/namespace.md
|
|
4762
4781
|
*/
|
|
4763
4782
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
4764
4783
|
/**
|
|
4765
4784
|
* Enforce a newline after import statements.
|
|
4766
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4785
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/newline-after-import.md
|
|
4767
4786
|
*/
|
|
4768
4787
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
4769
4788
|
/**
|
|
4770
4789
|
* Forbid import of modules using absolute paths.
|
|
4771
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4790
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-absolute-path.md
|
|
4772
4791
|
*/
|
|
4773
4792
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
4774
4793
|
/**
|
|
4775
4794
|
* Forbid AMD `require` and `define` calls.
|
|
4776
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4795
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-amd.md
|
|
4777
4796
|
*/
|
|
4778
4797
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
4779
4798
|
/**
|
|
4780
4799
|
* Forbid anonymous values as default exports.
|
|
4781
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4800
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-anonymous-default-export.md
|
|
4782
4801
|
*/
|
|
4783
4802
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
4784
4803
|
/**
|
|
4785
4804
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4786
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-commonjs.md
|
|
4787
4806
|
*/
|
|
4788
4807
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
4789
4808
|
/**
|
|
4790
4809
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4791
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-cycle.md
|
|
4792
4811
|
*/
|
|
4793
4812
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
4794
4813
|
/**
|
|
4795
4814
|
* Forbid default exports.
|
|
4796
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-default-export.md
|
|
4797
4816
|
*/
|
|
4798
4817
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
4799
4818
|
/**
|
|
4800
4819
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4801
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-deprecated.md
|
|
4802
4821
|
*/
|
|
4803
4822
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
4804
4823
|
/**
|
|
4805
4824
|
* Forbid repeated import of the same module in multiple places.
|
|
4806
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-duplicates.md
|
|
4807
4826
|
*/
|
|
4808
4827
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
4809
4828
|
/**
|
|
4810
4829
|
* Forbid `require()` calls with expressions.
|
|
4811
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-dynamic-require.md
|
|
4812
4831
|
*/
|
|
4813
4832
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
4814
4833
|
/**
|
|
4815
4834
|
* Forbid empty named import blocks.
|
|
4816
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-empty-named-blocks.md
|
|
4817
4836
|
*/
|
|
4818
4837
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
4819
4838
|
/**
|
|
4820
4839
|
* Forbid the use of extraneous packages.
|
|
4821
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-extraneous-dependencies.md
|
|
4822
4841
|
*/
|
|
4823
4842
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
4824
4843
|
/**
|
|
4825
4844
|
* Forbid import statements with CommonJS module.exports.
|
|
4826
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-import-module-exports.md
|
|
4827
4846
|
*/
|
|
4828
4847
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
4829
4848
|
/**
|
|
4830
4849
|
* Forbid importing the submodules of other modules.
|
|
4831
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-internal-modules.md
|
|
4832
4851
|
*/
|
|
4833
4852
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
4834
4853
|
/**
|
|
4835
4854
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4836
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-mutable-exports.md
|
|
4837
4856
|
*/
|
|
4838
4857
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
4839
4858
|
/**
|
|
4840
4859
|
* Forbid use of exported name as identifier of default export.
|
|
4841
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-as-default.md
|
|
4842
4861
|
*/
|
|
4843
4862
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
4844
4863
|
/**
|
|
4845
4864
|
* Forbid use of exported name as property of default export.
|
|
4846
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-as-default-member.md
|
|
4847
4866
|
*/
|
|
4848
4867
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
4849
4868
|
/**
|
|
4850
4869
|
* Forbid named default exports.
|
|
4851
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-default.md
|
|
4852
4871
|
*/
|
|
4853
4872
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
4854
4873
|
/**
|
|
4855
4874
|
* Forbid named exports.
|
|
4856
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-named-export.md
|
|
4857
4876
|
*/
|
|
4858
4877
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
4859
4878
|
/**
|
|
4860
4879
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4861
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-namespace.md
|
|
4862
4881
|
*/
|
|
4863
4882
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
4864
4883
|
/**
|
|
4865
4884
|
* Forbid Node.js builtin modules.
|
|
4866
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-nodejs-modules.md
|
|
4867
4886
|
*/
|
|
4868
4887
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
4869
4888
|
/**
|
|
4870
4889
|
* Forbid importing packages through relative paths.
|
|
4871
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-relative-packages.md
|
|
4872
4891
|
*/
|
|
4873
4892
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
4874
4893
|
/**
|
|
4875
4894
|
* Forbid importing modules from parent directories.
|
|
4876
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4895
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-relative-parent-imports.md
|
|
4877
4896
|
*/
|
|
4878
4897
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
4879
4898
|
/**
|
|
4880
4899
|
* Forbid importing a default export by a different name.
|
|
4881
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4900
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-rename-default.md
|
|
4882
4901
|
*/
|
|
4883
4902
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
4884
4903
|
/**
|
|
4885
4904
|
* Enforce which files can be imported in a given folder.
|
|
4886
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4905
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-restricted-paths.md
|
|
4887
4906
|
*/
|
|
4888
4907
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
4889
4908
|
/**
|
|
4890
4909
|
* Forbid a module from importing itself.
|
|
4891
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4910
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-self-import.md
|
|
4892
4911
|
*/
|
|
4893
4912
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
4894
4913
|
/**
|
|
4895
4914
|
* Forbid unassigned imports.
|
|
4896
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4915
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unassigned-import.md
|
|
4897
4916
|
*/
|
|
4898
4917
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
4899
4918
|
/**
|
|
4900
4919
|
* Ensure imports point to a file/module that can be resolved.
|
|
4901
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4920
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unresolved.md
|
|
4902
4921
|
*/
|
|
4903
4922
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
4904
4923
|
/**
|
|
4905
4924
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4906
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4925
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-unused-modules.md
|
|
4907
4926
|
*/
|
|
4908
4927
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
4909
4928
|
/**
|
|
4910
4929
|
* Forbid unnecessary path segments in import and require statements.
|
|
4911
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4930
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-useless-path-segments.md
|
|
4912
4931
|
*/
|
|
4913
4932
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
4914
4933
|
/**
|
|
4915
4934
|
* Forbid webpack loader syntax in imports.
|
|
4916
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4935
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/no-webpack-loader-syntax.md
|
|
4917
4936
|
*/
|
|
4918
4937
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
4919
4938
|
/**
|
|
4920
4939
|
* Enforce a convention in module import order.
|
|
4921
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4940
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/order.md
|
|
4922
4941
|
*/
|
|
4923
4942
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
4924
4943
|
/**
|
|
4925
4944
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4926
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4945
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/prefer-default-export.md
|
|
4927
4946
|
*/
|
|
4928
4947
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
4929
4948
|
/**
|
|
4930
4949
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4931
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.
|
|
4950
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.3/docs/rules/unambiguous.md
|
|
4932
4951
|
*/
|
|
4933
4952
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
4934
4953
|
/**
|
|
@@ -9031,6 +9050,11 @@ interface RuleOptions {
|
|
|
9031
9050
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
9032
9051
|
*/
|
|
9033
9052
|
'vitest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
9053
|
+
/**
|
|
9054
|
+
* enforce using a function as a describe title over an equivalent string
|
|
9055
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-describe-function-title.md
|
|
9056
|
+
*/
|
|
9057
|
+
'vitest/prefer-describe-function-title'?: Linter.RuleEntry<[]>
|
|
9034
9058
|
/**
|
|
9035
9059
|
* enforce using `each` rather than manual loops
|
|
9036
9060
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
@@ -17258,13 +17282,17 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
17258
17282
|
"import-x/resolver-next": {
|
|
17259
17283
|
interfaceVersion: number;
|
|
17260
17284
|
name: string;
|
|
17261
|
-
resolve(source: string, file: string): ResolvedResult;
|
|
17285
|
+
resolve(source: string, file: string): eslint_plugin_import_x.ResolvedResult;
|
|
17262
17286
|
}[];
|
|
17263
17287
|
};
|
|
17264
17288
|
} | {
|
|
17265
17289
|
readonly name: "jimmy.codes/imports";
|
|
17266
17290
|
readonly plugins: {
|
|
17267
17291
|
readonly "import-x": {
|
|
17292
|
+
meta: {
|
|
17293
|
+
name: string;
|
|
17294
|
+
version: string;
|
|
17295
|
+
};
|
|
17268
17296
|
configs: {
|
|
17269
17297
|
recommended: {
|
|
17270
17298
|
plugins: ["import-x"];
|
|
@@ -17302,7 +17330,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
17302
17330
|
"import-x/no-duplicates": 1;
|
|
17303
17331
|
};
|
|
17304
17332
|
};
|
|
17305
|
-
"stage-0":
|
|
17333
|
+
"stage-0": eslint_plugin_import_x.PluginConfig;
|
|
17306
17334
|
react: {
|
|
17307
17335
|
settings: {
|
|
17308
17336
|
"import-x/extensions": (".js" | ".jsx")[];
|
|
@@ -17344,14 +17372,14 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
17344
17372
|
};
|
|
17345
17373
|
};
|
|
17346
17374
|
flatConfigs: {
|
|
17347
|
-
recommended:
|
|
17348
|
-
errors:
|
|
17349
|
-
warnings:
|
|
17350
|
-
"stage-0":
|
|
17351
|
-
react:
|
|
17352
|
-
"react-native":
|
|
17353
|
-
electron:
|
|
17354
|
-
typescript:
|
|
17375
|
+
recommended: eslint_plugin_import_x.PluginFlatConfig;
|
|
17376
|
+
errors: eslint_plugin_import_x.PluginFlatConfig;
|
|
17377
|
+
warnings: eslint_plugin_import_x.PluginFlatConfig;
|
|
17378
|
+
"stage-0": eslint_plugin_import_x.PluginFlatConfig;
|
|
17379
|
+
react: eslint_plugin_import_x.PluginFlatConfig;
|
|
17380
|
+
"react-native": eslint_plugin_import_x.PluginFlatConfig;
|
|
17381
|
+
electron: eslint_plugin_import_x.PluginFlatConfig;
|
|
17382
|
+
typescript: eslint_plugin_import_x.PluginFlatConfig;
|
|
17355
17383
|
};
|
|
17356
17384
|
rules: {
|
|
17357
17385
|
"no-unresolved": _typescript_eslint_utils_ts_eslint.RuleModule<eslint_plugin_import_x_rules_no_unresolved.MessageId, [(eslint_plugin_import_x_rules_no_unresolved.Options | undefined)?], eslint_plugin_import_x_utils.ImportXPluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -18871,7 +18899,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
18871
18899
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18872
18900
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18873
18901
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18902
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18874
18903
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18904
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18875
18905
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18876
18906
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18877
18907
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -18950,7 +18980,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
18950
18980
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18951
18981
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18952
18982
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18983
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18953
18984
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18985
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18954
18986
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18955
18987
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18956
18988
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -19029,7 +19061,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19029
19061
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19030
19062
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19031
19063
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19064
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19032
19065
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19066
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19033
19067
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19034
19068
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19035
19069
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -19106,7 +19140,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19106
19140
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19107
19141
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19108
19142
|
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "unexpectedFragmentSyntax", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19143
|
+
readonly "no-misused-capture-owner-stack": _typescript_eslint_utils_ts_eslint.RuleModule<"useNamespaceImport" | "missingDevelopmentOnlyCheck", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19109
19144
|
readonly "no-nested-component-definitions": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19145
|
+
readonly "no-nested-lazy-component-declarations": _typescript_eslint_utils_ts_eslint.RuleModule<"noNestedComponentDefinitions", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19110
19146
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19111
19147
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19112
19148
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -19525,6 +19561,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19525
19561
|
"@tanstack/query/infinite-query-property-order": "error";
|
|
19526
19562
|
"@tanstack/query/no-rest-destructuring": "error";
|
|
19527
19563
|
"@tanstack/query/no-unstable-deps": "error";
|
|
19564
|
+
"@tanstack/query/no-void-query-fn": "error";
|
|
19528
19565
|
"@tanstack/query/stable-query-client": "error";
|
|
19529
19566
|
};
|
|
19530
19567
|
} | {
|
|
@@ -19688,11 +19725,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19688
19725
|
"playwright/no-useless-not": "error";
|
|
19689
19726
|
"playwright/no-wait-for-selector": "error";
|
|
19690
19727
|
"playwright/no-wait-for-timeout": "error";
|
|
19691
|
-
"playwright/valid-title":
|
|
19692
|
-
mustMatch: {
|
|
19693
|
-
it: string;
|
|
19694
|
-
};
|
|
19695
|
-
}];
|
|
19728
|
+
"playwright/valid-title": "off";
|
|
19696
19729
|
};
|
|
19697
19730
|
ignores?: string[];
|
|
19698
19731
|
language?: string;
|
package/dist/index.js
CHANGED
|
@@ -580,12 +580,12 @@ var defineConfig = async ({
|
|
|
580
580
|
const featureConfigs = await Promise.all([
|
|
581
581
|
isTypescriptEnabled && unwrap(import("./typescript-IBCLQD7Q.js")),
|
|
582
582
|
isReactEnabled && unwrap(import("./react-6ERTZG2I.js")),
|
|
583
|
-
isTanstackQueryEnabled && unwrap(import("./tanstack-query-
|
|
583
|
+
isTanstackQueryEnabled && unwrap(import("./tanstack-query-QBZ3MKQ7.js")),
|
|
584
584
|
isAstroEnabled && unwrap(import("./astro-Z5RFF624.js")),
|
|
585
585
|
isJestEnabled && unwrap(import("./jest-7NR7TDOP.js")),
|
|
586
586
|
isVitestEnabled && unwrap(import("./vitest-LSKPTQM4.js")),
|
|
587
587
|
isTestingLibraryEnabled && unwrap(import("./testing-library-7RTMAEOX.js")),
|
|
588
|
-
isPlaywrightEnabled && unwrap(import("./playwright-
|
|
588
|
+
isPlaywrightEnabled && unwrap(import("./playwright-BIJ7HLQZ.js")),
|
|
589
589
|
isStorybookEnabled && unwrap(import("./storybook-XHFO7L4T.js")),
|
|
590
590
|
isNextjsEnabled && unwrap(import("./nextjs-7V464KOE.js"))
|
|
591
591
|
]);
|
|
@@ -27,14 +27,7 @@ var playwrightRules = async () => {
|
|
|
27
27
|
"playwright/no-useless-not": "error",
|
|
28
28
|
"playwright/no-wait-for-selector": "error",
|
|
29
29
|
"playwright/no-wait-for-timeout": "error",
|
|
30
|
-
"playwright/valid-title":
|
|
31
|
-
"error",
|
|
32
|
-
{
|
|
33
|
-
mustMatch: {
|
|
34
|
-
it: "^should"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
30
|
+
"playwright/valid-title": "off"
|
|
38
31
|
};
|
|
39
32
|
};
|
|
40
33
|
|
|
@@ -23,6 +23,7 @@ async function tanstackQueryConfig() {
|
|
|
23
23
|
"@tanstack/query/infinite-query-property-order": "error",
|
|
24
24
|
"@tanstack/query/no-rest-destructuring": "error",
|
|
25
25
|
"@tanstack/query/no-unstable-deps": "error",
|
|
26
|
+
"@tanstack/query/no-void-query-fn": "error",
|
|
26
27
|
"@tanstack/query/stable-query-client": "error"
|
|
27
28
|
}
|
|
28
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"description": "A pragmatic and opinionated ESLint config for modern development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
27
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
28
|
-
"@eslint-react/kit": "^1.
|
|
29
|
-
"@eslint-react/shared": "^1.
|
|
26
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
27
|
+
"@eslint-react/eslint-plugin": "^1.47.2",
|
|
28
|
+
"@eslint-react/kit": "^1.47.2",
|
|
29
|
+
"@eslint-react/shared": "^1.47.2",
|
|
30
30
|
"@eslint/js": "^9.24.0",
|
|
31
|
-
"@next/eslint-plugin-next": "^15.
|
|
31
|
+
"@next/eslint-plugin-next": "^15.3.0",
|
|
32
32
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
33
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
33
|
+
"@tanstack/eslint-plugin-query": "^5.73.3",
|
|
34
34
|
"@types/eslint": "9.6.1",
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
36
|
-
"@typescript-eslint/utils": "^8.
|
|
37
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
35
|
+
"@typescript-eslint/parser": "^8.30.1",
|
|
36
|
+
"@typescript-eslint/utils": "^8.30.1",
|
|
37
|
+
"@vitest/eslint-plugin": "^1.1.42",
|
|
38
38
|
"astro-eslint-parser": "^1.2.2",
|
|
39
|
-
"eslint-config-prettier": "^10.1.
|
|
40
|
-
"eslint-import-resolver-typescript": "^4.3.
|
|
39
|
+
"eslint-config-prettier": "^10.1.2",
|
|
40
|
+
"eslint-import-resolver-typescript": "^4.3.2",
|
|
41
41
|
"eslint-plugin-astro": "^1.3.1",
|
|
42
|
-
"eslint-plugin-import-x": "^4.10.
|
|
42
|
+
"eslint-plugin-import-x": "^4.10.3",
|
|
43
43
|
"eslint-plugin-jest": "^28.11.0",
|
|
44
44
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
45
45
|
"eslint-plugin-jsdoc": "^50.6.9",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"eslint-plugin-n": "^17.17.0",
|
|
48
48
|
"eslint-plugin-perfectionist": "^4.11.0",
|
|
49
49
|
"eslint-plugin-playwright": "^2.2.0",
|
|
50
|
-
"eslint-plugin-react-compiler": "19.0.0-beta-
|
|
50
|
+
"eslint-plugin-react-compiler": "19.0.0-beta-ebf51a3-20250411",
|
|
51
51
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
52
52
|
"eslint-plugin-react-refresh": "0.4.19",
|
|
53
53
|
"eslint-plugin-regexp": "^2.7.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"eslint-plugin-unicorn": "^58.0.0",
|
|
57
57
|
"globals": "^16.0.0",
|
|
58
58
|
"local-pkg": "^1.1.1",
|
|
59
|
-
"typescript-eslint": "^8.
|
|
59
|
+
"typescript-eslint": "^8.30.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"eslint": "^9.10.0"
|