@anolilab/eslint-config 17.1.0 → 18.0.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.cts CHANGED
@@ -994,6 +994,11 @@ interface RuleOptions {
994
994
  * @see https://typescript-eslint.io/rules/no-useless-constructor
995
995
  */
996
996
  '@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>
997
+ /**
998
+ * Disallow default values that will never be used
999
+ * @see https://typescript-eslint.io/rules/no-useless-default-assignment
1000
+ */
1001
+ '@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>
997
1002
  /**
998
1003
  * Disallow empty exports that don't change anything in a module file
999
1004
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -3160,6 +3165,11 @@ interface RuleOptions {
3160
3165
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
3161
3166
  */
3162
3167
  'playwright/no-unsafe-references'?: Linter.RuleEntry<[]>
3168
+ /**
3169
+ * Disallow usage of page locators that are not used
3170
+ * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unused-locators.md
3171
+ */
3172
+ 'playwright/no-unused-locators'?: Linter.RuleEntry<[]>
3163
3173
  /**
3164
3174
  * Disallow unnecessary awaits for Playwright methods
3165
3175
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md
@@ -3286,7 +3296,7 @@ interface RuleOptions {
3286
3296
  */
3287
3297
  'playwright/valid-expect-in-promise'?: Linter.RuleEntry<[]>
3288
3298
  /**
3289
- * Enforce valid tag format in Playwright test blocks
3299
+ * Enforce valid tag format in Playwright test blocks and titles
3290
3300
  */
3291
3301
  'playwright/valid-test-tags'?: Linter.RuleEntry<PlaywrightValidTestTags>
3292
3302
  /**
@@ -3999,10 +4009,6 @@ interface RuleOptions {
3999
4009
  * @see https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store
4000
4010
  */
4001
4011
  'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
4002
- /**
4003
- * Disallow effects that only use props.
4004
- */
4005
- 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
4006
4012
  /**
4007
4013
  * Disallow passing data to parents in an effect.
4008
4014
  * @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
@@ -7584,6 +7590,11 @@ interface RuleOptions {
7584
7590
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
7585
7591
  */
7586
7592
  'vitest/no-test-return-statement'?: Linter.RuleEntry<[]>
7593
+ /**
7594
+ * Disallow unnecessary async function wrapper for expected promises
7595
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
7596
+ */
7597
+ 'vitest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>
7587
7598
  /**
7588
7599
  * Enforce padding around `afterAll` blocks
7589
7600
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
@@ -7754,6 +7765,11 @@ interface RuleOptions {
7754
7765
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
7755
7766
  */
7756
7767
  'vitest/prefer-to-contain'?: Linter.RuleEntry<[]>
7768
+ /**
7769
+ * Suggest using `toHaveBeenCalledTimes()`
7770
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
7771
+ */
7772
+ 'vitest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>
7757
7773
  /**
7758
7774
  * enforce using toHaveLength()
7759
7775
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
@@ -7779,11 +7795,6 @@ interface RuleOptions {
7779
7795
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
7780
7796
  */
7781
7797
  'vitest/require-hook'?: Linter.RuleEntry<VitestRequireHook>
7782
- /**
7783
- * require usage of import in vi.mock()
7784
- * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
7785
- */
7786
- 'vitest/require-import-vi-mock'?: Linter.RuleEntry<[]>
7787
7798
  /**
7788
7799
  * require local Test Context for concurrent snapshot tests
7789
7800
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
@@ -15562,6 +15573,7 @@ type PerfectionistSortVariableDeclarations = []|[{
15562
15573
  // ----- playwright/expect-expect -----
15563
15574
  type PlaywrightExpectExpect = []|[{
15564
15575
  assertFunctionNames?: []|[string]
15576
+ assertFunctionPatterns?: []|[string]
15565
15577
  }]
15566
15578
  // ----- playwright/max-expects -----
15567
15579
  type PlaywrightMaxExpects = []|[{
@@ -17466,10 +17478,7 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsSilentConsole
17466
17478
  playwright?: boolean | (OptionsFiles & OptionsOverrides);
17467
17479
  pnpm?: boolean | (OptionsOverrides & OptionsPnpm);
17468
17480
  promise?: OptionsFiles & OptionsOverrides;
17469
- react?: boolean | (OptionsFiles & OptionsOverrides & {
17470
- compiler?: boolean;
17471
- version?: string;
17472
- });
17481
+ react?: boolean | (OptionsFiles & OptionsOverrides & OptionsReact);
17473
17482
  reactCompiler?: boolean;
17474
17483
  regexp?: boolean | (OptionsFiles & OptionsOverrides & OptionsRegExp);
17475
17484
  simpleImportSort?: OptionsFiles & OptionsOverrides;
@@ -17529,6 +17538,9 @@ interface OptionsOverrides {
17529
17538
  }
17530
17539
  interface OptionsPnpm {
17531
17540
  catalogs?: boolean;
17541
+ json?: boolean;
17542
+ sort?: boolean;
17543
+ yaml?: boolean;
17532
17544
  }
17533
17545
  interface OptionsPackageJson {
17534
17546
  packageJson: NormalizedPackageJson;
package/dist/index.d.mts CHANGED
@@ -994,6 +994,11 @@ interface RuleOptions {
994
994
  * @see https://typescript-eslint.io/rules/no-useless-constructor
995
995
  */
996
996
  '@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>
997
+ /**
998
+ * Disallow default values that will never be used
999
+ * @see https://typescript-eslint.io/rules/no-useless-default-assignment
1000
+ */
1001
+ '@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>
997
1002
  /**
998
1003
  * Disallow empty exports that don't change anything in a module file
999
1004
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -3160,6 +3165,11 @@ interface RuleOptions {
3160
3165
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
3161
3166
  */
3162
3167
  'playwright/no-unsafe-references'?: Linter.RuleEntry<[]>
3168
+ /**
3169
+ * Disallow usage of page locators that are not used
3170
+ * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unused-locators.md
3171
+ */
3172
+ 'playwright/no-unused-locators'?: Linter.RuleEntry<[]>
3163
3173
  /**
3164
3174
  * Disallow unnecessary awaits for Playwright methods
3165
3175
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md
@@ -3286,7 +3296,7 @@ interface RuleOptions {
3286
3296
  */
3287
3297
  'playwright/valid-expect-in-promise'?: Linter.RuleEntry<[]>
3288
3298
  /**
3289
- * Enforce valid tag format in Playwright test blocks
3299
+ * Enforce valid tag format in Playwright test blocks and titles
3290
3300
  */
3291
3301
  'playwright/valid-test-tags'?: Linter.RuleEntry<PlaywrightValidTestTags>
3292
3302
  /**
@@ -3999,10 +4009,6 @@ interface RuleOptions {
3999
4009
  * @see https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store
4000
4010
  */
4001
4011
  'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
4002
- /**
4003
- * Disallow effects that only use props.
4004
- */
4005
- 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
4006
4012
  /**
4007
4013
  * Disallow passing data to parents in an effect.
4008
4014
  * @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
@@ -7584,6 +7590,11 @@ interface RuleOptions {
7584
7590
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
7585
7591
  */
7586
7592
  'vitest/no-test-return-statement'?: Linter.RuleEntry<[]>
7593
+ /**
7594
+ * Disallow unnecessary async function wrapper for expected promises
7595
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
7596
+ */
7597
+ 'vitest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>
7587
7598
  /**
7588
7599
  * Enforce padding around `afterAll` blocks
7589
7600
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
@@ -7754,6 +7765,11 @@ interface RuleOptions {
7754
7765
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
7755
7766
  */
7756
7767
  'vitest/prefer-to-contain'?: Linter.RuleEntry<[]>
7768
+ /**
7769
+ * Suggest using `toHaveBeenCalledTimes()`
7770
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
7771
+ */
7772
+ 'vitest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>
7757
7773
  /**
7758
7774
  * enforce using toHaveLength()
7759
7775
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
@@ -7779,11 +7795,6 @@ interface RuleOptions {
7779
7795
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
7780
7796
  */
7781
7797
  'vitest/require-hook'?: Linter.RuleEntry<VitestRequireHook>
7782
- /**
7783
- * require usage of import in vi.mock()
7784
- * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
7785
- */
7786
- 'vitest/require-import-vi-mock'?: Linter.RuleEntry<[]>
7787
7798
  /**
7788
7799
  * require local Test Context for concurrent snapshot tests
7789
7800
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
@@ -15562,6 +15573,7 @@ type PerfectionistSortVariableDeclarations = []|[{
15562
15573
  // ----- playwright/expect-expect -----
15563
15574
  type PlaywrightExpectExpect = []|[{
15564
15575
  assertFunctionNames?: []|[string]
15576
+ assertFunctionPatterns?: []|[string]
15565
15577
  }]
15566
15578
  // ----- playwright/max-expects -----
15567
15579
  type PlaywrightMaxExpects = []|[{
@@ -17466,10 +17478,7 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsSilentConsole
17466
17478
  playwright?: boolean | (OptionsFiles & OptionsOverrides);
17467
17479
  pnpm?: boolean | (OptionsOverrides & OptionsPnpm);
17468
17480
  promise?: OptionsFiles & OptionsOverrides;
17469
- react?: boolean | (OptionsFiles & OptionsOverrides & {
17470
- compiler?: boolean;
17471
- version?: string;
17472
- });
17481
+ react?: boolean | (OptionsFiles & OptionsOverrides & OptionsReact);
17473
17482
  reactCompiler?: boolean;
17474
17483
  regexp?: boolean | (OptionsFiles & OptionsOverrides & OptionsRegExp);
17475
17484
  simpleImportSort?: OptionsFiles & OptionsOverrides;
@@ -17529,6 +17538,9 @@ interface OptionsOverrides {
17529
17538
  }
17530
17539
  interface OptionsPnpm {
17531
17540
  catalogs?: boolean;
17541
+ json?: boolean;
17542
+ sort?: boolean;
17543
+ yaml?: boolean;
17532
17544
  }
17533
17545
  interface OptionsPackageJson {
17534
17546
  packageJson: NormalizedPackageJson;
package/dist/index.d.ts CHANGED
@@ -994,6 +994,11 @@ interface RuleOptions {
994
994
  * @see https://typescript-eslint.io/rules/no-useless-constructor
995
995
  */
996
996
  '@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>
997
+ /**
998
+ * Disallow default values that will never be used
999
+ * @see https://typescript-eslint.io/rules/no-useless-default-assignment
1000
+ */
1001
+ '@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>
997
1002
  /**
998
1003
  * Disallow empty exports that don't change anything in a module file
999
1004
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -3160,6 +3165,11 @@ interface RuleOptions {
3160
3165
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
3161
3166
  */
3162
3167
  'playwright/no-unsafe-references'?: Linter.RuleEntry<[]>
3168
+ /**
3169
+ * Disallow usage of page locators that are not used
3170
+ * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unused-locators.md
3171
+ */
3172
+ 'playwright/no-unused-locators'?: Linter.RuleEntry<[]>
3163
3173
  /**
3164
3174
  * Disallow unnecessary awaits for Playwright methods
3165
3175
  * @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md
@@ -3286,7 +3296,7 @@ interface RuleOptions {
3286
3296
  */
3287
3297
  'playwright/valid-expect-in-promise'?: Linter.RuleEntry<[]>
3288
3298
  /**
3289
- * Enforce valid tag format in Playwright test blocks
3299
+ * Enforce valid tag format in Playwright test blocks and titles
3290
3300
  */
3291
3301
  'playwright/valid-test-tags'?: Linter.RuleEntry<PlaywrightValidTestTags>
3292
3302
  /**
@@ -3999,10 +4009,6 @@ interface RuleOptions {
3999
4009
  * @see https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store
4000
4010
  */
4001
4011
  'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
4002
- /**
4003
- * Disallow effects that only use props.
4004
- */
4005
- 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
4006
4012
  /**
4007
4013
  * Disallow passing data to parents in an effect.
4008
4014
  * @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
@@ -7584,6 +7590,11 @@ interface RuleOptions {
7584
7590
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
7585
7591
  */
7586
7592
  'vitest/no-test-return-statement'?: Linter.RuleEntry<[]>
7593
+ /**
7594
+ * Disallow unnecessary async function wrapper for expected promises
7595
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
7596
+ */
7597
+ 'vitest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>
7587
7598
  /**
7588
7599
  * Enforce padding around `afterAll` blocks
7589
7600
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
@@ -7754,6 +7765,11 @@ interface RuleOptions {
7754
7765
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
7755
7766
  */
7756
7767
  'vitest/prefer-to-contain'?: Linter.RuleEntry<[]>
7768
+ /**
7769
+ * Suggest using `toHaveBeenCalledTimes()`
7770
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
7771
+ */
7772
+ 'vitest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>
7757
7773
  /**
7758
7774
  * enforce using toHaveLength()
7759
7775
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
@@ -7779,11 +7795,6 @@ interface RuleOptions {
7779
7795
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
7780
7796
  */
7781
7797
  'vitest/require-hook'?: Linter.RuleEntry<VitestRequireHook>
7782
- /**
7783
- * require usage of import in vi.mock()
7784
- * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
7785
- */
7786
- 'vitest/require-import-vi-mock'?: Linter.RuleEntry<[]>
7787
7798
  /**
7788
7799
  * require local Test Context for concurrent snapshot tests
7789
7800
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
@@ -15562,6 +15573,7 @@ type PerfectionistSortVariableDeclarations = []|[{
15562
15573
  // ----- playwright/expect-expect -----
15563
15574
  type PlaywrightExpectExpect = []|[{
15564
15575
  assertFunctionNames?: []|[string]
15576
+ assertFunctionPatterns?: []|[string]
15565
15577
  }]
15566
15578
  // ----- playwright/max-expects -----
15567
15579
  type PlaywrightMaxExpects = []|[{
@@ -17466,10 +17478,7 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsSilentConsole
17466
17478
  playwright?: boolean | (OptionsFiles & OptionsOverrides);
17467
17479
  pnpm?: boolean | (OptionsOverrides & OptionsPnpm);
17468
17480
  promise?: OptionsFiles & OptionsOverrides;
17469
- react?: boolean | (OptionsFiles & OptionsOverrides & {
17470
- compiler?: boolean;
17471
- version?: string;
17472
- });
17481
+ react?: boolean | (OptionsFiles & OptionsOverrides & OptionsReact);
17473
17482
  reactCompiler?: boolean;
17474
17483
  regexp?: boolean | (OptionsFiles & OptionsOverrides & OptionsRegExp);
17475
17484
  simpleImportSort?: OptionsFiles & OptionsOverrides;
@@ -17529,6 +17538,9 @@ interface OptionsOverrides {
17529
17538
  }
17530
17539
  interface OptionsPnpm {
17531
17540
  catalogs?: boolean;
17541
+ json?: boolean;
17542
+ sort?: boolean;
17543
+ yaml?: boolean;
17532
17544
  }
17533
17545
  interface OptionsPackageJson {
17534
17546
  packageJson: NormalizedPackageJson;