@anolilab/eslint-config 16.2.23 → 16.2.25
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/CHANGELOG.md +12 -0
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +257 -64
- package/dist/index.d.mts +257 -64
- package/dist/index.d.ts +257 -64
- package/dist/index.mjs +10 -10
- package/package.json +21 -17
package/dist/index.d.ts
CHANGED
|
@@ -191,8 +191,9 @@ interface RuleOptions {
|
|
|
191
191
|
*/
|
|
192
192
|
'@stylistic/jsx-pascal-case'?: Linter.RuleEntry<StylisticJsxPascalCase>
|
|
193
193
|
/**
|
|
194
|
-
* Disallow multiple spaces between inline JSX props
|
|
194
|
+
* Disallow multiple spaces between inline JSX props. Deprecated, use `no-multi-spaces` rule instead.
|
|
195
195
|
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
196
|
+
* @deprecated
|
|
196
197
|
*/
|
|
197
198
|
'@stylistic/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>
|
|
198
199
|
/**
|
|
@@ -2513,7 +2514,7 @@ interface RuleOptions {
|
|
|
2513
2514
|
* Enforce heading levels increment by one
|
|
2514
2515
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
2515
2516
|
*/
|
|
2516
|
-
'markdown/heading-increment'?: Linter.RuleEntry<
|
|
2517
|
+
'markdown/heading-increment'?: Linter.RuleEntry<MarkdownHeadingIncrement>
|
|
2517
2518
|
/**
|
|
2518
2519
|
* Disallow bare URLs
|
|
2519
2520
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
|
|
@@ -2558,7 +2559,7 @@ interface RuleOptions {
|
|
|
2558
2559
|
* Disallow headings without a space after the hash characters
|
|
2559
2560
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
|
|
2560
2561
|
*/
|
|
2561
|
-
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<
|
|
2562
|
+
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<MarkdownNoMissingAtxHeadingSpace>
|
|
2562
2563
|
/**
|
|
2563
2564
|
* Disallow missing label references
|
|
2564
2565
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
@@ -2579,6 +2580,11 @@ interface RuleOptions {
|
|
|
2579
2580
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
2580
2581
|
*/
|
|
2581
2582
|
'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
|
|
2583
|
+
/**
|
|
2584
|
+
* Disallow spaces around emphasis markers
|
|
2585
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-space-in-emphasis.md
|
|
2586
|
+
*/
|
|
2587
|
+
'markdown/no-space-in-emphasis'?: Linter.RuleEntry<MarkdownNoSpaceInEmphasis>
|
|
2582
2588
|
/**
|
|
2583
2589
|
* Disallow unused definitions
|
|
2584
2590
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
@@ -2929,6 +2935,11 @@ interface RuleOptions {
|
|
|
2929
2935
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/expect-expect.md
|
|
2930
2936
|
*/
|
|
2931
2937
|
'playwright/expect-expect'?: Linter.RuleEntry<PlaywrightExpectExpect>
|
|
2938
|
+
/**
|
|
2939
|
+
* Enforces a maximum number assertion calls in a test body
|
|
2940
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/max-expects.md
|
|
2941
|
+
*/
|
|
2942
|
+
'playwright/max-expects'?: Linter.RuleEntry<PlaywrightMaxExpects>
|
|
2932
2943
|
/**
|
|
2933
2944
|
* Enforces a maximum depth to nested describe calls
|
|
2934
2945
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/max-nested-describe.md
|
|
@@ -2936,13 +2947,29 @@ interface RuleOptions {
|
|
|
2936
2947
|
'playwright/max-nested-describe'?: Linter.RuleEntry<PlaywrightMaxNestedDescribe>
|
|
2937
2948
|
/**
|
|
2938
2949
|
* Identify false positives when async Playwright APIs are not properly awaited.
|
|
2950
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/missing-playwright-await.md
|
|
2939
2951
|
*/
|
|
2940
2952
|
'playwright/missing-playwright-await'?: Linter.RuleEntry<PlaywrightMissingPlaywrightAwait>
|
|
2953
|
+
/**
|
|
2954
|
+
* Disallow commented out tests
|
|
2955
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-commented-out-tests.md
|
|
2956
|
+
*/
|
|
2957
|
+
'playwright/no-commented-out-tests'?: Linter.RuleEntry<[]>
|
|
2958
|
+
/**
|
|
2959
|
+
* Disallow calling `expect` conditionally
|
|
2960
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-conditional-expect.md
|
|
2961
|
+
*/
|
|
2962
|
+
'playwright/no-conditional-expect'?: Linter.RuleEntry<[]>
|
|
2941
2963
|
/**
|
|
2942
2964
|
* Disallow conditional logic in tests
|
|
2943
2965
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-conditional-in-test.md
|
|
2944
2966
|
*/
|
|
2945
2967
|
'playwright/no-conditional-in-test'?: Linter.RuleEntry<[]>
|
|
2968
|
+
/**
|
|
2969
|
+
* Disallow duplicate setup and teardown hooks
|
|
2970
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-duplicate-hooks.md
|
|
2971
|
+
*/
|
|
2972
|
+
'playwright/no-duplicate-hooks'?: Linter.RuleEntry<[]>
|
|
2946
2973
|
/**
|
|
2947
2974
|
* The use of ElementHandle is discouraged, use Locator instead
|
|
2948
2975
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-element-handle.md
|
|
@@ -2963,6 +2990,16 @@ interface RuleOptions {
|
|
|
2963
2990
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-force-option.md
|
|
2964
2991
|
*/
|
|
2965
2992
|
'playwright/no-force-option'?: Linter.RuleEntry<[]>
|
|
2993
|
+
/**
|
|
2994
|
+
* Disallows the usage of getByTitle()
|
|
2995
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-get-by-title.md
|
|
2996
|
+
*/
|
|
2997
|
+
'playwright/no-get-by-title'?: Linter.RuleEntry<[]>
|
|
2998
|
+
/**
|
|
2999
|
+
* Disallow setup and teardown hooks
|
|
3000
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-hooks.md
|
|
3001
|
+
*/
|
|
3002
|
+
'playwright/no-hooks'?: Linter.RuleEntry<PlaywrightNoHooks>
|
|
2966
3003
|
/**
|
|
2967
3004
|
* Disallow nested `test.step()` methods
|
|
2968
3005
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-nested-step.md
|
|
@@ -2970,6 +3007,7 @@ interface RuleOptions {
|
|
|
2970
3007
|
'playwright/no-nested-step'?: Linter.RuleEntry<[]>
|
|
2971
3008
|
/**
|
|
2972
3009
|
* Prevent usage of the networkidle option
|
|
3010
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-networkidle.md
|
|
2973
3011
|
*/
|
|
2974
3012
|
'playwright/no-networkidle'?: Linter.RuleEntry<[]>
|
|
2975
3013
|
/**
|
|
@@ -2979,13 +3017,14 @@ interface RuleOptions {
|
|
|
2979
3017
|
'playwright/no-nth-methods'?: Linter.RuleEntry<[]>
|
|
2980
3018
|
/**
|
|
2981
3019
|
* Prevent usage of page.pause()
|
|
3020
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-page-pause.md
|
|
2982
3021
|
*/
|
|
2983
3022
|
'playwright/no-page-pause'?: Linter.RuleEntry<[]>
|
|
2984
3023
|
/**
|
|
2985
3024
|
* Disallows the usage of raw locators
|
|
2986
3025
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-raw-locators.md
|
|
2987
3026
|
*/
|
|
2988
|
-
'playwright/no-raw-locators'?: Linter.RuleEntry<
|
|
3027
|
+
'playwright/no-raw-locators'?: Linter.RuleEntry<PlaywrightNoRawLocators>
|
|
2989
3028
|
/**
|
|
2990
3029
|
* Disallow specific matchers & modifiers
|
|
2991
3030
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-restricted-matchers.md
|
|
@@ -2996,8 +3035,24 @@ interface RuleOptions {
|
|
|
2996
3035
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-skipped-test.md
|
|
2997
3036
|
*/
|
|
2998
3037
|
'playwright/no-skipped-test'?: Linter.RuleEntry<PlaywrightNoSkippedTest>
|
|
3038
|
+
/**
|
|
3039
|
+
* Prevent usage of the `.slow()` slow test annotation.
|
|
3040
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-slowed-test.md
|
|
3041
|
+
*/
|
|
3042
|
+
'playwright/no-slowed-test'?: Linter.RuleEntry<PlaywrightNoSlowedTest>
|
|
3043
|
+
/**
|
|
3044
|
+
* Disallow using `expect` outside of `test` blocks
|
|
3045
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-standalone-expect.md
|
|
3046
|
+
*/
|
|
3047
|
+
'playwright/no-standalone-expect'?: Linter.RuleEntry<[]>
|
|
3048
|
+
/**
|
|
3049
|
+
* Prevent unsafe variable references in page.evaluate() and page.addInitScript()
|
|
3050
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
|
|
3051
|
+
*/
|
|
3052
|
+
'playwright/no-unsafe-references'?: Linter.RuleEntry<[]>
|
|
2999
3053
|
/**
|
|
3000
3054
|
* Disallow unnecessary awaits for Playwright methods
|
|
3055
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-await.md
|
|
3001
3056
|
*/
|
|
3002
3057
|
'playwright/no-useless-await'?: Linter.RuleEntry<[]>
|
|
3003
3058
|
/**
|
|
@@ -3005,16 +3060,56 @@ interface RuleOptions {
|
|
|
3005
3060
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-useless-not.md
|
|
3006
3061
|
*/
|
|
3007
3062
|
'playwright/no-useless-not'?: Linter.RuleEntry<[]>
|
|
3063
|
+
/**
|
|
3064
|
+
* Prevent usage of page.waitForNavigation()
|
|
3065
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-navigation.md
|
|
3066
|
+
*/
|
|
3067
|
+
'playwright/no-wait-for-navigation'?: Linter.RuleEntry<[]>
|
|
3068
|
+
/**
|
|
3069
|
+
* Prevent usage of page.waitForSelector()
|
|
3070
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-selector.md
|
|
3071
|
+
*/
|
|
3072
|
+
'playwright/no-wait-for-selector'?: Linter.RuleEntry<[]>
|
|
3008
3073
|
/**
|
|
3009
3074
|
* Prevent usage of page.waitForTimeout()
|
|
3010
3075
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/no-wait-for-timeout.md
|
|
3011
3076
|
*/
|
|
3012
3077
|
'playwright/no-wait-for-timeout'?: Linter.RuleEntry<[]>
|
|
3078
|
+
/**
|
|
3079
|
+
* Suggest using the built-in comparison matchers
|
|
3080
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-comparison-matcher.md
|
|
3081
|
+
*/
|
|
3082
|
+
'playwright/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
3083
|
+
/**
|
|
3084
|
+
* Suggest using the built-in equality matchers
|
|
3085
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-equality-matcher.md
|
|
3086
|
+
*/
|
|
3087
|
+
'playwright/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
3088
|
+
/**
|
|
3089
|
+
* Prefer having hooks in a consistent order
|
|
3090
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-hooks-in-order.md
|
|
3091
|
+
*/
|
|
3092
|
+
'playwright/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
|
|
3093
|
+
/**
|
|
3094
|
+
* Suggest having hooks before any test cases
|
|
3095
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-hooks-on-top.md
|
|
3096
|
+
*/
|
|
3097
|
+
'playwright/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
3098
|
+
/**
|
|
3099
|
+
* Suggest locators over page methods
|
|
3100
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-locator.md
|
|
3101
|
+
*/
|
|
3102
|
+
'playwright/prefer-locator'?: Linter.RuleEntry<[]>
|
|
3013
3103
|
/**
|
|
3014
3104
|
* Enforce lowercase test names
|
|
3015
3105
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-lowercase-title.md
|
|
3016
3106
|
*/
|
|
3017
3107
|
'playwright/prefer-lowercase-title'?: Linter.RuleEntry<PlaywrightPreferLowercaseTitle>
|
|
3108
|
+
/**
|
|
3109
|
+
* Prefer native locator functions
|
|
3110
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-native-locators.md
|
|
3111
|
+
*/
|
|
3112
|
+
'playwright/prefer-native-locators'?: Linter.RuleEntry<PlaywrightPreferNativeLocators>
|
|
3018
3113
|
/**
|
|
3019
3114
|
* Suggest using `toStrictEqual()`
|
|
3020
3115
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-strict-equal.md
|
|
@@ -3045,21 +3140,50 @@ interface RuleOptions {
|
|
|
3045
3140
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-web-first-assertions.md
|
|
3046
3141
|
*/
|
|
3047
3142
|
'playwright/prefer-web-first-assertions'?: Linter.RuleEntry<[]>
|
|
3143
|
+
/**
|
|
3144
|
+
* Require setup and teardown code to be within a hook
|
|
3145
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/require-hook.md
|
|
3146
|
+
*/
|
|
3147
|
+
'playwright/require-hook'?: Linter.RuleEntry<PlaywrightRequireHook>
|
|
3048
3148
|
/**
|
|
3049
3149
|
* Require all assertions to use `expect.soft`
|
|
3050
3150
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/require-soft-assertions.md
|
|
3051
3151
|
*/
|
|
3052
3152
|
'playwright/require-soft-assertions'?: Linter.RuleEntry<[]>
|
|
3153
|
+
/**
|
|
3154
|
+
* Require a message for `toThrow()`
|
|
3155
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/require-to-throw-message.md
|
|
3156
|
+
*/
|
|
3157
|
+
'playwright/require-to-throw-message'?: Linter.RuleEntry<[]>
|
|
3053
3158
|
/**
|
|
3054
3159
|
* Require test cases and hooks to be inside a `test.describe` block
|
|
3055
3160
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/require-top-level-describe.md
|
|
3056
3161
|
*/
|
|
3057
3162
|
'playwright/require-top-level-describe'?: Linter.RuleEntry<PlaywrightRequireTopLevelDescribe>
|
|
3163
|
+
/**
|
|
3164
|
+
* Enforce valid `describe()` callback
|
|
3165
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/valid-describe-callback.md
|
|
3166
|
+
*/
|
|
3167
|
+
'playwright/valid-describe-callback'?: Linter.RuleEntry<[]>
|
|
3058
3168
|
/**
|
|
3059
3169
|
* Enforce valid `expect()` usage
|
|
3060
3170
|
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/valid-expect.md
|
|
3061
3171
|
*/
|
|
3062
3172
|
'playwright/valid-expect'?: Linter.RuleEntry<PlaywrightValidExpect>
|
|
3173
|
+
/**
|
|
3174
|
+
* Require promises that have expectations in their chain to be valid
|
|
3175
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/valid-expect-in-promise.md
|
|
3176
|
+
*/
|
|
3177
|
+
'playwright/valid-expect-in-promise'?: Linter.RuleEntry<[]>
|
|
3178
|
+
/**
|
|
3179
|
+
* Enforce valid tag format in Playwright test blocks
|
|
3180
|
+
*/
|
|
3181
|
+
'playwright/valid-test-tags'?: Linter.RuleEntry<PlaywrightValidTestTags>
|
|
3182
|
+
/**
|
|
3183
|
+
* Enforce valid titles
|
|
3184
|
+
* @see https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/valid-title.md
|
|
3185
|
+
*/
|
|
3186
|
+
'playwright/valid-title'?: Linter.RuleEntry<PlaywrightValidTitle>
|
|
3063
3187
|
/**
|
|
3064
3188
|
* Require returning inside each `then()` to create readable and reusable Promise chains.
|
|
3065
3189
|
* @see https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/always-return.md
|
|
@@ -3559,7 +3683,7 @@ interface RuleOptions {
|
|
|
3559
3683
|
'react-x/no-nested-components'?: Linter.RuleEntry<[]>
|
|
3560
3684
|
/**
|
|
3561
3685
|
* Disallow nesting lazy component declarations inside other components.
|
|
3562
|
-
* @see https://eslint-react.xyz/docs/rules/no-nested-component-
|
|
3686
|
+
* @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
|
|
3563
3687
|
*/
|
|
3564
3688
|
'react-x/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
|
|
3565
3689
|
/**
|
|
@@ -5280,7 +5404,7 @@ interface RuleOptions {
|
|
|
5280
5404
|
*/
|
|
5281
5405
|
'sonarjs/no-equals-in-for-termination'?: Linter.RuleEntry<[]>
|
|
5282
5406
|
/**
|
|
5283
|
-
* Exclusive tests should not be
|
|
5407
|
+
* Exclusive tests should not be committed to version control
|
|
5284
5408
|
* @see https://sonarsource.github.io/rspec/#/rspec/S6426/javascript
|
|
5285
5409
|
*/
|
|
5286
5410
|
'sonarjs/no-exclusive-tests'?: Linter.RuleEntry<[]>
|
|
@@ -5484,11 +5608,6 @@ interface RuleOptions {
|
|
|
5484
5608
|
* @see https://sonarsource.github.io/rspec/#/rspec/S4624/javascript
|
|
5485
5609
|
*/
|
|
5486
5610
|
'sonarjs/no-nested-template-literals'?: Linter.RuleEntry<[]>
|
|
5487
|
-
/**
|
|
5488
|
-
* Loops with at most one iteration should be refactored
|
|
5489
|
-
* @see https://sonarsource.github.io/rspec/#/rspec/S1751/javascript
|
|
5490
|
-
*/
|
|
5491
|
-
'sonarjs/no-one-iteration-loop'?: Linter.RuleEntry<[]>
|
|
5492
5611
|
/**
|
|
5493
5612
|
* Searching OS commands in PATH is security-sensitive
|
|
5494
5613
|
* @see https://sonarsource.github.io/rspec/#/rspec/S4036/javascript
|
|
@@ -5949,7 +6068,6 @@ interface RuleOptions {
|
|
|
5949
6068
|
/**
|
|
5950
6069
|
* Loop counters should not be assigned within the loop body
|
|
5951
6070
|
* @see https://sonarsource.github.io/rspec/#/rspec/S2310/javascript
|
|
5952
|
-
* @deprecated
|
|
5953
6071
|
*/
|
|
5954
6072
|
'sonarjs/updated-loop-counter'?: Linter.RuleEntry<[]>
|
|
5955
6073
|
/**
|
|
@@ -7110,6 +7228,11 @@ interface RuleOptions {
|
|
|
7110
7228
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
7111
7229
|
*/
|
|
7112
7230
|
'vitest/expect-expect'?: Linter.RuleEntry<VitestExpectExpect>
|
|
7231
|
+
/**
|
|
7232
|
+
* enforce hoisted APIs to be on top of the file
|
|
7233
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/hoisted-apis-on-top.md
|
|
7234
|
+
*/
|
|
7235
|
+
'vitest/hoisted-apis-on-top'?: Linter.RuleEntry<[]>
|
|
7113
7236
|
/**
|
|
7114
7237
|
* enforce a maximum number of expect per test
|
|
7115
7238
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
@@ -7316,6 +7439,11 @@ interface RuleOptions {
|
|
|
7316
7439
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
7317
7440
|
*/
|
|
7318
7441
|
'vitest/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
7442
|
+
/**
|
|
7443
|
+
* enforce using `expectTypeOf` instead of `expect(typeof ...)`
|
|
7444
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-type-of.md
|
|
7445
|
+
*/
|
|
7446
|
+
'vitest/prefer-expect-type-of'?: Linter.RuleEntry<[]>
|
|
7319
7447
|
/**
|
|
7320
7448
|
* enforce having hooks in consistent order
|
|
7321
7449
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
@@ -7900,6 +8028,7 @@ type StylisticIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
7900
8028
|
const?: (number | ("first" | "off"))
|
|
7901
8029
|
using?: (number | ("first" | "off"))
|
|
7902
8030
|
})
|
|
8031
|
+
assignmentOperator?: (number | "off")
|
|
7903
8032
|
outerIIFEBody?: (number | "off")
|
|
7904
8033
|
MemberExpression?: (number | "off")
|
|
7905
8034
|
FunctionDeclaration?: {
|
|
@@ -8132,6 +8261,22 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8132
8261
|
before?: boolean
|
|
8133
8262
|
after?: boolean
|
|
8134
8263
|
}
|
|
8264
|
+
arguments?: {
|
|
8265
|
+
before?: boolean
|
|
8266
|
+
after?: boolean
|
|
8267
|
+
}
|
|
8268
|
+
as?: {
|
|
8269
|
+
before?: boolean
|
|
8270
|
+
after?: boolean
|
|
8271
|
+
}
|
|
8272
|
+
async?: {
|
|
8273
|
+
before?: boolean
|
|
8274
|
+
after?: boolean
|
|
8275
|
+
}
|
|
8276
|
+
await?: {
|
|
8277
|
+
before?: boolean
|
|
8278
|
+
after?: boolean
|
|
8279
|
+
}
|
|
8135
8280
|
boolean?: {
|
|
8136
8281
|
before?: boolean
|
|
8137
8282
|
after?: boolean
|
|
@@ -8196,6 +8341,10 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8196
8341
|
before?: boolean
|
|
8197
8342
|
after?: boolean
|
|
8198
8343
|
}
|
|
8344
|
+
eval?: {
|
|
8345
|
+
before?: boolean
|
|
8346
|
+
after?: boolean
|
|
8347
|
+
}
|
|
8199
8348
|
export?: {
|
|
8200
8349
|
before?: boolean
|
|
8201
8350
|
after?: boolean
|
|
@@ -8224,10 +8373,18 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8224
8373
|
before?: boolean
|
|
8225
8374
|
after?: boolean
|
|
8226
8375
|
}
|
|
8376
|
+
from?: {
|
|
8377
|
+
before?: boolean
|
|
8378
|
+
after?: boolean
|
|
8379
|
+
}
|
|
8227
8380
|
function?: {
|
|
8228
8381
|
before?: boolean
|
|
8229
8382
|
after?: boolean
|
|
8230
8383
|
}
|
|
8384
|
+
get?: {
|
|
8385
|
+
before?: boolean
|
|
8386
|
+
after?: boolean
|
|
8387
|
+
}
|
|
8231
8388
|
goto?: {
|
|
8232
8389
|
before?: boolean
|
|
8233
8390
|
after?: boolean
|
|
@@ -8260,6 +8417,10 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8260
8417
|
before?: boolean
|
|
8261
8418
|
after?: boolean
|
|
8262
8419
|
}
|
|
8420
|
+
let?: {
|
|
8421
|
+
before?: boolean
|
|
8422
|
+
after?: boolean
|
|
8423
|
+
}
|
|
8263
8424
|
long?: {
|
|
8264
8425
|
before?: boolean
|
|
8265
8426
|
after?: boolean
|
|
@@ -8276,6 +8437,10 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8276
8437
|
before?: boolean
|
|
8277
8438
|
after?: boolean
|
|
8278
8439
|
}
|
|
8440
|
+
of?: {
|
|
8441
|
+
before?: boolean
|
|
8442
|
+
after?: boolean
|
|
8443
|
+
}
|
|
8279
8444
|
package?: {
|
|
8280
8445
|
before?: boolean
|
|
8281
8446
|
after?: boolean
|
|
@@ -8296,6 +8461,10 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8296
8461
|
before?: boolean
|
|
8297
8462
|
after?: boolean
|
|
8298
8463
|
}
|
|
8464
|
+
set?: {
|
|
8465
|
+
before?: boolean
|
|
8466
|
+
after?: boolean
|
|
8467
|
+
}
|
|
8299
8468
|
short?: {
|
|
8300
8469
|
before?: boolean
|
|
8301
8470
|
after?: boolean
|
|
@@ -8340,59 +8509,43 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8340
8509
|
before?: boolean
|
|
8341
8510
|
after?: boolean
|
|
8342
8511
|
}
|
|
8343
|
-
|
|
8344
|
-
before?: boolean
|
|
8345
|
-
after?: boolean
|
|
8346
|
-
}
|
|
8347
|
-
var?: {
|
|
8348
|
-
before?: boolean
|
|
8349
|
-
after?: boolean
|
|
8350
|
-
}
|
|
8351
|
-
void?: {
|
|
8352
|
-
before?: boolean
|
|
8353
|
-
after?: boolean
|
|
8354
|
-
}
|
|
8355
|
-
volatile?: {
|
|
8356
|
-
before?: boolean
|
|
8357
|
-
after?: boolean
|
|
8358
|
-
}
|
|
8359
|
-
while?: {
|
|
8512
|
+
type?: {
|
|
8360
8513
|
before?: boolean
|
|
8361
8514
|
after?: boolean
|
|
8362
8515
|
}
|
|
8363
|
-
|
|
8516
|
+
typeof?: {
|
|
8364
8517
|
before?: boolean
|
|
8365
8518
|
after?: boolean
|
|
8366
8519
|
}
|
|
8367
|
-
|
|
8520
|
+
using?: {
|
|
8368
8521
|
before?: boolean
|
|
8369
8522
|
after?: boolean
|
|
8370
8523
|
}
|
|
8371
|
-
|
|
8524
|
+
var?: {
|
|
8372
8525
|
before?: boolean
|
|
8373
8526
|
after?: boolean
|
|
8374
8527
|
}
|
|
8375
|
-
|
|
8528
|
+
void?: {
|
|
8376
8529
|
before?: boolean
|
|
8377
8530
|
after?: boolean
|
|
8378
8531
|
}
|
|
8379
|
-
|
|
8532
|
+
volatile?: {
|
|
8380
8533
|
before?: boolean
|
|
8381
8534
|
after?: boolean
|
|
8382
8535
|
}
|
|
8383
|
-
|
|
8536
|
+
while?: {
|
|
8384
8537
|
before?: boolean
|
|
8385
8538
|
after?: boolean
|
|
8386
8539
|
}
|
|
8387
|
-
|
|
8540
|
+
with?: {
|
|
8388
8541
|
before?: boolean
|
|
8389
8542
|
after?: boolean
|
|
8390
8543
|
}
|
|
8391
|
-
|
|
8544
|
+
yield?: {
|
|
8392
8545
|
before?: boolean
|
|
8393
8546
|
after?: boolean
|
|
8394
8547
|
}
|
|
8395
|
-
|
|
8548
|
+
accessor?: {
|
|
8396
8549
|
before?: boolean
|
|
8397
8550
|
after?: boolean
|
|
8398
8551
|
}
|
|
@@ -8400,22 +8553,6 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8400
8553
|
before?: boolean
|
|
8401
8554
|
after?: boolean
|
|
8402
8555
|
}
|
|
8403
|
-
set?: {
|
|
8404
|
-
before?: boolean
|
|
8405
|
-
after?: boolean
|
|
8406
|
-
}
|
|
8407
|
-
using?: {
|
|
8408
|
-
before?: boolean
|
|
8409
|
-
after?: boolean
|
|
8410
|
-
}
|
|
8411
|
-
yield?: {
|
|
8412
|
-
before?: boolean
|
|
8413
|
-
after?: boolean
|
|
8414
|
-
}
|
|
8415
|
-
type?: {
|
|
8416
|
-
before?: boolean
|
|
8417
|
-
after?: boolean
|
|
8418
|
-
}
|
|
8419
8556
|
}
|
|
8420
8557
|
}]
|
|
8421
8558
|
// ----- @stylistic/line-comment-position -----
|
|
@@ -8617,6 +8754,7 @@ type StylisticNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
8617
8754
|
LogicalExpression?: boolean
|
|
8618
8755
|
AwaitExpression?: boolean
|
|
8619
8756
|
}
|
|
8757
|
+
ignoredNodes?: string[]
|
|
8620
8758
|
}])
|
|
8621
8759
|
// ----- @stylistic/no-mixed-operators -----
|
|
8622
8760
|
type StylisticNoMixedOperators = []|[{
|
|
@@ -8732,7 +8870,7 @@ type StylisticPaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
|
8732
8870
|
// ----- @stylistic/padding-line-between-statements -----
|
|
8733
8871
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
8734
8872
|
type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ...(_StylisticPaddingLineBetweenStatementsStatementType)[]])
|
|
8735
|
-
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "
|
|
8873
|
+
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type")
|
|
8736
8874
|
type StylisticPaddingLineBetweenStatements = {
|
|
8737
8875
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType
|
|
8738
8876
|
prev: _StylisticPaddingLineBetweenStatementsStatementOption
|
|
@@ -10949,6 +11087,7 @@ type JsdocRequireReturnsType = []|[{
|
|
|
10949
11087
|
}]
|
|
10950
11088
|
// ----- jsdoc/require-template -----
|
|
10951
11089
|
type JsdocRequireTemplate = []|[{
|
|
11090
|
+
exemptedBy?: string[]
|
|
10952
11091
|
requireSeparateTemplates?: boolean
|
|
10953
11092
|
}]
|
|
10954
11093
|
// ----- jsdoc/require-throws -----
|
|
@@ -11498,6 +11637,10 @@ type JsxA11YTabindexNoPositive = []|[{
|
|
|
11498
11637
|
type MarkdownFencedCodeLanguage = []|[{
|
|
11499
11638
|
required?: string[]
|
|
11500
11639
|
}]
|
|
11640
|
+
// ----- markdown/heading-increment -----
|
|
11641
|
+
type MarkdownHeadingIncrement = []|[{
|
|
11642
|
+
frontmatterTitle?: string
|
|
11643
|
+
}]
|
|
11501
11644
|
// ----- markdown/no-duplicate-definitions -----
|
|
11502
11645
|
type MarkdownNoDuplicateDefinitions = []|[{
|
|
11503
11646
|
allowDefinitions?: string[]
|
|
@@ -11516,6 +11659,11 @@ type MarkdownNoEmptyDefinitions = []|[{
|
|
|
11516
11659
|
// ----- markdown/no-html -----
|
|
11517
11660
|
type MarkdownNoHtml = []|[{
|
|
11518
11661
|
allowed?: string[]
|
|
11662
|
+
allowedIgnoreCase?: boolean
|
|
11663
|
+
}]
|
|
11664
|
+
// ----- markdown/no-missing-atx-heading-space -----
|
|
11665
|
+
type MarkdownNoMissingAtxHeadingSpace = []|[{
|
|
11666
|
+
checkClosedHeadings?: boolean
|
|
11519
11667
|
}]
|
|
11520
11668
|
// ----- markdown/no-missing-link-fragments -----
|
|
11521
11669
|
type MarkdownNoMissingLinkFragments = []|[{
|
|
@@ -11526,6 +11674,10 @@ type MarkdownNoMissingLinkFragments = []|[{
|
|
|
11526
11674
|
type MarkdownNoMultipleH1 = []|[{
|
|
11527
11675
|
frontmatterTitle?: string
|
|
11528
11676
|
}]
|
|
11677
|
+
// ----- markdown/no-space-in-emphasis -----
|
|
11678
|
+
type MarkdownNoSpaceInEmphasis = []|[{
|
|
11679
|
+
checkStrikethrough?: boolean
|
|
11680
|
+
}]
|
|
11529
11681
|
// ----- markdown/no-unused-definitions -----
|
|
11530
11682
|
type MarkdownNoUnusedDefinitions = []|[{
|
|
11531
11683
|
allowDefinitions?: string[]
|
|
@@ -14737,7 +14889,11 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
14737
14889
|
}]
|
|
14738
14890
|
// ----- playwright/expect-expect -----
|
|
14739
14891
|
type PlaywrightExpectExpect = []|[{
|
|
14740
|
-
|
|
14892
|
+
assertFunctionNames?: []|[string]
|
|
14893
|
+
}]
|
|
14894
|
+
// ----- playwright/max-expects -----
|
|
14895
|
+
type PlaywrightMaxExpects = []|[{
|
|
14896
|
+
max?: number
|
|
14741
14897
|
}]
|
|
14742
14898
|
// ----- playwright/max-nested-describe -----
|
|
14743
14899
|
type PlaywrightMaxNestedDescribe = []|[{
|
|
@@ -14747,6 +14903,14 @@ type PlaywrightMaxNestedDescribe = []|[{
|
|
|
14747
14903
|
type PlaywrightMissingPlaywrightAwait = []|[{
|
|
14748
14904
|
customMatchers?: string[]
|
|
14749
14905
|
}]
|
|
14906
|
+
// ----- playwright/no-hooks -----
|
|
14907
|
+
type PlaywrightNoHooks = []|[{
|
|
14908
|
+
allow?: unknown[]
|
|
14909
|
+
}]
|
|
14910
|
+
// ----- playwright/no-raw-locators -----
|
|
14911
|
+
type PlaywrightNoRawLocators = []|[{
|
|
14912
|
+
allowed?: string[]
|
|
14913
|
+
}]
|
|
14750
14914
|
// ----- playwright/no-restricted-matchers -----
|
|
14751
14915
|
type PlaywrightNoRestrictedMatchers = []|[{
|
|
14752
14916
|
[k: string]: (string | null) | undefined
|
|
@@ -14755,12 +14919,24 @@ type PlaywrightNoRestrictedMatchers = []|[{
|
|
|
14755
14919
|
type PlaywrightNoSkippedTest = []|[{
|
|
14756
14920
|
allowConditional?: boolean
|
|
14757
14921
|
}]
|
|
14922
|
+
// ----- playwright/no-slowed-test -----
|
|
14923
|
+
type PlaywrightNoSlowedTest = []|[{
|
|
14924
|
+
allowConditional?: boolean
|
|
14925
|
+
}]
|
|
14758
14926
|
// ----- playwright/prefer-lowercase-title -----
|
|
14759
14927
|
type PlaywrightPreferLowercaseTitle = []|[{
|
|
14760
14928
|
allowedPrefixes?: string[]
|
|
14761
14929
|
ignore?: ("test.describe" | "test")[]
|
|
14762
14930
|
ignoreTopLevelDescribe?: boolean
|
|
14763
14931
|
}]
|
|
14932
|
+
// ----- playwright/prefer-native-locators -----
|
|
14933
|
+
type PlaywrightPreferNativeLocators = []|[{
|
|
14934
|
+
testIdAttribute?: string
|
|
14935
|
+
}]
|
|
14936
|
+
// ----- playwright/require-hook -----
|
|
14937
|
+
type PlaywrightRequireHook = []|[{
|
|
14938
|
+
allowedFunctionCalls?: string[]
|
|
14939
|
+
}]
|
|
14764
14940
|
// ----- playwright/require-top-level-describe -----
|
|
14765
14941
|
type PlaywrightRequireTopLevelDescribe = []|[{
|
|
14766
14942
|
maxTopLevelDescribes?: number
|
|
@@ -14770,6 +14946,26 @@ type PlaywrightValidExpect = []|[{
|
|
|
14770
14946
|
maxArgs?: number
|
|
14771
14947
|
minArgs?: number
|
|
14772
14948
|
}]
|
|
14949
|
+
// ----- playwright/valid-test-tags -----
|
|
14950
|
+
type PlaywrightValidTestTags = []|[{
|
|
14951
|
+
allowedTags?: (string | {
|
|
14952
|
+
source?: string
|
|
14953
|
+
})[]
|
|
14954
|
+
disallowedTags?: (string | {
|
|
14955
|
+
source?: string
|
|
14956
|
+
})[]
|
|
14957
|
+
}]
|
|
14958
|
+
// ----- playwright/valid-title -----
|
|
14959
|
+
type PlaywrightValidTitle = []|[{
|
|
14960
|
+
disallowedWords?: string[]
|
|
14961
|
+
ignoreSpaces?: boolean
|
|
14962
|
+
ignoreTypeOfDescribeName?: boolean
|
|
14963
|
+
ignoreTypeOfStepName?: boolean
|
|
14964
|
+
ignoreTypeOfTestName?: boolean
|
|
14965
|
+
[k: string]: (string | [string]|[string, string] | {
|
|
14966
|
+
[k: string]: (string | [string]|[string, string]) | undefined
|
|
14967
|
+
})
|
|
14968
|
+
}]
|
|
14773
14969
|
// ----- promise/always-return -----
|
|
14774
14970
|
type PromiseAlwaysReturn = []|[{
|
|
14775
14971
|
ignoreLastCallback?: boolean
|
|
@@ -14822,8 +15018,6 @@ type ReactHooksExhaustiveDeps = []|[{
|
|
|
14822
15018
|
// ----- react-naming-convention/component-name -----
|
|
14823
15019
|
type ReactNamingConventionComponentName = []|[(("PascalCase" | "CONSTANT_CASE") | {
|
|
14824
15020
|
allowAllCaps?: boolean
|
|
14825
|
-
allowLeadingUnderscore?: boolean
|
|
14826
|
-
allowNamespace?: boolean
|
|
14827
15021
|
excepts?: string[]
|
|
14828
15022
|
rule?: ("PascalCase" | "CONSTANT_CASE")
|
|
14829
15023
|
})]
|
|
@@ -16067,7 +16261,6 @@ type UnocssEnforceClassCompile = []|[{
|
|
|
16067
16261
|
type UnocssOrder = []|[{
|
|
16068
16262
|
unoFunctions?: string[]
|
|
16069
16263
|
unoVariables?: string[]
|
|
16070
|
-
[k: string]: unknown | undefined
|
|
16071
16264
|
}]
|
|
16072
16265
|
// ----- vitest/consistent-test-filename -----
|
|
16073
16266
|
type VitestConsistentTestFilename = []|[{
|
|
@@ -16389,7 +16582,7 @@ type ZodRequireStrict = []|[{
|
|
|
16389
16582
|
allowPassthrough?: boolean
|
|
16390
16583
|
}]
|
|
16391
16584
|
// Names of all the configs
|
|
16392
|
-
type ConfigNames = 'anolilab/antfu' | 'anolilab/astro/setup' | 'anolilab/astro/rules' | 'anolilab/best-practices/rules' | 'anolilab/best-practices/ts-rules' | 'compat/flat/recommended' | 'anolilab/errors/rules' | 'anolilab/errors/ts-rules' | 'anolilab/html/setup' | 'anolilab/no-secrets' | 'anolilab/no-unsanitized/setup' | 'anolilab/promise/rules' | 'anolilab/simple-import-sort' | 'anolilab/sonarjs/plugin' | 'anolilab/sonarjs/rules' | 'anolilab/sonarjs/js-and-ts-rules' | 'anolilab/sonarjs/js-rules' | 'storybook:recommended:setup' | 'storybook:recommended:stories-rules' | 'storybook:recommended:main-rules' | 'tailwindcss:base' | 'tailwindcss:rules' | 'anolilab/validate-jsx-nesting/setup' | 'anolilab/variables/rules' | 'anolilab/variables/ts-rules' | 'anolilab/style/rules' | 'anolilab/style/ts-rules' | 'anolilab/eslint-comments/rules' | 'anolilab/formatter/setup' | 'anolilab/imports/setup' | 'anolilab/imports/rules' | 'anolilab/imports/d.ts-rules' | 'anolilab/javascript/setup' | 'anolilab/jsx-a11y/setup' | 'anolilab/jsdoc/setup' | 'anolilab/jsdoc/js-rules' | 'anolilab/jsonc/json5-rules' | 'anolilab/jsonc/jsonc-rules' | 'anolilab/jsonc/json-rules' | 'anolilab/jsonc/package.json-rules' | 'anolilab/jsonc/tsconfig-json' | 'anolilab/markdown/setup' | 'anolilab/markdown/processor' | 'anolilab/markdown/parser' | 'anolilab/markdown/
|
|
16585
|
+
type ConfigNames = 'anolilab/antfu' | 'anolilab/astro/setup' | 'anolilab/astro/rules' | 'anolilab/best-practices/rules' | 'anolilab/best-practices/ts-rules' | 'compat/flat/recommended' | 'anolilab/errors/rules' | 'anolilab/errors/ts-rules' | 'anolilab/html/setup' | 'anolilab/no-secrets' | 'anolilab/no-unsanitized/setup' | 'anolilab/promise/rules' | 'anolilab/simple-import-sort' | 'anolilab/sonarjs/plugin' | 'anolilab/sonarjs/rules' | 'anolilab/sonarjs/js-and-ts-rules' | 'anolilab/sonarjs/js-rules' | 'storybook:recommended:setup' | 'storybook:recommended:stories-rules' | 'storybook:recommended:main-rules' | 'tailwindcss:base' | 'tailwindcss:rules' | 'anolilab/validate-jsx-nesting/setup' | 'anolilab/variables/rules' | 'anolilab/variables/ts-rules' | 'anolilab/style/rules' | 'anolilab/style/ts-rules' | 'anolilab/eslint-comments/rules' | 'anolilab/formatter/setup' | 'anolilab/imports/setup' | 'anolilab/imports/rules' | 'anolilab/imports/d.ts-rules' | 'anolilab/javascript/setup' | 'anolilab/jsx-a11y/setup' | 'anolilab/jsdoc/setup' | 'anolilab/jsdoc/js-rules' | 'anolilab/jsonc/json5-rules' | 'anolilab/jsonc/jsonc-rules' | 'anolilab/jsonc/json-rules' | 'anolilab/jsonc/package.json-rules' | 'anolilab/jsonc/tsconfig-json' | 'anolilab/markdown/setup' | 'anolilab/markdown/processor' | 'anolilab/markdown/parser' | 'anolilab/markdown/disabled' | 'anolilab/perfectionist/setup' | 'anolilab/perfectionist/rules' | 'anolilab/perfectionist/typescript' | 'anolilab/perfectionist/postcss' | 'anolilab/react/setup' | 'anolilab/react/rules' | 'anolilab/react/jsx' | 'anolilab/react/tsx' | 'anolilab/react/storybook' | 'anolilab/node/setup' | 'anolilab/node/rules' | 'anolilab/stylistic/rules' | 'anolilab/vitest/setup' | 'anolilab/vitest/rules' | 'anolilab/toml' | 'anolilab/regexp/rules' | 'anolilab/typescript/setup' | 'anolilab/typescript/parser' | 'typescript-eslint/base' | 'typescript-eslint/eslint-recommended' | 'typescript-eslint/strict' | 'anolilab/typescript/rules' | 'anolilab/unicorn/plugin' | 'anolilab/unicorn/rules' | 'anolilab/unicorn/tsconfig-overrides' | 'anolilab/unicorn/ts-overrides' | 'anolilab/unocss' | 'anolilab/yaml' | 'anolilab/yaml/pnpm-workspace'
|
|
16393
16586
|
|
|
16394
16587
|
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
|
16395
16588
|
interface VendoredPrettierOptionsRequired {
|
|
@@ -16543,7 +16736,7 @@ interface OptionsSilentConsoleLogs {
|
|
|
16543
16736
|
interface OptionsStylistic {
|
|
16544
16737
|
stylistic?: StylisticConfig | boolean;
|
|
16545
16738
|
}
|
|
16546
|
-
type OptionsTypescript =
|
|
16739
|
+
type OptionsTypescript = OptionsOverrides & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes;
|
|
16547
16740
|
interface OptionsTypeScriptParserOptions {
|
|
16548
16741
|
filesTypeAware?: string[];
|
|
16549
16742
|
ignoresTypeAware?: string[];
|
|
@@ -16561,11 +16754,11 @@ interface OptionsUnoCSS extends OptionsOverrides {
|
|
|
16561
16754
|
attributify?: boolean;
|
|
16562
16755
|
strict?: boolean;
|
|
16563
16756
|
}
|
|
16564
|
-
|
|
16565
|
-
}
|
|
16757
|
+
type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
|
|
16566
16758
|
type StylisticConfig = Pick<StylisticCustomizeOptions, "indent" | "jsx" | "quotes" | "semi">;
|
|
16567
|
-
type TypedFlatConfigItem = Omit<Linter.Config
|
|
16759
|
+
type TypedFlatConfigItem = Omit<Linter.Config, "plugins" | "rules"> & {
|
|
16568
16760
|
plugins?: Record<string, any>;
|
|
16761
|
+
rules?: Rules;
|
|
16569
16762
|
};
|
|
16570
16763
|
|
|
16571
16764
|
type FileType = "all" | "astro_ts" | "astro" | "css" | "e2e" | "graphql" | "html" | "js_and_ts" | "js" | "jsx" | "jsx_and_tsx" | "less" | "markdown_in_markdown" | "markdown_inline_js_jsx" | "markdown" | "postcss" | "scss" | "storybook" | "svg" | "toml" | "ts" | "types" | "vitest" | "xml" | "yaml";
|