@jimmy.codes/eslint-config 5.9.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 +116 -67
- package/dist/index.js +5 -8
- package/dist/{jest-AHG2WRSU.js → jest-7NR7TDOP.js} +9 -1
- package/dist/{playwright-U4PCWDYV.js → playwright-BIJ7HLQZ.js} +2 -1
- package/dist/{tanstack-query-P4IBOLDK.js → tanstack-query-QBZ3MKQ7.js} +1 -0
- package/dist/{vitest-YI6KNRZE.js → vitest-LSKPTQM4.js} +8 -1
- package/package.json +15 -15
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,6 +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";
|
|
111
|
+
"playwright/valid-title": "off";
|
|
112
112
|
};
|
|
113
113
|
ignores?: string[];
|
|
114
114
|
language?: string;
|
|
@@ -237,7 +237,11 @@ declare function vitestConfig(): Promise<{
|
|
|
237
237
|
"vitest/require-top-level-describe": "off";
|
|
238
238
|
"vitest/valid-expect": "error";
|
|
239
239
|
"vitest/valid-expect-in-promise": "error";
|
|
240
|
-
"vitest/valid-title": "error"
|
|
240
|
+
"vitest/valid-title": ["error", {
|
|
241
|
+
mustMatch: {
|
|
242
|
+
it: string;
|
|
243
|
+
};
|
|
244
|
+
}];
|
|
241
245
|
"vitest/expect-expect": "error";
|
|
242
246
|
"vitest/valid-describe-callback": "error";
|
|
243
247
|
"vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
@@ -291,6 +295,11 @@ declare function jestConfig(): Promise<{
|
|
|
291
295
|
"jest/require-to-throw-message": "error";
|
|
292
296
|
"jest/require-top-level-describe": "off";
|
|
293
297
|
"jest/unbound-method": "off";
|
|
298
|
+
"jest/valid-title": ["error", {
|
|
299
|
+
mustMatch: {
|
|
300
|
+
it: string;
|
|
301
|
+
};
|
|
302
|
+
}];
|
|
294
303
|
};
|
|
295
304
|
files: Array<string | string[]>;
|
|
296
305
|
ignores: string[];
|
|
@@ -465,6 +474,7 @@ declare function tanstackQueryConfig(): Promise<{
|
|
|
465
474
|
"@tanstack/query/infinite-query-property-order": "error";
|
|
466
475
|
"@tanstack/query/no-rest-destructuring": "error";
|
|
467
476
|
"@tanstack/query/no-unstable-deps": "error";
|
|
477
|
+
"@tanstack/query/no-void-query-fn": "error";
|
|
468
478
|
"@tanstack/query/stable-query-client": "error";
|
|
469
479
|
};
|
|
470
480
|
}[]>;
|
|
@@ -1653,7 +1663,9 @@ declare function reactConfig(): Promise<{
|
|
|
1653
1663
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1654
1664
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1655
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>;
|
|
1656
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>;
|
|
1657
1669
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1658
1670
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1659
1671
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1732,7 +1744,9 @@ declare function reactConfig(): Promise<{
|
|
|
1732
1744
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1733
1745
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1734
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>;
|
|
1735
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>;
|
|
1736
1750
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1737
1751
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1738
1752
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1811,7 +1825,9 @@ declare function reactConfig(): Promise<{
|
|
|
1811
1825
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1812
1826
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1813
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>;
|
|
1814
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>;
|
|
1815
1831
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1816
1832
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1817
1833
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1888,7 +1904,9 @@ declare function reactConfig(): Promise<{
|
|
|
1888
1904
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1889
1905
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1890
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>;
|
|
1891
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>;
|
|
1892
1910
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1893
1911
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1894
1912
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2574,7 +2592,7 @@ interface RuleOptions {
|
|
|
2574
2592
|
*/
|
|
2575
2593
|
'@eslint-react/jsx-no-undef'?: Linter.RuleEntry<[]>
|
|
2576
2594
|
/**
|
|
2577
|
-
* Marks React variables as used when JSX is used
|
|
2595
|
+
* Marks React variables as used when JSX is used.
|
|
2578
2596
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-react
|
|
2579
2597
|
*/
|
|
2580
2598
|
'@eslint-react/jsx-uses-react'?: Linter.RuleEntry<[]>
|
|
@@ -2649,7 +2667,7 @@ interface RuleOptions {
|
|
|
2649
2667
|
*/
|
|
2650
2668
|
'@eslint-react/no-children-to-array'?: Linter.RuleEntry<[]>
|
|
2651
2669
|
/**
|
|
2652
|
-
* Disallow class components.
|
|
2670
|
+
* Disallow class components except for error boundaries.
|
|
2653
2671
|
* @see https://eslint-react.xyz/docs/rules/no-class-component
|
|
2654
2672
|
*/
|
|
2655
2673
|
'@eslint-react/no-class-component'?: Linter.RuleEntry<[]>
|
|
@@ -2748,6 +2766,11 @@ interface RuleOptions {
|
|
|
2748
2766
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
2749
2767
|
*/
|
|
2750
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<[]>
|
|
2751
2774
|
/**
|
|
2752
2775
|
* Disallow nesting component definitions inside other components.
|
|
2753
2776
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
@@ -2758,6 +2781,11 @@ interface RuleOptions {
|
|
|
2758
2781
|
* @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
|
|
2759
2782
|
*/
|
|
2760
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<[]>
|
|
2761
2789
|
/**
|
|
2762
2790
|
* Disallow `propTypes` in favor of TypeScript or another type-checking solution.
|
|
2763
2791
|
* @see https://eslint-react.xyz/docs/rules/no-prop-types
|
|
@@ -2774,7 +2802,7 @@ interface RuleOptions {
|
|
|
2774
2802
|
*/
|
|
2775
2803
|
'@eslint-react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
|
|
2776
2804
|
/**
|
|
2777
|
-
*
|
|
2805
|
+
* Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
|
|
2778
2806
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
|
|
2779
2807
|
*/
|
|
2780
2808
|
'@eslint-react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
@@ -2784,7 +2812,7 @@ interface RuleOptions {
|
|
|
2784
2812
|
*/
|
|
2785
2813
|
'@eslint-react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
2786
2814
|
/**
|
|
2787
|
-
*
|
|
2815
|
+
* Replaces string refs with callback refs.
|
|
2788
2816
|
* @see https://eslint-react.xyz/docs/rules/no-string-refs
|
|
2789
2817
|
*/
|
|
2790
2818
|
'@eslint-react/no-string-refs'?: Linter.RuleEntry<[]>
|
|
@@ -3493,6 +3521,11 @@ interface RuleOptions {
|
|
|
3493
3521
|
* @see https://tanstack.com/query/latest/docs/eslint/no-unstable-deps
|
|
3494
3522
|
*/
|
|
3495
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<[]>
|
|
3496
3529
|
/**
|
|
3497
3530
|
* Makes sure that QueryClient is stable
|
|
3498
3531
|
* @see https://tanstack.com/query/latest/docs/eslint/stable-query-client
|
|
@@ -4688,233 +4721,233 @@ interface RuleOptions {
|
|
|
4688
4721
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
4689
4722
|
/**
|
|
4690
4723
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4691
|
-
* @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
|
|
4692
4725
|
*/
|
|
4693
4726
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
4694
4727
|
/**
|
|
4695
4728
|
* Ensure a default export is present, given a default import.
|
|
4696
|
-
* @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
|
|
4697
4730
|
*/
|
|
4698
4731
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
4699
4732
|
/**
|
|
4700
4733
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4701
|
-
* @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
|
|
4702
4735
|
*/
|
|
4703
4736
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
4704
4737
|
/**
|
|
4705
4738
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4706
|
-
* @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
|
|
4707
4740
|
*/
|
|
4708
4741
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
4709
4742
|
/**
|
|
4710
4743
|
* Ensure all exports appear after other statements.
|
|
4711
|
-
* @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
|
|
4712
4745
|
*/
|
|
4713
4746
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
4714
4747
|
/**
|
|
4715
4748
|
* Ensure consistent use of file extension within the import path.
|
|
4716
|
-
* @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
|
|
4717
4750
|
*/
|
|
4718
4751
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
4719
4752
|
/**
|
|
4720
4753
|
* Ensure all imports appear before other statements.
|
|
4721
|
-
* @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
|
|
4722
4755
|
*/
|
|
4723
4756
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
4724
4757
|
/**
|
|
4725
4758
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4726
|
-
* @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
|
|
4727
4760
|
*/
|
|
4728
4761
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
4729
4762
|
/**
|
|
4730
4763
|
* Replaced by `import-x/first`.
|
|
4731
|
-
* @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
|
|
4732
4765
|
* @deprecated
|
|
4733
4766
|
*/
|
|
4734
4767
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
4735
4768
|
/**
|
|
4736
4769
|
* Enforce the maximum number of dependencies a module can have.
|
|
4737
|
-
* @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
|
|
4738
4771
|
*/
|
|
4739
4772
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
4740
4773
|
/**
|
|
4741
4774
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4742
|
-
* @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
|
|
4743
4776
|
*/
|
|
4744
4777
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
4745
4778
|
/**
|
|
4746
4779
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4747
|
-
* @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
|
|
4748
4781
|
*/
|
|
4749
4782
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
4750
4783
|
/**
|
|
4751
4784
|
* Enforce a newline after import statements.
|
|
4752
|
-
* @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
|
|
4753
4786
|
*/
|
|
4754
4787
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
4755
4788
|
/**
|
|
4756
4789
|
* Forbid import of modules using absolute paths.
|
|
4757
|
-
* @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
|
|
4758
4791
|
*/
|
|
4759
4792
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
4760
4793
|
/**
|
|
4761
4794
|
* Forbid AMD `require` and `define` calls.
|
|
4762
|
-
* @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
|
|
4763
4796
|
*/
|
|
4764
4797
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
4765
4798
|
/**
|
|
4766
4799
|
* Forbid anonymous values as default exports.
|
|
4767
|
-
* @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
|
|
4768
4801
|
*/
|
|
4769
4802
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
4770
4803
|
/**
|
|
4771
4804
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4772
|
-
* @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
|
|
4773
4806
|
*/
|
|
4774
4807
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
4775
4808
|
/**
|
|
4776
4809
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4777
|
-
* @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
|
|
4778
4811
|
*/
|
|
4779
4812
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
4780
4813
|
/**
|
|
4781
4814
|
* Forbid default exports.
|
|
4782
|
-
* @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
|
|
4783
4816
|
*/
|
|
4784
4817
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
4785
4818
|
/**
|
|
4786
4819
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4787
|
-
* @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
|
|
4788
4821
|
*/
|
|
4789
4822
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
4790
4823
|
/**
|
|
4791
4824
|
* Forbid repeated import of the same module in multiple places.
|
|
4792
|
-
* @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
|
|
4793
4826
|
*/
|
|
4794
4827
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
4795
4828
|
/**
|
|
4796
4829
|
* Forbid `require()` calls with expressions.
|
|
4797
|
-
* @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
|
|
4798
4831
|
*/
|
|
4799
4832
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
4800
4833
|
/**
|
|
4801
4834
|
* Forbid empty named import blocks.
|
|
4802
|
-
* @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
|
|
4803
4836
|
*/
|
|
4804
4837
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
4805
4838
|
/**
|
|
4806
4839
|
* Forbid the use of extraneous packages.
|
|
4807
|
-
* @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
|
|
4808
4841
|
*/
|
|
4809
4842
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
4810
4843
|
/**
|
|
4811
4844
|
* Forbid import statements with CommonJS module.exports.
|
|
4812
|
-
* @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
|
|
4813
4846
|
*/
|
|
4814
4847
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
4815
4848
|
/**
|
|
4816
4849
|
* Forbid importing the submodules of other modules.
|
|
4817
|
-
* @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
|
|
4818
4851
|
*/
|
|
4819
4852
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
4820
4853
|
/**
|
|
4821
4854
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4822
|
-
* @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
|
|
4823
4856
|
*/
|
|
4824
4857
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
4825
4858
|
/**
|
|
4826
4859
|
* Forbid use of exported name as identifier of default export.
|
|
4827
|
-
* @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
|
|
4828
4861
|
*/
|
|
4829
4862
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
4830
4863
|
/**
|
|
4831
4864
|
* Forbid use of exported name as property of default export.
|
|
4832
|
-
* @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
|
|
4833
4866
|
*/
|
|
4834
4867
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
4835
4868
|
/**
|
|
4836
4869
|
* Forbid named default exports.
|
|
4837
|
-
* @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
|
|
4838
4871
|
*/
|
|
4839
4872
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
4840
4873
|
/**
|
|
4841
4874
|
* Forbid named exports.
|
|
4842
|
-
* @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
|
|
4843
4876
|
*/
|
|
4844
4877
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
4845
4878
|
/**
|
|
4846
4879
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4847
|
-
* @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
|
|
4848
4881
|
*/
|
|
4849
4882
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
4850
4883
|
/**
|
|
4851
4884
|
* Forbid Node.js builtin modules.
|
|
4852
|
-
* @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
|
|
4853
4886
|
*/
|
|
4854
4887
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
4855
4888
|
/**
|
|
4856
4889
|
* Forbid importing packages through relative paths.
|
|
4857
|
-
* @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
|
|
4858
4891
|
*/
|
|
4859
4892
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
4860
4893
|
/**
|
|
4861
4894
|
* Forbid importing modules from parent directories.
|
|
4862
|
-
* @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
|
|
4863
4896
|
*/
|
|
4864
4897
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
4865
4898
|
/**
|
|
4866
4899
|
* Forbid importing a default export by a different name.
|
|
4867
|
-
* @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
|
|
4868
4901
|
*/
|
|
4869
4902
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
4870
4903
|
/**
|
|
4871
4904
|
* Enforce which files can be imported in a given folder.
|
|
4872
|
-
* @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
|
|
4873
4906
|
*/
|
|
4874
4907
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
4875
4908
|
/**
|
|
4876
4909
|
* Forbid a module from importing itself.
|
|
4877
|
-
* @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
|
|
4878
4911
|
*/
|
|
4879
4912
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
4880
4913
|
/**
|
|
4881
4914
|
* Forbid unassigned imports.
|
|
4882
|
-
* @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
|
|
4883
4916
|
*/
|
|
4884
4917
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
4885
4918
|
/**
|
|
4886
4919
|
* Ensure imports point to a file/module that can be resolved.
|
|
4887
|
-
* @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
|
|
4888
4921
|
*/
|
|
4889
4922
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
4890
4923
|
/**
|
|
4891
4924
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4892
|
-
* @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
|
|
4893
4926
|
*/
|
|
4894
4927
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
4895
4928
|
/**
|
|
4896
4929
|
* Forbid unnecessary path segments in import and require statements.
|
|
4897
|
-
* @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
|
|
4898
4931
|
*/
|
|
4899
4932
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
4900
4933
|
/**
|
|
4901
4934
|
* Forbid webpack loader syntax in imports.
|
|
4902
|
-
* @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
|
|
4903
4936
|
*/
|
|
4904
4937
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
4905
4938
|
/**
|
|
4906
4939
|
* Enforce a convention in module import order.
|
|
4907
|
-
* @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
|
|
4908
4941
|
*/
|
|
4909
4942
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
4910
4943
|
/**
|
|
4911
4944
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4912
|
-
* @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
|
|
4913
4946
|
*/
|
|
4914
4947
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
4915
4948
|
/**
|
|
4916
4949
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4917
|
-
* @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
|
|
4918
4951
|
*/
|
|
4919
4952
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
4920
4953
|
/**
|
|
@@ -9017,6 +9050,11 @@ interface RuleOptions {
|
|
|
9017
9050
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
9018
9051
|
*/
|
|
9019
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<[]>
|
|
9020
9058
|
/**
|
|
9021
9059
|
* enforce using `each` rather than manual loops
|
|
9022
9060
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
@@ -17244,13 +17282,17 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
17244
17282
|
"import-x/resolver-next": {
|
|
17245
17283
|
interfaceVersion: number;
|
|
17246
17284
|
name: string;
|
|
17247
|
-
resolve(source: string, file: string): ResolvedResult;
|
|
17285
|
+
resolve(source: string, file: string): eslint_plugin_import_x.ResolvedResult;
|
|
17248
17286
|
}[];
|
|
17249
17287
|
};
|
|
17250
17288
|
} | {
|
|
17251
17289
|
readonly name: "jimmy.codes/imports";
|
|
17252
17290
|
readonly plugins: {
|
|
17253
17291
|
readonly "import-x": {
|
|
17292
|
+
meta: {
|
|
17293
|
+
name: string;
|
|
17294
|
+
version: string;
|
|
17295
|
+
};
|
|
17254
17296
|
configs: {
|
|
17255
17297
|
recommended: {
|
|
17256
17298
|
plugins: ["import-x"];
|
|
@@ -17288,7 +17330,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
17288
17330
|
"import-x/no-duplicates": 1;
|
|
17289
17331
|
};
|
|
17290
17332
|
};
|
|
17291
|
-
"stage-0":
|
|
17333
|
+
"stage-0": eslint_plugin_import_x.PluginConfig;
|
|
17292
17334
|
react: {
|
|
17293
17335
|
settings: {
|
|
17294
17336
|
"import-x/extensions": (".js" | ".jsx")[];
|
|
@@ -17330,14 +17372,14 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
17330
17372
|
};
|
|
17331
17373
|
};
|
|
17332
17374
|
flatConfigs: {
|
|
17333
|
-
recommended:
|
|
17334
|
-
errors:
|
|
17335
|
-
warnings:
|
|
17336
|
-
"stage-0":
|
|
17337
|
-
react:
|
|
17338
|
-
"react-native":
|
|
17339
|
-
electron:
|
|
17340
|
-
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;
|
|
17341
17383
|
};
|
|
17342
17384
|
rules: {
|
|
17343
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>;
|
|
@@ -17615,10 +17657,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
17615
17657
|
"unicorn/no-array-reduce": "off";
|
|
17616
17658
|
"unicorn/no-null": "off";
|
|
17617
17659
|
"unicorn/no-process-exit": "off";
|
|
17618
|
-
"unicorn/no-useless-undefined":
|
|
17619
|
-
checkArguments: false;
|
|
17620
|
-
checkArrowFunctionBody: false;
|
|
17621
|
-
}];
|
|
17660
|
+
"unicorn/no-useless-undefined": "off";
|
|
17622
17661
|
"unicorn/prefer-node-protocol": "off";
|
|
17623
17662
|
"unicorn/prevent-abbreviations": "off";
|
|
17624
17663
|
};
|
|
@@ -18860,7 +18899,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
18860
18899
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18861
18900
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18862
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>;
|
|
18863
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>;
|
|
18864
18905
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18865
18906
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18866
18907
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -18939,7 +18980,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
18939
18980
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18940
18981
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18941
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>;
|
|
18942
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>;
|
|
18943
18986
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18944
18987
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
18945
18988
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -19018,7 +19061,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19018
19061
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19019
19062
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19020
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>;
|
|
19021
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>;
|
|
19022
19067
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19023
19068
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19024
19069
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -19095,7 +19140,9 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19095
19140
|
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingComponentDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19096
19141
|
readonly "no-missing-context-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"noMissingContextDisplayName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19097
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>;
|
|
19098
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>;
|
|
19099
19146
|
readonly "no-prop-types": _typescript_eslint_utils_ts_eslint.RuleModule<"noPropTypes", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19100
19147
|
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noRedundantShouldComponentUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19101
19148
|
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noSetStateInComponentDidMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -19514,6 +19561,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19514
19561
|
"@tanstack/query/infinite-query-property-order": "error";
|
|
19515
19562
|
"@tanstack/query/no-rest-destructuring": "error";
|
|
19516
19563
|
"@tanstack/query/no-unstable-deps": "error";
|
|
19564
|
+
"@tanstack/query/no-void-query-fn": "error";
|
|
19517
19565
|
"@tanstack/query/stable-query-client": "error";
|
|
19518
19566
|
};
|
|
19519
19567
|
} | {
|
|
@@ -19677,6 +19725,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
19677
19725
|
"playwright/no-useless-not": "error";
|
|
19678
19726
|
"playwright/no-wait-for-selector": "error";
|
|
19679
19727
|
"playwright/no-wait-for-timeout": "error";
|
|
19728
|
+
"playwright/valid-title": "off";
|
|
19680
19729
|
};
|
|
19681
19730
|
ignores?: string[];
|
|
19682
19731
|
language?: string;
|
package/dist/index.js
CHANGED
|
@@ -512,10 +512,7 @@ var unicornRules = {
|
|
|
512
512
|
"unicorn/no-array-reduce": "off",
|
|
513
513
|
"unicorn/no-null": "off",
|
|
514
514
|
"unicorn/no-process-exit": "off",
|
|
515
|
-
"unicorn/no-useless-undefined":
|
|
516
|
-
"error",
|
|
517
|
-
{ checkArguments: false, checkArrowFunctionBody: false }
|
|
518
|
-
],
|
|
515
|
+
"unicorn/no-useless-undefined": "off",
|
|
519
516
|
"unicorn/prefer-node-protocol": "off",
|
|
520
517
|
"unicorn/prevent-abbreviations": "off"
|
|
521
518
|
};
|
|
@@ -583,12 +580,12 @@ var defineConfig = async ({
|
|
|
583
580
|
const featureConfigs = await Promise.all([
|
|
584
581
|
isTypescriptEnabled && unwrap(import("./typescript-IBCLQD7Q.js")),
|
|
585
582
|
isReactEnabled && unwrap(import("./react-6ERTZG2I.js")),
|
|
586
|
-
isTanstackQueryEnabled && unwrap(import("./tanstack-query-
|
|
583
|
+
isTanstackQueryEnabled && unwrap(import("./tanstack-query-QBZ3MKQ7.js")),
|
|
587
584
|
isAstroEnabled && unwrap(import("./astro-Z5RFF624.js")),
|
|
588
|
-
isJestEnabled && unwrap(import("./jest-
|
|
589
|
-
isVitestEnabled && unwrap(import("./vitest-
|
|
585
|
+
isJestEnabled && unwrap(import("./jest-7NR7TDOP.js")),
|
|
586
|
+
isVitestEnabled && unwrap(import("./vitest-LSKPTQM4.js")),
|
|
590
587
|
isTestingLibraryEnabled && unwrap(import("./testing-library-7RTMAEOX.js")),
|
|
591
|
-
isPlaywrightEnabled && unwrap(import("./playwright-
|
|
588
|
+
isPlaywrightEnabled && unwrap(import("./playwright-BIJ7HLQZ.js")),
|
|
592
589
|
isStorybookEnabled && unwrap(import("./storybook-XHFO7L4T.js")),
|
|
593
590
|
isNextjsEnabled && unwrap(import("./nextjs-7V464KOE.js"))
|
|
594
591
|
]);
|
|
@@ -49,8 +49,16 @@ var jestRules = async () => {
|
|
|
49
49
|
"jest/require-hook": "error",
|
|
50
50
|
"jest/require-to-throw-message": "error",
|
|
51
51
|
"jest/require-top-level-describe": "off",
|
|
52
|
-
"jest/unbound-method": "off"
|
|
52
|
+
"jest/unbound-method": "off",
|
|
53
53
|
// requires typescript
|
|
54
|
+
"jest/valid-title": [
|
|
55
|
+
"error",
|
|
56
|
+
{
|
|
57
|
+
mustMatch: {
|
|
58
|
+
it: "^should"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
54
62
|
};
|
|
55
63
|
};
|
|
56
64
|
|
|
@@ -26,7 +26,8 @@ var playwrightRules = async () => {
|
|
|
26
26
|
"playwright/no-useless-await": "error",
|
|
27
27
|
"playwright/no-useless-not": "error",
|
|
28
28
|
"playwright/no-wait-for-selector": "error",
|
|
29
|
-
"playwright/no-wait-for-timeout": "error"
|
|
29
|
+
"playwright/no-wait-for-timeout": "error",
|
|
30
|
+
"playwright/valid-title": "off"
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
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
|
}
|
|
@@ -63,7 +63,14 @@ var vitestRules = async () => {
|
|
|
63
63
|
// "vitest/unbound-method": "off", // requires typescript, missing https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
64
64
|
"vitest/valid-expect": "error",
|
|
65
65
|
"vitest/valid-expect-in-promise": "error",
|
|
66
|
-
"vitest/valid-title":
|
|
66
|
+
"vitest/valid-title": [
|
|
67
|
+
"error",
|
|
68
|
+
{
|
|
69
|
+
mustMatch: {
|
|
70
|
+
it: "^should"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
67
74
|
};
|
|
68
75
|
};
|
|
69
76
|
|
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"
|