@jsse/eslint-config 0.2.10 → 0.2.11
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +148 -90
- package/dist/index.d.cts +118 -58
- package/dist/index.d.ts +118 -58
- package/dist/index.js +167 -112
- package/package.json +8 -6
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import * as yaml_eslint_parser from 'yaml-eslint-parser';
|
|
|
11
11
|
import * as eslint_plugin_jsonc_types from 'eslint-plugin-jsonc/types';
|
|
12
12
|
import * as eslint_plugin_jsonc_meta from 'eslint-plugin-jsonc/meta';
|
|
13
13
|
import * as jsonc_eslint_parser from 'jsonc-eslint-parser';
|
|
14
|
+
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
14
15
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
15
16
|
export { default as pluginEslintComments } from 'eslint-plugin-eslint-comments';
|
|
16
17
|
import * as eslintPluginImportX from 'eslint-plugin-import-x';
|
|
@@ -19,7 +20,6 @@ export { default as pluginN } from 'eslint-plugin-n';
|
|
|
19
20
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
20
21
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
21
22
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
22
|
-
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
23
23
|
|
|
24
24
|
/* eslint-disable */
|
|
25
25
|
/* prettier-ignore */
|
|
@@ -4168,6 +4168,11 @@ interface AntfuRuleOptions {
|
|
|
4168
4168
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
|
|
4169
4169
|
*/
|
|
4170
4170
|
"antfu/no-import-node-modules-by-path"?: Linter.RuleEntry<[]>;
|
|
4171
|
+
/**
|
|
4172
|
+
* Prevent using top-level await
|
|
4173
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
|
|
4174
|
+
*/
|
|
4175
|
+
"antfu/no-top-level-await"?: Linter.RuleEntry<[]>;
|
|
4171
4176
|
/**
|
|
4172
4177
|
* Do not use `exports =`
|
|
4173
4178
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
|
|
@@ -13846,265 +13851,305 @@ type StylisticYieldStarSpacing =
|
|
|
13846
13851
|
interface VitestRuleOptions {
|
|
13847
13852
|
/**
|
|
13848
13853
|
* require .spec test file pattern
|
|
13849
|
-
* @see https://github.com/
|
|
13854
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
13850
13855
|
*/
|
|
13851
13856
|
"vitest/consistent-test-filename"?: Linter.RuleEntry<VitestConsistentTestFilename>;
|
|
13852
13857
|
/**
|
|
13853
13858
|
* enforce using test or it but not both
|
|
13854
|
-
* @see https://github.com/
|
|
13859
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
13855
13860
|
*/
|
|
13856
13861
|
"vitest/consistent-test-it"?: Linter.RuleEntry<VitestConsistentTestIt>;
|
|
13857
13862
|
/**
|
|
13858
13863
|
* enforce having expectation in test body
|
|
13859
|
-
* @see https://github.com/
|
|
13864
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
13860
13865
|
*/
|
|
13861
13866
|
"vitest/expect-expect"?: Linter.RuleEntry<VitestExpectExpect>;
|
|
13862
13867
|
/**
|
|
13863
13868
|
* enforce a maximum number of expect per test
|
|
13864
|
-
* @see https://github.com/
|
|
13869
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
13865
13870
|
*/
|
|
13866
13871
|
"vitest/max-expects"?: Linter.RuleEntry<VitestMaxExpects>;
|
|
13867
13872
|
/**
|
|
13868
13873
|
* require describe block to be less than set max value or default value
|
|
13869
|
-
* @see https://github.com/
|
|
13874
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
|
|
13870
13875
|
*/
|
|
13871
13876
|
"vitest/max-nested-describe"?: Linter.RuleEntry<VitestMaxNestedDescribe>;
|
|
13872
13877
|
/**
|
|
13873
13878
|
* disallow alias methods
|
|
13874
|
-
* @see https://github.com/
|
|
13879
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
|
|
13875
13880
|
*/
|
|
13876
13881
|
"vitest/no-alias-methods"?: Linter.RuleEntry<[]>;
|
|
13877
13882
|
/**
|
|
13878
13883
|
* disallow commented out tests
|
|
13879
|
-
* @see https://github.com/
|
|
13884
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
|
|
13880
13885
|
*/
|
|
13881
13886
|
"vitest/no-commented-out-tests"?: Linter.RuleEntry<[]>;
|
|
13882
13887
|
/**
|
|
13883
13888
|
* disallow conditional expects
|
|
13884
|
-
* @see https://github.com/
|
|
13889
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
13885
13890
|
*/
|
|
13886
13891
|
"vitest/no-conditional-expect"?: Linter.RuleEntry<[]>;
|
|
13887
13892
|
/**
|
|
13888
13893
|
* disallow conditional tests
|
|
13889
|
-
* @see https://github.com/
|
|
13894
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
13890
13895
|
*/
|
|
13891
13896
|
"vitest/no-conditional-in-test"?: Linter.RuleEntry<[]>;
|
|
13892
13897
|
/**
|
|
13893
13898
|
* disallow conditional tests
|
|
13894
|
-
* @see https://github.com/
|
|
13899
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
|
|
13895
13900
|
*/
|
|
13896
13901
|
"vitest/no-conditional-tests"?: Linter.RuleEntry<[]>;
|
|
13897
13902
|
/**
|
|
13898
13903
|
* disallow disabled tests
|
|
13899
|
-
* @see https://github.com/
|
|
13904
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
|
|
13900
13905
|
*/
|
|
13901
13906
|
"vitest/no-disabled-tests"?: Linter.RuleEntry<[]>;
|
|
13902
13907
|
/**
|
|
13903
13908
|
* disallow using a callback in asynchronous tests and hooks
|
|
13904
|
-
* @see https://github.com/
|
|
13909
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
|
|
13905
13910
|
* @deprecated
|
|
13906
13911
|
*/
|
|
13907
13912
|
"vitest/no-done-callback"?: Linter.RuleEntry<[]>;
|
|
13908
13913
|
/**
|
|
13909
13914
|
* disallow duplicate hooks and teardown hooks
|
|
13910
|
-
* @see https://github.com/
|
|
13915
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
|
|
13911
13916
|
*/
|
|
13912
13917
|
"vitest/no-duplicate-hooks"?: Linter.RuleEntry<[]>;
|
|
13913
13918
|
/**
|
|
13914
13919
|
* disallow focused tests
|
|
13915
|
-
* @see https://github.com/
|
|
13920
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
13916
13921
|
*/
|
|
13917
13922
|
"vitest/no-focused-tests"?: Linter.RuleEntry<VitestNoFocusedTests>;
|
|
13918
13923
|
/**
|
|
13919
13924
|
* disallow setup and teardown hooks
|
|
13920
|
-
* @see https://github.com/
|
|
13925
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
13921
13926
|
*/
|
|
13922
13927
|
"vitest/no-hooks"?: Linter.RuleEntry<VitestNoHooks>;
|
|
13923
13928
|
/**
|
|
13924
13929
|
* disallow identical titles
|
|
13925
|
-
* @see https://github.com/
|
|
13930
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
|
|
13926
13931
|
*/
|
|
13927
13932
|
"vitest/no-identical-title"?: Linter.RuleEntry<[]>;
|
|
13928
13933
|
/**
|
|
13929
13934
|
* disallow importing `node:test`
|
|
13930
|
-
* @see https://github.com/
|
|
13935
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
13931
13936
|
*/
|
|
13932
13937
|
"vitest/no-import-node-test"?: Linter.RuleEntry<[]>;
|
|
13933
13938
|
/**
|
|
13934
13939
|
* disallow string interpolation in snapshots
|
|
13935
|
-
* @see https://github.com/
|
|
13940
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
13936
13941
|
*/
|
|
13937
13942
|
"vitest/no-interpolation-in-snapshots"?: Linter.RuleEntry<[]>;
|
|
13938
13943
|
/**
|
|
13939
13944
|
* disallow large snapshots
|
|
13940
|
-
* @see https://github.com/
|
|
13945
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
|
|
13941
13946
|
*/
|
|
13942
13947
|
"vitest/no-large-snapshots"?: Linter.RuleEntry<VitestNoLargeSnapshots>;
|
|
13943
13948
|
/**
|
|
13944
13949
|
* disallow importing from __mocks__ directory
|
|
13945
|
-
* @see https://github.com/
|
|
13950
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
|
|
13946
13951
|
*/
|
|
13947
13952
|
"vitest/no-mocks-import"?: Linter.RuleEntry<[]>;
|
|
13948
13953
|
/**
|
|
13949
13954
|
* disallow the use of certain matchers
|
|
13950
|
-
* @see https://github.com/
|
|
13955
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
|
|
13951
13956
|
*/
|
|
13952
13957
|
"vitest/no-restricted-matchers"?: Linter.RuleEntry<VitestNoRestrictedMatchers>;
|
|
13953
13958
|
/**
|
|
13954
13959
|
* disallow specific `vi.` methods
|
|
13955
|
-
* @see https://github.com/
|
|
13960
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
|
|
13956
13961
|
*/
|
|
13957
13962
|
"vitest/no-restricted-vi-methods"?: Linter.RuleEntry<VitestNoRestrictedViMethods>;
|
|
13958
13963
|
/**
|
|
13959
13964
|
* disallow using `expect` outside of `it` or `test` blocks
|
|
13960
|
-
* @see https://github.com/
|
|
13965
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
|
|
13961
13966
|
*/
|
|
13962
13967
|
"vitest/no-standalone-expect"?: Linter.RuleEntry<VitestNoStandaloneExpect>;
|
|
13963
13968
|
/**
|
|
13964
13969
|
* disallow using `test` as a prefix
|
|
13965
|
-
* @see https://github.com/
|
|
13970
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
13966
13971
|
*/
|
|
13967
13972
|
"vitest/no-test-prefixes"?: Linter.RuleEntry<[]>;
|
|
13968
13973
|
/**
|
|
13969
13974
|
* disallow return statements in tests
|
|
13970
|
-
* @see https://github.com/
|
|
13975
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
13971
13976
|
*/
|
|
13972
13977
|
"vitest/no-test-return-statement"?: Linter.RuleEntry<[]>;
|
|
13978
|
+
/**
|
|
13979
|
+
* Enforce padding around `afterAll` blocks
|
|
13980
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
13981
|
+
*/
|
|
13982
|
+
"vitest/padding-around-after-all-blocks"?: Linter.RuleEntry<[]>;
|
|
13983
|
+
/**
|
|
13984
|
+
* Enforce padding around `afterEach` blocks
|
|
13985
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
13986
|
+
*/
|
|
13987
|
+
"vitest/padding-around-after-each-blocks"?: Linter.RuleEntry<[]>;
|
|
13988
|
+
/**
|
|
13989
|
+
* Enforce padding around vitest functions
|
|
13990
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
13991
|
+
*/
|
|
13992
|
+
"vitest/padding-around-all"?: Linter.RuleEntry<[]>;
|
|
13993
|
+
/**
|
|
13994
|
+
* Enforce padding around `beforeAll` blocks
|
|
13995
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
13996
|
+
*/
|
|
13997
|
+
"vitest/padding-around-before-all-blocks"?: Linter.RuleEntry<[]>;
|
|
13998
|
+
/**
|
|
13999
|
+
* Enforce padding around `beforeEach` blocks
|
|
14000
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
14001
|
+
*/
|
|
14002
|
+
"vitest/padding-around-before-each-blocks"?: Linter.RuleEntry<[]>;
|
|
14003
|
+
/**
|
|
14004
|
+
* Enforce padding around `describe` blocks
|
|
14005
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
14006
|
+
*/
|
|
14007
|
+
"vitest/padding-around-describe-blocks"?: Linter.RuleEntry<[]>;
|
|
14008
|
+
/**
|
|
14009
|
+
* Enforce padding around `expect` groups
|
|
14010
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
14011
|
+
*/
|
|
14012
|
+
"vitest/padding-around-expect-groups"?: Linter.RuleEntry<[]>;
|
|
14013
|
+
/**
|
|
14014
|
+
* Enforce padding around afterAll blocks
|
|
14015
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
14016
|
+
*/
|
|
14017
|
+
"vitest/padding-around-test-blocks"?: Linter.RuleEntry<[]>;
|
|
13973
14018
|
/**
|
|
13974
14019
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
13975
|
-
* @see https://github.com/
|
|
14020
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
13976
14021
|
*/
|
|
13977
14022
|
"vitest/prefer-called-with"?: Linter.RuleEntry<[]>;
|
|
13978
14023
|
/**
|
|
13979
14024
|
* enforce using the built-in comparison matchers
|
|
13980
|
-
* @see https://github.com/
|
|
14025
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
13981
14026
|
*/
|
|
13982
14027
|
"vitest/prefer-comparison-matcher"?: Linter.RuleEntry<[]>;
|
|
13983
14028
|
/**
|
|
13984
14029
|
* enforce using `each` rather than manual loops
|
|
13985
|
-
* @see https://github.com/
|
|
14030
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
13986
14031
|
*/
|
|
13987
14032
|
"vitest/prefer-each"?: Linter.RuleEntry<[]>;
|
|
13988
14033
|
/**
|
|
13989
14034
|
* enforce using the built-in quality matchers
|
|
13990
|
-
* @see https://github.com/
|
|
14035
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
13991
14036
|
*/
|
|
13992
14037
|
"vitest/prefer-equality-matcher"?: Linter.RuleEntry<[]>;
|
|
13993
14038
|
/**
|
|
13994
14039
|
* enforce using expect assertions instead of callbacks
|
|
13995
|
-
* @see https://github.com/
|
|
14040
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
|
|
13996
14041
|
*/
|
|
13997
14042
|
"vitest/prefer-expect-assertions"?: Linter.RuleEntry<VitestPreferExpectAssertions>;
|
|
13998
14043
|
/**
|
|
13999
14044
|
* enforce using `expect().resolves` over `expect(await ...)` syntax
|
|
14000
|
-
* @see https://github.com/
|
|
14045
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
14001
14046
|
*/
|
|
14002
14047
|
"vitest/prefer-expect-resolves"?: Linter.RuleEntry<[]>;
|
|
14003
14048
|
/**
|
|
14004
14049
|
* enforce having hooks in consistent order
|
|
14005
|
-
* @see https://github.com/
|
|
14050
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
14006
14051
|
*/
|
|
14007
14052
|
"vitest/prefer-hooks-in-order"?: Linter.RuleEntry<[]>;
|
|
14008
14053
|
/**
|
|
14009
14054
|
* enforce having hooks before any test cases
|
|
14010
|
-
* @see https://github.com/
|
|
14055
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
14011
14056
|
*/
|
|
14012
14057
|
"vitest/prefer-hooks-on-top"?: Linter.RuleEntry<[]>;
|
|
14013
14058
|
/**
|
|
14014
14059
|
* enforce lowercase titles
|
|
14015
|
-
* @see https://github.com/
|
|
14060
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
14016
14061
|
*/
|
|
14017
14062
|
"vitest/prefer-lowercase-title"?: Linter.RuleEntry<VitestPreferLowercaseTitle>;
|
|
14018
14063
|
/**
|
|
14019
14064
|
* enforce mock resolved/rejected shorthands for promises
|
|
14020
|
-
* @see https://github.com/
|
|
14065
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
14021
14066
|
*/
|
|
14022
14067
|
"vitest/prefer-mock-promise-shorthand"?: Linter.RuleEntry<[]>;
|
|
14023
14068
|
/**
|
|
14024
14069
|
* enforce including a hint with external snapshots
|
|
14025
|
-
* @see https://github.com/
|
|
14070
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
14026
14071
|
*/
|
|
14027
14072
|
"vitest/prefer-snapshot-hint"?: Linter.RuleEntry<VitestPreferSnapshotHint>;
|
|
14028
14073
|
/**
|
|
14029
14074
|
* enforce using `vi.spyOn`
|
|
14030
|
-
* @see https://github.com/
|
|
14075
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
14031
14076
|
*/
|
|
14032
14077
|
"vitest/prefer-spy-on"?: Linter.RuleEntry<[]>;
|
|
14033
14078
|
/**
|
|
14034
14079
|
* enforce strict equal over equal
|
|
14035
|
-
* @see https://github.com/
|
|
14080
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
14036
14081
|
*/
|
|
14037
14082
|
"vitest/prefer-strict-equal"?: Linter.RuleEntry<[]>;
|
|
14038
14083
|
/**
|
|
14039
14084
|
* enforce using toBe()
|
|
14040
|
-
* @see https://github.com/
|
|
14085
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
|
|
14041
14086
|
*/
|
|
14042
14087
|
"vitest/prefer-to-be"?: Linter.RuleEntry<[]>;
|
|
14043
14088
|
/**
|
|
14044
14089
|
* enforce using toBeFalsy()
|
|
14045
|
-
* @see https://github.com/
|
|
14090
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
|
|
14046
14091
|
*/
|
|
14047
14092
|
"vitest/prefer-to-be-falsy"?: Linter.RuleEntry<[]>;
|
|
14048
14093
|
/**
|
|
14049
14094
|
* enforce using toBeObject()
|
|
14050
|
-
* @see https://github.com/
|
|
14095
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
|
|
14051
14096
|
*/
|
|
14052
14097
|
"vitest/prefer-to-be-object"?: Linter.RuleEntry<[]>;
|
|
14053
14098
|
/**
|
|
14054
14099
|
* enforce using `toBeTruthy`
|
|
14055
|
-
* @see https://github.com/
|
|
14100
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
|
|
14056
14101
|
*/
|
|
14057
14102
|
"vitest/prefer-to-be-truthy"?: Linter.RuleEntry<[]>;
|
|
14058
14103
|
/**
|
|
14059
14104
|
* enforce using toContain()
|
|
14060
|
-
* @see https://github.com/
|
|
14105
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
14061
14106
|
*/
|
|
14062
14107
|
"vitest/prefer-to-contain"?: Linter.RuleEntry<[]>;
|
|
14063
14108
|
/**
|
|
14064
14109
|
* enforce using toHaveLength()
|
|
14065
|
-
* @see https://github.com/
|
|
14110
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
14066
14111
|
*/
|
|
14067
14112
|
"vitest/prefer-to-have-length"?: Linter.RuleEntry<[]>;
|
|
14068
14113
|
/**
|
|
14069
14114
|
* enforce using `test.todo`
|
|
14070
|
-
* @see https://github.com/
|
|
14115
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
14071
14116
|
*/
|
|
14072
14117
|
"vitest/prefer-todo"?: Linter.RuleEntry<[]>;
|
|
14073
14118
|
/**
|
|
14074
14119
|
* require setup and teardown to be within a hook
|
|
14075
|
-
* @see https://github.com/
|
|
14120
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
14076
14121
|
*/
|
|
14077
14122
|
"vitest/require-hook"?: Linter.RuleEntry<VitestRequireHook>;
|
|
14078
14123
|
/**
|
|
14079
14124
|
* require local Test Context for concurrent snapshot tests
|
|
14080
|
-
* @see https://github.com/
|
|
14125
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
14081
14126
|
*/
|
|
14082
14127
|
"vitest/require-local-test-context-for-concurrent-snapshots"?: Linter.RuleEntry<
|
|
14083
14128
|
[]
|
|
14084
14129
|
>;
|
|
14085
14130
|
/**
|
|
14086
14131
|
* require toThrow() to be called with an error message
|
|
14087
|
-
* @see https://github.com/
|
|
14132
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
14088
14133
|
*/
|
|
14089
14134
|
"vitest/require-to-throw-message"?: Linter.RuleEntry<[]>;
|
|
14090
14135
|
/**
|
|
14091
14136
|
* enforce that all tests are in a top-level describe
|
|
14092
|
-
* @see https://github.com/
|
|
14137
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
14093
14138
|
*/
|
|
14094
14139
|
"vitest/require-top-level-describe"?: Linter.RuleEntry<VitestRequireTopLevelDescribe>;
|
|
14095
14140
|
/**
|
|
14096
14141
|
* enforce valid describe callback
|
|
14097
|
-
* @see https://github.com/
|
|
14142
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
14098
14143
|
*/
|
|
14099
14144
|
"vitest/valid-describe-callback"?: Linter.RuleEntry<[]>;
|
|
14100
14145
|
/**
|
|
14101
14146
|
* enforce valid `expect()` usage
|
|
14102
|
-
* @see https://github.com/
|
|
14147
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
14103
14148
|
*/
|
|
14104
14149
|
"vitest/valid-expect"?: Linter.RuleEntry<VitestValidExpect>;
|
|
14105
14150
|
/**
|
|
14106
14151
|
* enforce valid titles
|
|
14107
|
-
* @see https://github.com/
|
|
14152
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
14108
14153
|
*/
|
|
14109
14154
|
"vitest/valid-title"?: Linter.RuleEntry<VitestValidTitle>;
|
|
14110
14155
|
}
|
|
@@ -14202,7 +14247,8 @@ type VitestNoStandaloneExpect =
|
|
|
14202
14247
|
| []
|
|
14203
14248
|
| [
|
|
14204
14249
|
{
|
|
14205
|
-
|
|
14250
|
+
additionaltestblockfunctions?: string[];
|
|
14251
|
+
[k: string]: unknown | undefined;
|
|
14206
14252
|
},
|
|
14207
14253
|
];
|
|
14208
14254
|
// ----- vitest/prefer-expect-assertions -----
|
|
@@ -20838,6 +20884,8 @@ type YamlSpacedComment =
|
|
|
20838
20884
|
},
|
|
20839
20885
|
];
|
|
20840
20886
|
|
|
20887
|
+
/* eslint-disable perfectionist/sort-imports */
|
|
20888
|
+
/* eslint-disable perfectionist/sort-exports */
|
|
20841
20889
|
// generated by scripts/typegen-v2.ts
|
|
20842
20890
|
|
|
20843
20891
|
|
|
@@ -21045,6 +21093,10 @@ type OptionsConfig = {
|
|
|
21045
21093
|
*/
|
|
21046
21094
|
gitignore?: boolean | FlatGitignoreOptions;
|
|
21047
21095
|
tsPrefix?: string;
|
|
21096
|
+
/**
|
|
21097
|
+
* Glob patterns for ADDITIONAL tsconfig files to lint (aka sort)
|
|
21098
|
+
*/
|
|
21099
|
+
extendTsconfigLintGlobs?: string[];
|
|
21048
21100
|
typeAware?: boolean;
|
|
21049
21101
|
/**
|
|
21050
21102
|
* Enable TypeScript support.
|
|
@@ -21136,8 +21188,10 @@ declare const GLOB_JSON5 = "**/*.json5";
|
|
|
21136
21188
|
declare const GLOB_JSONC = "**/*.jsonc";
|
|
21137
21189
|
declare const GLOB_TOML = "**/*.toml";
|
|
21138
21190
|
declare const GLOB_MARKDOWN = "**/*.md";
|
|
21191
|
+
declare const GLOB_GRAPHQL: string[];
|
|
21139
21192
|
declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
21140
21193
|
declare const GLOB_HTML = "**/*.htm?(l)";
|
|
21194
|
+
declare const GLOB_TSCONFIG: string[];
|
|
21141
21195
|
declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
|
|
21142
21196
|
declare const GLOB_TESTS: string[];
|
|
21143
21197
|
declare const GLOB_ALL_SRC: string[];
|
|
@@ -22112,6 +22166,9 @@ declare function importPluginTailwind(): Promise<{
|
|
|
22112
22166
|
pluginTailwind: any;
|
|
22113
22167
|
}>;
|
|
22114
22168
|
|
|
22169
|
+
declare function jssestd(): Promise<TypedFlatConfigItem[]>;
|
|
22170
|
+
declare function jsseReact(): Promise<TypedFlatConfigItem[]>;
|
|
22171
|
+
|
|
22115
22172
|
/**
|
|
22116
22173
|
* Combine array and non-array configs into a single array.
|
|
22117
22174
|
*/
|
|
@@ -22126,8 +22183,11 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
|
22126
22183
|
} ? U : T>;
|
|
22127
22184
|
declare function isCI(): boolean;
|
|
22128
22185
|
declare function isInEditor(): boolean;
|
|
22186
|
+
/**
|
|
22187
|
+
* Make an array of strings unique maintaining order.
|
|
22188
|
+
* @param strings strings to make unique
|
|
22189
|
+
* @returns unique strings
|
|
22190
|
+
*/
|
|
22191
|
+
declare function uniqueStrings(...strings: (string | string[])[]): string[];
|
|
22129
22192
|
|
|
22130
|
-
|
|
22131
|
-
declare function jsseReact(): Promise<TypedFlatConfigItem[]>;
|
|
22132
|
-
|
|
22133
|
-
export { type Awaitable, type EslintConfigFn, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type Rules, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, combine, combineAsync, jsse as default, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, jssestd, renameRules };
|
|
22193
|
+
export { type Awaitable, type EslintConfigFn, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_YAML, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type Rules, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, combine, combineAsync, jsse as default, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, jssestd, renameRules, uniqueStrings };
|