@rhapsodic/eslint-config 1.0.2 → 1.0.3
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.mts +797 -1279
- package/dist/index.mjs +7 -7
- package/package.json +24 -24
package/dist/index.d.mts
CHANGED
|
@@ -1625,7 +1625,7 @@ interface RuleOptions {
|
|
|
1625
1625
|
*/
|
|
1626
1626
|
'quotes'?: Linter.RuleEntry<Quotes>;
|
|
1627
1627
|
/**
|
|
1628
|
-
* Enforce the
|
|
1628
|
+
* Enforce the use of the radix argument when using `parseInt()`
|
|
1629
1629
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
1630
1630
|
*/
|
|
1631
1631
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
@@ -1799,6 +1799,11 @@ interface RuleOptions {
|
|
|
1799
1799
|
* @see https://eslint.style/rules/eol-last
|
|
1800
1800
|
*/
|
|
1801
1801
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
1802
|
+
/**
|
|
1803
|
+
* Enforce consistent line break styles for JSX props
|
|
1804
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
1805
|
+
*/
|
|
1806
|
+
'style/exp-jsx-props-style'?: Linter.RuleEntry<StyleExpJsxPropsStyle>;
|
|
1802
1807
|
/**
|
|
1803
1808
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
1804
1809
|
* @see https://eslint.style/rules/list-style
|
|
@@ -1934,6 +1939,7 @@ interface RuleOptions {
|
|
|
1934
1939
|
/**
|
|
1935
1940
|
* Enforce props alphabetical sorting
|
|
1936
1941
|
* @see https://eslint.style/rules/jsx-sort-props
|
|
1942
|
+
* @deprecated
|
|
1937
1943
|
*/
|
|
1938
1944
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>;
|
|
1939
1945
|
/**
|
|
@@ -2677,6 +2683,11 @@ interface RuleOptions {
|
|
|
2677
2683
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
2678
2684
|
*/
|
|
2679
2685
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>;
|
|
2686
|
+
/**
|
|
2687
|
+
* Disallow unused private class members
|
|
2688
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
2689
|
+
*/
|
|
2690
|
+
'ts/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
2680
2691
|
/**
|
|
2681
2692
|
* Disallow unused variables
|
|
2682
2693
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -2692,6 +2703,11 @@ interface RuleOptions {
|
|
|
2692
2703
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
2693
2704
|
*/
|
|
2694
2705
|
'ts/no-useless-constructor'?: Linter.RuleEntry<[]>;
|
|
2706
|
+
/**
|
|
2707
|
+
* Disallow default values that will never be used
|
|
2708
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
2709
|
+
*/
|
|
2710
|
+
'ts/no-useless-default-assignment'?: Linter.RuleEntry<TsNoUselessDefaultAssignment>;
|
|
2695
2711
|
/**
|
|
2696
2712
|
* Disallow empty exports that don't change anything in a module file
|
|
2697
2713
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -2865,6 +2881,11 @@ interface RuleOptions {
|
|
|
2865
2881
|
* @see https://typescript-eslint.io/rules/strict-boolean-expressions
|
|
2866
2882
|
*/
|
|
2867
2883
|
'ts/strict-boolean-expressions'?: Linter.RuleEntry<TsStrictBooleanExpressions>;
|
|
2884
|
+
/**
|
|
2885
|
+
* Disallow passing a value-returning function in a position accepting a void function
|
|
2886
|
+
* @see https://typescript-eslint.io/rules/strict-void-return
|
|
2887
|
+
*/
|
|
2888
|
+
'ts/strict-void-return'?: Linter.RuleEntry<TsStrictVoidReturn>;
|
|
2868
2889
|
/**
|
|
2869
2890
|
* Require switch-case statements to be exhaustive
|
|
2870
2891
|
* @see https://typescript-eslint.io/rules/switch-exhaustiveness-check
|
|
@@ -2903,725 +2924,730 @@ interface RuleOptions {
|
|
|
2903
2924
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
2904
2925
|
/**
|
|
2905
2926
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
2906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
|
|
2907
2928
|
*/
|
|
2908
2929
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
2909
2930
|
/**
|
|
2910
2931
|
* Enforce a specific parameter name in catch clauses.
|
|
2911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
|
|
2912
2933
|
*/
|
|
2913
2934
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
2914
2935
|
/**
|
|
2915
2936
|
* Enforce consistent assertion style with `node:assert`.
|
|
2916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
|
|
2917
2938
|
*/
|
|
2918
2939
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
2919
2940
|
/**
|
|
2920
2941
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
2921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
|
|
2922
2943
|
*/
|
|
2923
2944
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
2924
2945
|
/**
|
|
2925
2946
|
* Use destructured variables over properties.
|
|
2926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
|
|
2927
2948
|
*/
|
|
2928
2949
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
2929
2950
|
/**
|
|
2930
2951
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
2931
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
|
|
2932
2953
|
*/
|
|
2933
2954
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
2934
2955
|
/**
|
|
2935
2956
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
2936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
|
|
2937
2958
|
*/
|
|
2938
2959
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
2939
2960
|
/**
|
|
2940
2961
|
* Move function definitions to the highest possible scope.
|
|
2941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
|
|
2942
2963
|
*/
|
|
2943
2964
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
2944
2965
|
/**
|
|
2945
2966
|
* Enforce correct `Error` subclassing.
|
|
2946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
|
|
2947
2968
|
*/
|
|
2948
2969
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
2949
2970
|
/**
|
|
2950
2971
|
* Enforce no spaces between braces.
|
|
2951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
|
|
2952
2973
|
*/
|
|
2953
2974
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
2954
2975
|
/**
|
|
2955
2976
|
* Enforce passing a `message` value when creating a built-in error.
|
|
2956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
|
|
2957
2978
|
*/
|
|
2958
2979
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
2959
2980
|
/**
|
|
2960
2981
|
* Require escape sequences to use uppercase or lowercase values.
|
|
2961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
|
|
2962
2983
|
*/
|
|
2963
2984
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
2964
2985
|
/**
|
|
2965
2986
|
* Add expiration conditions to TODO comments.
|
|
2966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
|
|
2967
2988
|
*/
|
|
2968
2989
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
2969
2990
|
/**
|
|
2970
2991
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
2971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
|
|
2972
2993
|
*/
|
|
2973
2994
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
2974
2995
|
/**
|
|
2975
2996
|
* Enforce a case style for filenames.
|
|
2976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
2997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
|
|
2977
2998
|
*/
|
|
2978
2999
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
2979
3000
|
/**
|
|
2980
3001
|
* Enforce specific import styles per module.
|
|
2981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
|
|
2982
3003
|
*/
|
|
2983
3004
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
3005
|
+
/**
|
|
3006
|
+
* Prevent usage of variables from outside the scope of isolated functions.
|
|
3007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
|
|
3008
|
+
*/
|
|
3009
|
+
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
2984
3010
|
/**
|
|
2985
3011
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
2986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
|
|
2987
3013
|
*/
|
|
2988
3014
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
2989
3015
|
/**
|
|
2990
3016
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
2991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
2992
3018
|
*/
|
|
2993
3019
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
2994
3020
|
/**
|
|
2995
3021
|
* Disallow recursive access to `this` within getters and setters.
|
|
2996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
|
|
2997
3023
|
*/
|
|
2998
3024
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
2999
3025
|
/**
|
|
3000
3026
|
* Disallow anonymous functions and classes as the default export.
|
|
3001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
|
|
3002
3028
|
*/
|
|
3003
3029
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
3004
3030
|
/**
|
|
3005
3031
|
* Prevent passing a function reference directly to iterator methods.
|
|
3006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
|
|
3007
3033
|
*/
|
|
3008
3034
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
3009
3035
|
/**
|
|
3010
3036
|
* Prefer `for…of` over the `forEach` method.
|
|
3011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
|
|
3012
3038
|
*/
|
|
3013
3039
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
3014
3040
|
/**
|
|
3015
3041
|
* Disallow using the `this` argument in array methods.
|
|
3016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
|
|
3017
3043
|
*/
|
|
3018
3044
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
3019
3045
|
/**
|
|
3020
3046
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
3021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
3022
3048
|
* @deprecated
|
|
3023
3049
|
*/
|
|
3024
3050
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
3025
3051
|
/**
|
|
3026
3052
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
3027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
|
|
3028
3054
|
*/
|
|
3029
3055
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
3030
3056
|
/**
|
|
3031
3057
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
3032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
|
|
3033
3059
|
*/
|
|
3034
3060
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
3035
3061
|
/**
|
|
3036
3062
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
3037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
|
|
3038
3064
|
*/
|
|
3039
3065
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
3040
3066
|
/**
|
|
3041
3067
|
* Disallow member access from await expression.
|
|
3042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
|
|
3043
3069
|
*/
|
|
3044
3070
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
3045
3071
|
/**
|
|
3046
3072
|
* Disallow using `await` in `Promise` method parameters.
|
|
3047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
|
|
3048
3074
|
*/
|
|
3049
3075
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
3050
3076
|
/**
|
|
3051
3077
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
3052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
|
|
3053
3079
|
*/
|
|
3054
3080
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
3055
3081
|
/**
|
|
3056
3082
|
* Do not use `document.cookie` directly.
|
|
3057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
|
|
3058
3084
|
*/
|
|
3059
3085
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
3060
3086
|
/**
|
|
3061
3087
|
* Disallow empty files.
|
|
3062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
|
|
3063
3089
|
*/
|
|
3064
3090
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
3065
3091
|
/**
|
|
3066
3092
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
3067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
|
|
3068
3094
|
*/
|
|
3069
3095
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
3070
3096
|
/**
|
|
3071
3097
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
3072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
|
|
3073
3099
|
*/
|
|
3074
3100
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
3075
3101
|
/**
|
|
3076
3102
|
* Disallow immediate mutation after variable assignment.
|
|
3077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
|
|
3078
3104
|
*/
|
|
3079
3105
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
3080
3106
|
/**
|
|
3081
3107
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
3082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
3083
3109
|
* @deprecated
|
|
3084
3110
|
*/
|
|
3085
3111
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
3086
3112
|
/**
|
|
3087
3113
|
* Disallow `instanceof` with built-in objects
|
|
3088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
|
|
3089
3115
|
*/
|
|
3090
3116
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
3091
3117
|
/**
|
|
3092
3118
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
3093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
|
|
3094
3120
|
*/
|
|
3095
3121
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
3096
3122
|
/**
|
|
3097
3123
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
3098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
3099
3125
|
*/
|
|
3100
3126
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
3101
3127
|
/**
|
|
3102
3128
|
* Disallow identifiers starting with `new` or `class`.
|
|
3103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
|
|
3104
3130
|
*/
|
|
3105
3131
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
3106
3132
|
/**
|
|
3107
3133
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
3108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
3109
3135
|
* @deprecated
|
|
3110
3136
|
*/
|
|
3111
3137
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
3112
3138
|
/**
|
|
3113
3139
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
3114
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
|
|
3115
3141
|
*/
|
|
3116
3142
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
3117
3143
|
/**
|
|
3118
3144
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
3119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
3120
3146
|
*/
|
|
3121
3147
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
3122
3148
|
/**
|
|
3123
3149
|
* Disallow named usage of default import and export.
|
|
3124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
|
|
3125
3151
|
*/
|
|
3126
3152
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
3127
3153
|
/**
|
|
3128
3154
|
* Disallow negated conditions.
|
|
3129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
|
|
3130
3156
|
*/
|
|
3131
3157
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
3132
3158
|
/**
|
|
3133
3159
|
* Disallow negated expression in equality check.
|
|
3134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
|
|
3135
3161
|
*/
|
|
3136
3162
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
3137
3163
|
/**
|
|
3138
3164
|
* Disallow nested ternary expressions.
|
|
3139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
|
|
3140
3166
|
*/
|
|
3141
3167
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
3142
3168
|
/**
|
|
3143
3169
|
* Disallow `new Array()`.
|
|
3144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
|
|
3145
3171
|
*/
|
|
3146
3172
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
3147
3173
|
/**
|
|
3148
3174
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
3149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
|
|
3150
3176
|
*/
|
|
3151
3177
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
3152
3178
|
/**
|
|
3153
3179
|
* Disallow the use of the `null` literal.
|
|
3154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
|
|
3155
3181
|
*/
|
|
3156
3182
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
3157
3183
|
/**
|
|
3158
3184
|
* Disallow the use of objects as default parameters.
|
|
3159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
|
|
3160
3186
|
*/
|
|
3161
3187
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
3162
3188
|
/**
|
|
3163
3189
|
* Disallow `process.exit()`.
|
|
3164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
|
|
3165
3191
|
*/
|
|
3166
3192
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
3167
3193
|
/**
|
|
3168
3194
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
3169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
3170
3196
|
*/
|
|
3171
3197
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
3172
3198
|
/**
|
|
3173
3199
|
* Disallow classes that only have static members.
|
|
3174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
|
|
3175
3201
|
*/
|
|
3176
3202
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
3177
3203
|
/**
|
|
3178
3204
|
* Disallow `then` property.
|
|
3179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
|
|
3180
3206
|
*/
|
|
3181
3207
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
3182
3208
|
/**
|
|
3183
3209
|
* Disallow assigning `this` to a variable.
|
|
3184
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
|
|
3185
3211
|
*/
|
|
3186
3212
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
3187
3213
|
/**
|
|
3188
3214
|
* Disallow comparing `undefined` using `typeof`.
|
|
3189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
|
|
3190
3216
|
*/
|
|
3191
3217
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
3192
3218
|
/**
|
|
3193
3219
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
3194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
3195
3221
|
*/
|
|
3196
3222
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
3197
3223
|
/**
|
|
3198
3224
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
3199
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
3200
3226
|
*/
|
|
3201
3227
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
3202
3228
|
/**
|
|
3203
3229
|
* Disallow awaiting non-promise values.
|
|
3204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
|
|
3205
3231
|
*/
|
|
3206
3232
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
3207
3233
|
/**
|
|
3208
3234
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
3209
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
3210
3236
|
*/
|
|
3211
3237
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
3212
3238
|
/**
|
|
3213
3239
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
3214
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
3215
3241
|
*/
|
|
3216
3242
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
3217
3243
|
/**
|
|
3218
3244
|
* Disallow unreadable array destructuring.
|
|
3219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
3220
3246
|
*/
|
|
3221
3247
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
3222
3248
|
/**
|
|
3223
3249
|
* Disallow unreadable IIFEs.
|
|
3224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3250
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
|
|
3225
3251
|
*/
|
|
3226
3252
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
3227
3253
|
/**
|
|
3228
3254
|
* Disallow unused object properties.
|
|
3229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
|
|
3230
3256
|
*/
|
|
3231
3257
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
3232
3258
|
/**
|
|
3233
3259
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
3234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
|
|
3235
3261
|
*/
|
|
3236
3262
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
3237
3263
|
/**
|
|
3238
3264
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
3239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
3240
3266
|
*/
|
|
3241
3267
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
3242
3268
|
/**
|
|
3243
3269
|
* Disallow useless fallback when spreading in object literals.
|
|
3244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
3245
3271
|
*/
|
|
3246
3272
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
3247
3273
|
/**
|
|
3248
3274
|
* Disallow useless array length check.
|
|
3249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
|
|
3250
3276
|
*/
|
|
3251
3277
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
3252
3278
|
/**
|
|
3253
3279
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
3254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
3255
3281
|
*/
|
|
3256
3282
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
3257
3283
|
/**
|
|
3258
3284
|
* Disallow unnecessary spread.
|
|
3259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
|
|
3260
3286
|
*/
|
|
3261
3287
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
3262
3288
|
/**
|
|
3263
3289
|
* Disallow useless case in switch statements.
|
|
3264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
|
|
3265
3291
|
*/
|
|
3266
3292
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
3267
3293
|
/**
|
|
3268
3294
|
* Disallow useless `undefined`.
|
|
3269
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
|
|
3270
3296
|
*/
|
|
3271
3297
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
3272
3298
|
/**
|
|
3273
3299
|
* Disallow number literals with zero fractions or dangling dots.
|
|
3274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
|
|
3275
3301
|
*/
|
|
3276
3302
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
3277
3303
|
/**
|
|
3278
3304
|
* Enforce proper case for numeric literals.
|
|
3279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
|
|
3280
3306
|
*/
|
|
3281
3307
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
3282
3308
|
/**
|
|
3283
3309
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
3284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
|
|
3285
3311
|
*/
|
|
3286
3312
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
3287
3313
|
/**
|
|
3288
3314
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
3289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
|
|
3290
3316
|
*/
|
|
3291
3317
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
3292
3318
|
/**
|
|
3293
3319
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
3294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
|
|
3295
3321
|
*/
|
|
3296
3322
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
3297
3323
|
/**
|
|
3298
3324
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
3299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
|
|
3300
3326
|
*/
|
|
3301
3327
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
3302
3328
|
/**
|
|
3303
3329
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
3304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
|
|
3305
3331
|
*/
|
|
3306
3332
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
3307
3333
|
/**
|
|
3308
3334
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
3309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
|
|
3310
3336
|
*/
|
|
3311
3337
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
3312
3338
|
/**
|
|
3313
3339
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
3314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
|
|
3315
3341
|
*/
|
|
3316
3342
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
3317
3343
|
/**
|
|
3318
3344
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
3319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
|
|
3320
3346
|
*/
|
|
3321
3347
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
3322
3348
|
/**
|
|
3323
3349
|
* Prefer `BigInt` literals over the constructor.
|
|
3324
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
|
|
3325
3351
|
*/
|
|
3326
3352
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
3327
3353
|
/**
|
|
3328
3354
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
3329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
3330
3356
|
*/
|
|
3331
3357
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
3332
3358
|
/**
|
|
3333
3359
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
3334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
|
|
3335
3361
|
*/
|
|
3336
3362
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
3337
3363
|
/**
|
|
3338
3364
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
3339
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
|
|
3340
3366
|
*/
|
|
3341
3367
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
3342
3368
|
/**
|
|
3343
3369
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
3344
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
|
|
3345
3371
|
*/
|
|
3346
3372
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
3347
3373
|
/**
|
|
3348
3374
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
3349
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
|
|
3350
3376
|
*/
|
|
3351
3377
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
3352
3378
|
/**
|
|
3353
3379
|
* Prefer default parameters over reassignment.
|
|
3354
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
|
|
3355
3381
|
*/
|
|
3356
3382
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
3357
3383
|
/**
|
|
3358
3384
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
3359
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
|
|
3360
3386
|
*/
|
|
3361
3387
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
3362
3388
|
/**
|
|
3363
3389
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
3364
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
3365
3391
|
*/
|
|
3366
3392
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
3367
3393
|
/**
|
|
3368
3394
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
3369
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
|
|
3370
3396
|
*/
|
|
3371
3397
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
3372
3398
|
/**
|
|
3373
3399
|
* Prefer `.textContent` over `.innerText`.
|
|
3374
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
3375
3401
|
*/
|
|
3376
3402
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
3377
3403
|
/**
|
|
3378
3404
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
3379
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
|
|
3380
3406
|
*/
|
|
3381
3407
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
3382
3408
|
/**
|
|
3383
3409
|
* Prefer `export…from` when re-exporting.
|
|
3384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
|
|
3385
3411
|
*/
|
|
3386
3412
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
3387
3413
|
/**
|
|
3388
3414
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
3389
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
|
|
3390
3416
|
*/
|
|
3391
3417
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
3392
3418
|
/**
|
|
3393
3419
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
3394
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
|
|
3395
3421
|
*/
|
|
3396
3422
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
3397
3423
|
/**
|
|
3398
3424
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
3399
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
|
|
3400
3426
|
*/
|
|
3401
3427
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
3402
3428
|
/**
|
|
3403
3429
|
* Prefer reading a JSON file as a buffer.
|
|
3404
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
3405
3431
|
*/
|
|
3406
3432
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
3407
3433
|
/**
|
|
3408
3434
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
3409
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3435
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
3410
3436
|
*/
|
|
3411
3437
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
3412
3438
|
/**
|
|
3413
3439
|
* Prefer using a logical operator over a ternary.
|
|
3414
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
3415
3441
|
*/
|
|
3416
3442
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
3417
3443
|
/**
|
|
3418
3444
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
3419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
|
|
3420
3446
|
*/
|
|
3421
3447
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
3422
3448
|
/**
|
|
3423
3449
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
3424
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
|
|
3425
3451
|
*/
|
|
3426
3452
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
3427
3453
|
/**
|
|
3428
3454
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
3429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
3430
3456
|
*/
|
|
3431
3457
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
3432
3458
|
/**
|
|
3433
3459
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
3434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
|
|
3435
3461
|
*/
|
|
3436
3462
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
3437
3463
|
/**
|
|
3438
3464
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
3439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
|
|
3440
3466
|
*/
|
|
3441
3467
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
3442
3468
|
/**
|
|
3443
3469
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
3444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
3445
3471
|
*/
|
|
3446
3472
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
3447
3473
|
/**
|
|
3448
3474
|
* Prefer negative index over `.length - index` when possible.
|
|
3449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
|
|
3450
3476
|
*/
|
|
3451
3477
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
3452
3478
|
/**
|
|
3453
3479
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
3454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
|
|
3455
3481
|
*/
|
|
3456
3482
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
3457
3483
|
/**
|
|
3458
3484
|
* Prefer `Number` static properties over global ones.
|
|
3459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
|
|
3460
3486
|
*/
|
|
3461
3487
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
3462
3488
|
/**
|
|
3463
3489
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
3464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
|
|
3465
3491
|
*/
|
|
3466
3492
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
3467
3493
|
/**
|
|
3468
3494
|
* Prefer omitting the `catch` binding parameter.
|
|
3469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
3470
3496
|
*/
|
|
3471
3497
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
3472
3498
|
/**
|
|
3473
3499
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
3474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
|
|
3475
3501
|
*/
|
|
3476
3502
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
3477
3503
|
/**
|
|
3478
3504
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
3479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
|
|
3480
3506
|
*/
|
|
3481
3507
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
3482
3508
|
/**
|
|
3483
3509
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
3484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
|
|
3485
3511
|
*/
|
|
3486
3512
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
3487
3513
|
/**
|
|
3488
3514
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
3489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
|
|
3490
3516
|
*/
|
|
3491
3517
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
3492
3518
|
/**
|
|
3493
3519
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
3494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
|
|
3495
3521
|
*/
|
|
3496
3522
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
3497
3523
|
/**
|
|
3498
3524
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
3499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
|
|
3500
3526
|
*/
|
|
3501
3527
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
3502
3528
|
/**
|
|
3503
3529
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
3504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
|
|
3505
3531
|
*/
|
|
3506
3532
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
3507
3533
|
/**
|
|
3508
3534
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
3509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
|
|
3510
3536
|
*/
|
|
3511
3537
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
3512
3538
|
/**
|
|
3513
3539
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
3514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
|
|
3515
3541
|
*/
|
|
3516
3542
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
3517
3543
|
/**
|
|
3518
3544
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
3519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
|
|
3520
3546
|
*/
|
|
3521
3547
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
3522
3548
|
/**
|
|
3523
3549
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
3524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
|
|
3525
3551
|
*/
|
|
3526
3552
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
3527
3553
|
/**
|
|
3528
3554
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
3529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
|
|
3530
3556
|
*/
|
|
3531
3557
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
3532
3558
|
/**
|
|
3533
3559
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
3534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
3535
3561
|
*/
|
|
3536
3562
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
3537
3563
|
/**
|
|
3538
3564
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
3539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
3540
3566
|
*/
|
|
3541
3567
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
3542
3568
|
/**
|
|
3543
3569
|
* Prefer using `structuredClone` to create a deep clone.
|
|
3544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
|
|
3545
3571
|
*/
|
|
3546
3572
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
3547
3573
|
/**
|
|
3548
3574
|
* Prefer `switch` over multiple `else-if`.
|
|
3549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
|
|
3550
3576
|
*/
|
|
3551
3577
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
3552
3578
|
/**
|
|
3553
3579
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
3554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
|
|
3555
3581
|
*/
|
|
3556
3582
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
3557
3583
|
/**
|
|
3558
3584
|
* Prefer top-level await over top-level promises and async function calls.
|
|
3559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
|
|
3560
3586
|
*/
|
|
3561
3587
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
3562
3588
|
/**
|
|
3563
3589
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
3564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
|
|
3565
3591
|
*/
|
|
3566
3592
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
3567
3593
|
/**
|
|
3568
3594
|
* Prevent abbreviations.
|
|
3569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
|
|
3570
3596
|
*/
|
|
3571
3597
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
3572
3598
|
/**
|
|
3573
3599
|
* Enforce consistent relative URL style.
|
|
3574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
|
|
3575
3601
|
*/
|
|
3576
3602
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
3577
3603
|
/**
|
|
3578
3604
|
* Enforce using the separator argument with `Array#join()`.
|
|
3579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
|
|
3580
3606
|
*/
|
|
3581
3607
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
3582
3608
|
/**
|
|
3583
3609
|
* Require non-empty module attributes for imports and exports
|
|
3584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
|
|
3585
3611
|
*/
|
|
3586
3612
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
3587
3613
|
/**
|
|
3588
3614
|
* Require non-empty specifier list in import and export statements.
|
|
3589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
|
|
3590
3616
|
*/
|
|
3591
3617
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
3592
3618
|
/**
|
|
3593
3619
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
3594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
3595
3621
|
*/
|
|
3596
3622
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
3597
3623
|
/**
|
|
3598
3624
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
3599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
|
|
3600
3626
|
*/
|
|
3601
3627
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
3602
3628
|
/**
|
|
3603
3629
|
* Enforce better string content.
|
|
3604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3630
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
|
|
3605
3631
|
*/
|
|
3606
3632
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
3607
3633
|
/**
|
|
3608
3634
|
* Enforce consistent brace style for `case` clauses.
|
|
3609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
|
|
3610
3636
|
*/
|
|
3611
3637
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
3612
3638
|
/**
|
|
3613
3639
|
* Fix whitespace-insensitive template indentation.
|
|
3614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
|
|
3615
3641
|
*/
|
|
3616
3642
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
3617
3643
|
/**
|
|
3618
3644
|
* Enforce consistent case for text encoding identifiers.
|
|
3619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
|
|
3620
3646
|
*/
|
|
3621
3647
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
3622
3648
|
/**
|
|
3623
3649
|
* Require `new` when creating an error.
|
|
3624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
3650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
|
|
3625
3651
|
*/
|
|
3626
3652
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
3627
3653
|
/**
|
|
@@ -4187,6 +4213,11 @@ interface RuleOptions {
|
|
|
4187
4213
|
* @see https://eslint.vuejs.org/rules/no-duplicate-attributes.html
|
|
4188
4214
|
*/
|
|
4189
4215
|
'vue/no-duplicate-attributes'?: Linter.RuleEntry<VueNoDuplicateAttributes>;
|
|
4216
|
+
/**
|
|
4217
|
+
* disallow duplication of class names in class attributes
|
|
4218
|
+
* @see https://eslint.vuejs.org/rules/no-duplicate-class-names.html
|
|
4219
|
+
*/
|
|
4220
|
+
'vue/no-duplicate-class-names'?: Linter.RuleEntry<[]>;
|
|
4190
4221
|
/**
|
|
4191
4222
|
* disallow the `<template>` `<script>` `<style>` block to be empty
|
|
4192
4223
|
* @see https://eslint.vuejs.org/rules/no-empty-component-block.html
|
|
@@ -4232,6 +4263,11 @@ interface RuleOptions {
|
|
|
4232
4263
|
* @see https://eslint.vuejs.org/rules/no-lifecycle-after-await.html
|
|
4233
4264
|
*/
|
|
4234
4265
|
'vue/no-lifecycle-after-await'?: Linter.RuleEntry<[]>;
|
|
4266
|
+
/**
|
|
4267
|
+
* disallow object, array, and function literals in template
|
|
4268
|
+
* @see https://eslint.vuejs.org/rules/no-literals-in-template.html
|
|
4269
|
+
*/
|
|
4270
|
+
'vue/no-literals-in-template'?: Linter.RuleEntry<[]>;
|
|
4235
4271
|
/**
|
|
4236
4272
|
* disallow unnecessary `<template>`
|
|
4237
4273
|
* @see https://eslint.vuejs.org/rules/no-lone-template.html
|
|
@@ -4442,6 +4478,11 @@ interface RuleOptions {
|
|
|
4442
4478
|
* @see https://eslint.vuejs.org/rules/no-undef-components.html
|
|
4443
4479
|
*/
|
|
4444
4480
|
'vue/no-undef-components'?: Linter.RuleEntry<VueNoUndefComponents>;
|
|
4481
|
+
/**
|
|
4482
|
+
* disallow use of undefined custom directives
|
|
4483
|
+
* @see https://eslint.vuejs.org/rules/no-undef-directives.html
|
|
4484
|
+
*/
|
|
4485
|
+
'vue/no-undef-directives'?: Linter.RuleEntry<VueNoUndefDirectives>;
|
|
4445
4486
|
/**
|
|
4446
4487
|
* disallow undefined properties
|
|
4447
4488
|
* @see https://eslint.vuejs.org/rules/no-undef-properties.html
|
|
@@ -4915,7 +4956,7 @@ interface RuleOptions {
|
|
|
4915
4956
|
* enforce valid `v-for` directives
|
|
4916
4957
|
* @see https://eslint.vuejs.org/rules/valid-v-for.html
|
|
4917
4958
|
*/
|
|
4918
|
-
'vue/valid-v-for'?: Linter.RuleEntry<
|
|
4959
|
+
'vue/valid-v-for'?: Linter.RuleEntry<VueValidVFor>;
|
|
4919
4960
|
/**
|
|
4920
4961
|
* enforce valid `v-html` directives
|
|
4921
4962
|
* @see https://eslint.vuejs.org/rules/valid-v-html.html
|
|
@@ -5002,25 +5043,21 @@ type AccessorPairs = [] | [{
|
|
|
5002
5043
|
setWithoutGet?: boolean;
|
|
5003
5044
|
enforceForClassMembers?: boolean;
|
|
5004
5045
|
enforceForTSTypes?: boolean;
|
|
5005
|
-
}];
|
|
5006
|
-
// ----- array-bracket-newline -----
|
|
5046
|
+
}]; // ----- array-bracket-newline -----
|
|
5007
5047
|
type ArrayBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
5008
5048
|
multiline?: boolean;
|
|
5009
5049
|
minItems?: (number | null);
|
|
5010
|
-
})];
|
|
5011
|
-
// ----- array-bracket-spacing -----
|
|
5050
|
+
})]; // ----- array-bracket-spacing -----
|
|
5012
5051
|
type ArrayBracketSpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
5013
5052
|
singleValue?: boolean;
|
|
5014
5053
|
objectsInArrays?: boolean;
|
|
5015
5054
|
arraysInArrays?: boolean;
|
|
5016
|
-
}];
|
|
5017
|
-
// ----- array-callback-return -----
|
|
5055
|
+
}]; // ----- array-callback-return -----
|
|
5018
5056
|
type ArrayCallbackReturn = [] | [{
|
|
5019
5057
|
allowImplicit?: boolean;
|
|
5020
5058
|
checkForEach?: boolean;
|
|
5021
5059
|
allowVoid?: boolean;
|
|
5022
|
-
}];
|
|
5023
|
-
// ----- array-element-newline -----
|
|
5060
|
+
}]; // ----- array-element-newline -----
|
|
5024
5061
|
type ArrayElementNewline = [] | [(_ArrayElementNewlineBasicConfig | {
|
|
5025
5062
|
ArrayExpression?: _ArrayElementNewlineBasicConfig;
|
|
5026
5063
|
ArrayPattern?: _ArrayElementNewlineBasicConfig;
|
|
@@ -5028,37 +5065,29 @@ type ArrayElementNewline = [] | [(_ArrayElementNewlineBasicConfig | {
|
|
|
5028
5065
|
type _ArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
5029
5066
|
multiline?: boolean;
|
|
5030
5067
|
minItems?: (number | null);
|
|
5031
|
-
});
|
|
5032
|
-
// ----- arrow-body-style -----
|
|
5068
|
+
}); // ----- arrow-body-style -----
|
|
5033
5069
|
type ArrowBodyStyle = ([] | [("always" | "never")] | [] | ["as-needed"] | ["as-needed", {
|
|
5034
5070
|
requireReturnForObjectLiteral?: boolean;
|
|
5035
|
-
}]);
|
|
5036
|
-
// ----- arrow-parens -----
|
|
5071
|
+
}]); // ----- arrow-parens -----
|
|
5037
5072
|
type ArrowParens = [] | [("always" | "as-needed")] | [("always" | "as-needed"), {
|
|
5038
5073
|
requireForBlockBody?: boolean;
|
|
5039
|
-
}];
|
|
5040
|
-
// ----- arrow-spacing -----
|
|
5074
|
+
}]; // ----- arrow-spacing -----
|
|
5041
5075
|
type ArrowSpacing = [] | [{
|
|
5042
5076
|
before?: boolean;
|
|
5043
5077
|
after?: boolean;
|
|
5044
|
-
}];
|
|
5045
|
-
// -----
|
|
5046
|
-
type BlockSpacing = [] | [("always" | "never")];
|
|
5047
|
-
// ----- brace-style -----
|
|
5078
|
+
}]; // ----- block-spacing -----
|
|
5079
|
+
type BlockSpacing = [] | [("always" | "never")]; // ----- brace-style -----
|
|
5048
5080
|
type BraceStyle = [] | [("1tbs" | "stroustrup" | "allman")] | [("1tbs" | "stroustrup" | "allman"), {
|
|
5049
5081
|
allowSingleLine?: boolean;
|
|
5050
|
-
}];
|
|
5051
|
-
// -----
|
|
5052
|
-
type CallbackReturn = [] | [string[]];
|
|
5053
|
-
// ----- camelcase -----
|
|
5082
|
+
}]; // ----- callback-return -----
|
|
5083
|
+
type CallbackReturn = [] | [string[]]; // ----- camelcase -----
|
|
5054
5084
|
type Camelcase = [] | [{
|
|
5055
5085
|
ignoreDestructuring?: boolean;
|
|
5056
5086
|
ignoreImports?: boolean;
|
|
5057
5087
|
ignoreGlobals?: boolean;
|
|
5058
5088
|
properties?: ("always" | "never");
|
|
5059
5089
|
allow?: string[];
|
|
5060
|
-
}];
|
|
5061
|
-
// ----- capitalized-comments -----
|
|
5090
|
+
}]; // ----- capitalized-comments -----
|
|
5062
5091
|
type CapitalizedComments = [] | [("always" | "never")] | [("always" | "never"), ({
|
|
5063
5092
|
ignorePattern?: string;
|
|
5064
5093
|
ignoreInlineComments?: boolean;
|
|
@@ -5074,15 +5103,13 @@ type CapitalizedComments = [] | [("always" | "never")] | [("always" | "never"),
|
|
|
5074
5103
|
ignoreInlineComments?: boolean;
|
|
5075
5104
|
ignoreConsecutiveComments?: boolean;
|
|
5076
5105
|
};
|
|
5077
|
-
})];
|
|
5078
|
-
// ----- class-methods-use-this -----
|
|
5106
|
+
})]; // ----- class-methods-use-this -----
|
|
5079
5107
|
type ClassMethodsUseThis = [] | [{
|
|
5080
5108
|
exceptMethods?: string[];
|
|
5081
5109
|
enforceForClassFields?: boolean;
|
|
5082
5110
|
ignoreOverrideMethods?: boolean;
|
|
5083
5111
|
ignoreClassesWithImplements?: ("all" | "public-fields");
|
|
5084
|
-
}];
|
|
5085
|
-
// ----- comma-dangle -----
|
|
5112
|
+
}]; // ----- comma-dangle -----
|
|
5086
5113
|
type CommaDangle = [] | [(_CommaDangleValue | {
|
|
5087
5114
|
arrays?: _CommaDangleValueWithIgnore;
|
|
5088
5115
|
objects?: _CommaDangleValueWithIgnore;
|
|
@@ -5091,85 +5118,66 @@ type CommaDangle = [] | [(_CommaDangleValue | {
|
|
|
5091
5118
|
functions?: _CommaDangleValueWithIgnore;
|
|
5092
5119
|
})];
|
|
5093
5120
|
type _CommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline");
|
|
5094
|
-
type _CommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline");
|
|
5095
|
-
// ----- comma-spacing -----
|
|
5121
|
+
type _CommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline"); // ----- comma-spacing -----
|
|
5096
5122
|
type CommaSpacing = [] | [{
|
|
5097
5123
|
before?: boolean;
|
|
5098
5124
|
after?: boolean;
|
|
5099
|
-
}];
|
|
5100
|
-
// ----- comma-style -----
|
|
5125
|
+
}]; // ----- comma-style -----
|
|
5101
5126
|
type CommaStyle = [] | [("first" | "last")] | [("first" | "last"), {
|
|
5102
5127
|
exceptions?: {
|
|
5103
5128
|
[k: string]: boolean | undefined;
|
|
5104
5129
|
};
|
|
5105
|
-
}];
|
|
5106
|
-
// ----- complexity -----
|
|
5130
|
+
}]; // ----- complexity -----
|
|
5107
5131
|
type Complexity = [] | [(number | {
|
|
5108
5132
|
maximum?: number;
|
|
5109
5133
|
max?: number;
|
|
5110
5134
|
variant?: ("classic" | "modified");
|
|
5111
|
-
})];
|
|
5112
|
-
// ----- computed-property-spacing -----
|
|
5135
|
+
})]; // ----- computed-property-spacing -----
|
|
5113
5136
|
type ComputedPropertySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
5114
5137
|
enforceForClassMembers?: boolean;
|
|
5115
|
-
}];
|
|
5116
|
-
// ----- consistent-return -----
|
|
5138
|
+
}]; // ----- consistent-return -----
|
|
5117
5139
|
type ConsistentReturn = [] | [{
|
|
5118
5140
|
treatUndefinedAsUnspecified?: boolean;
|
|
5119
|
-
}];
|
|
5120
|
-
// -----
|
|
5121
|
-
type
|
|
5122
|
-
// ----- curly -----
|
|
5123
|
-
type Curly = ([] | ["all"] | [] | [("multi" | "multi-line" | "multi-or-nest")] | [("multi" | "multi-line" | "multi-or-nest"), "consistent"]);
|
|
5124
|
-
// ----- default-case -----
|
|
5141
|
+
}]; // ----- consistent-this -----
|
|
5142
|
+
type ConsistentThis = string[]; // ----- curly -----
|
|
5143
|
+
type Curly = ([] | ["all"] | [] | [("multi" | "multi-line" | "multi-or-nest")] | [("multi" | "multi-line" | "multi-or-nest"), "consistent"]); // ----- default-case -----
|
|
5125
5144
|
type DefaultCase = [] | [{
|
|
5126
5145
|
commentPattern?: string;
|
|
5127
|
-
}];
|
|
5128
|
-
// ----- dot-
|
|
5129
|
-
type DotLocation = [] | [("object" | "property")];
|
|
5130
|
-
// ----- dot-notation -----
|
|
5146
|
+
}]; // ----- dot-location -----
|
|
5147
|
+
type DotLocation = [] | [("object" | "property")]; // ----- dot-notation -----
|
|
5131
5148
|
type DotNotation = [] | [{
|
|
5132
5149
|
allowKeywords?: boolean;
|
|
5133
5150
|
allowPattern?: string;
|
|
5134
|
-
}];
|
|
5135
|
-
// -----
|
|
5136
|
-
type EolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
5137
|
-
// ----- eqeqeq -----
|
|
5151
|
+
}]; // ----- eol-last -----
|
|
5152
|
+
type EolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- eqeqeq -----
|
|
5138
5153
|
type Eqeqeq = ([] | ["always"] | ["always", {
|
|
5139
5154
|
null?: ("always" | "never" | "ignore");
|
|
5140
|
-
}] | [] | [("smart" | "allow-null")]);
|
|
5141
|
-
// ----- func-call-spacing -----
|
|
5155
|
+
}] | [] | [("smart" | "allow-null")]); // ----- func-call-spacing -----
|
|
5142
5156
|
type FuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
5143
5157
|
allowNewlines?: boolean;
|
|
5144
|
-
}]);
|
|
5145
|
-
// ----- func-name-matching -----
|
|
5158
|
+
}]); // ----- func-name-matching -----
|
|
5146
5159
|
type FuncNameMatching = ([] | [("always" | "never")] | [("always" | "never"), {
|
|
5147
5160
|
considerPropertyDescriptor?: boolean;
|
|
5148
5161
|
includeCommonJSModuleExports?: boolean;
|
|
5149
5162
|
}] | [] | [{
|
|
5150
5163
|
considerPropertyDescriptor?: boolean;
|
|
5151
5164
|
includeCommonJSModuleExports?: boolean;
|
|
5152
|
-
}]);
|
|
5153
|
-
// ----- func-names -----
|
|
5165
|
+
}]); // ----- func-names -----
|
|
5154
5166
|
type FuncNames = [] | [_FuncNamesValue] | [_FuncNamesValue, {
|
|
5155
5167
|
generators?: _FuncNamesValue;
|
|
5156
5168
|
}];
|
|
5157
|
-
type _FuncNamesValue = ("always" | "as-needed" | "never");
|
|
5158
|
-
// ----- func-style -----
|
|
5169
|
+
type _FuncNamesValue = ("always" | "as-needed" | "never"); // ----- func-style -----
|
|
5159
5170
|
type FuncStyle = [] | [("declaration" | "expression")] | [("declaration" | "expression"), {
|
|
5160
5171
|
allowArrowFunctions?: boolean;
|
|
5161
5172
|
allowTypeAnnotation?: boolean;
|
|
5162
5173
|
overrides?: {
|
|
5163
5174
|
namedExports?: ("declaration" | "expression" | "ignore");
|
|
5164
5175
|
};
|
|
5165
|
-
}];
|
|
5166
|
-
// ----- function-
|
|
5167
|
-
type FunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
5168
|
-
// ----- function-paren-newline -----
|
|
5176
|
+
}]; // ----- function-call-argument-newline -----
|
|
5177
|
+
type FunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")]; // ----- function-paren-newline -----
|
|
5169
5178
|
type FunctionParenNewline = [] | [(("always" | "never" | "consistent" | "multiline" | "multiline-arguments") | {
|
|
5170
5179
|
minItems?: number;
|
|
5171
|
-
})];
|
|
5172
|
-
// ----- generator-star-spacing -----
|
|
5180
|
+
})]; // ----- generator-star-spacing -----
|
|
5173
5181
|
type GeneratorStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
5174
5182
|
before?: boolean;
|
|
5175
5183
|
after?: boolean;
|
|
@@ -5185,48 +5193,37 @@ type GeneratorStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
|
5185
5193
|
before?: boolean;
|
|
5186
5194
|
after?: boolean;
|
|
5187
5195
|
});
|
|
5188
|
-
})];
|
|
5189
|
-
// ----- getter-return -----
|
|
5196
|
+
})]; // ----- getter-return -----
|
|
5190
5197
|
type GetterReturn = [] | [{
|
|
5191
5198
|
allowImplicit?: boolean;
|
|
5192
|
-
}];
|
|
5193
|
-
// ----- grouped-accessor-pairs -----
|
|
5199
|
+
}]; // ----- grouped-accessor-pairs -----
|
|
5194
5200
|
type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")] | [("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
|
|
5195
5201
|
enforceForTSTypes?: boolean;
|
|
5196
|
-
}];
|
|
5197
|
-
// -----
|
|
5198
|
-
type
|
|
5199
|
-
// ----- id-
|
|
5200
|
-
type IdBlacklist = string[];
|
|
5201
|
-
// ----- id-denylist -----
|
|
5202
|
-
type IdDenylist = string[];
|
|
5203
|
-
// ----- id-length -----
|
|
5202
|
+
}]; // ----- handle-callback-err -----
|
|
5203
|
+
type HandleCallbackErr = [] | [string]; // ----- id-blacklist -----
|
|
5204
|
+
type IdBlacklist = string[]; // ----- id-denylist -----
|
|
5205
|
+
type IdDenylist = string[]; // ----- id-length -----
|
|
5204
5206
|
type IdLength = [] | [{
|
|
5205
5207
|
min?: number;
|
|
5206
5208
|
max?: number;
|
|
5207
5209
|
exceptions?: string[];
|
|
5208
5210
|
exceptionPatterns?: string[];
|
|
5209
5211
|
properties?: ("always" | "never");
|
|
5210
|
-
}];
|
|
5211
|
-
// ----- id-match -----
|
|
5212
|
+
}]; // ----- id-match -----
|
|
5212
5213
|
type IdMatch = [] | [string] | [string, {
|
|
5213
5214
|
properties?: boolean;
|
|
5214
5215
|
classFields?: boolean;
|
|
5215
5216
|
onlyDeclarations?: boolean;
|
|
5216
5217
|
ignoreDestructuring?: boolean;
|
|
5217
|
-
}];
|
|
5218
|
-
// -----
|
|
5219
|
-
type
|
|
5220
|
-
// ----- import/consistent-type-specifier-style -----
|
|
5221
|
-
type ImportConsistentTypeSpecifierStyle = [] | [("prefer-top-level" | "prefer-inline")];
|
|
5222
|
-
// ----- import/dynamic-import-chunkname -----
|
|
5218
|
+
}]; // ----- implicit-arrow-linebreak -----
|
|
5219
|
+
type ImplicitArrowLinebreak = [] | [("beside" | "below")]; // ----- import/consistent-type-specifier-style -----
|
|
5220
|
+
type ImportConsistentTypeSpecifierStyle = [] | [("prefer-top-level" | "prefer-inline")]; // ----- import/dynamic-import-chunkname -----
|
|
5223
5221
|
type ImportDynamicImportChunkname = [] | [{
|
|
5224
5222
|
importFunctions?: string[];
|
|
5225
5223
|
allowEmpty?: boolean;
|
|
5226
5224
|
webpackChunknameFormat?: string;
|
|
5227
5225
|
[k: string]: unknown | undefined;
|
|
5228
|
-
}];
|
|
5229
|
-
// ----- import/extensions -----
|
|
5226
|
+
}]; // ----- import/extensions -----
|
|
5230
5227
|
type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
5231
5228
|
pattern?: {
|
|
5232
5229
|
[k: string]: ("always" | "ignorePackages" | "never");
|
|
@@ -5261,38 +5258,30 @@ type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [
|
|
|
5261
5258
|
[k: string]: ("always" | "ignorePackages" | "never");
|
|
5262
5259
|
}] | [] | [{
|
|
5263
5260
|
[k: string]: ("always" | "ignorePackages" | "never");
|
|
5264
|
-
}]);
|
|
5265
|
-
// ----- import/first -----
|
|
5266
|
-
type
|
|
5267
|
-
// ----- import/imports-first -----
|
|
5268
|
-
type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
5269
|
-
// ----- import/max-dependencies -----
|
|
5261
|
+
}]); // ----- import/first -----
|
|
5262
|
+
type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")]; // ----- import/imports-first -----
|
|
5263
|
+
type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")]; // ----- import/max-dependencies -----
|
|
5270
5264
|
type ImportMaxDependencies = [] | [{
|
|
5271
5265
|
max?: number;
|
|
5272
5266
|
ignoreTypeImports?: boolean;
|
|
5273
|
-
}];
|
|
5274
|
-
// ----- import/named -----
|
|
5267
|
+
}]; // ----- import/named -----
|
|
5275
5268
|
type ImportNamed = [] | [{
|
|
5276
5269
|
commonjs?: boolean;
|
|
5277
|
-
}];
|
|
5278
|
-
// ----- import/namespace -----
|
|
5270
|
+
}]; // ----- import/namespace -----
|
|
5279
5271
|
type ImportNamespace = [] | [{
|
|
5280
5272
|
allowComputed?: boolean;
|
|
5281
|
-
}];
|
|
5282
|
-
// ----- import/newline-after-import -----
|
|
5273
|
+
}]; // ----- import/newline-after-import -----
|
|
5283
5274
|
type ImportNewlineAfterImport = [] | [{
|
|
5284
5275
|
count?: number;
|
|
5285
5276
|
exactCount?: boolean;
|
|
5286
5277
|
considerComments?: boolean;
|
|
5287
|
-
}];
|
|
5288
|
-
// ----- import/no-absolute-path -----
|
|
5278
|
+
}]; // ----- import/no-absolute-path -----
|
|
5289
5279
|
type ImportNoAbsolutePath = [] | [{
|
|
5290
5280
|
commonjs?: boolean;
|
|
5291
5281
|
amd?: boolean;
|
|
5292
5282
|
esmodule?: boolean;
|
|
5293
5283
|
ignore?: [string, ...(string)[]];
|
|
5294
|
-
}];
|
|
5295
|
-
// ----- import/no-anonymous-default-export -----
|
|
5284
|
+
}]; // ----- import/no-anonymous-default-export -----
|
|
5296
5285
|
type ImportNoAnonymousDefaultExport = [] | [{
|
|
5297
5286
|
allowArray?: boolean;
|
|
5298
5287
|
allowArrowFunction?: boolean;
|
|
@@ -5302,14 +5291,12 @@ type ImportNoAnonymousDefaultExport = [] | [{
|
|
|
5302
5291
|
allowLiteral?: boolean;
|
|
5303
5292
|
allowObject?: boolean;
|
|
5304
5293
|
allowNew?: boolean;
|
|
5305
|
-
}];
|
|
5306
|
-
// ----- import/no-commonjs -----
|
|
5294
|
+
}]; // ----- import/no-commonjs -----
|
|
5307
5295
|
type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [{
|
|
5308
5296
|
allowPrimitiveModules?: boolean;
|
|
5309
5297
|
allowRequire?: boolean;
|
|
5310
5298
|
allowConditionalRequire?: boolean;
|
|
5311
|
-
}]);
|
|
5312
|
-
// ----- import/no-cycle -----
|
|
5299
|
+
}]); // ----- import/no-cycle -----
|
|
5313
5300
|
type ImportNoCycle = [] | [{
|
|
5314
5301
|
commonjs?: boolean;
|
|
5315
5302
|
amd?: boolean;
|
|
@@ -5318,17 +5305,14 @@ type ImportNoCycle = [] | [{
|
|
|
5318
5305
|
maxDepth?: (number | "∞");
|
|
5319
5306
|
ignoreExternal?: boolean;
|
|
5320
5307
|
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
5321
|
-
}];
|
|
5322
|
-
// ----- import/no-duplicates -----
|
|
5308
|
+
}]; // ----- import/no-duplicates -----
|
|
5323
5309
|
type ImportNoDuplicates = [] | [{
|
|
5324
5310
|
considerQueryString?: boolean;
|
|
5325
5311
|
"prefer-inline"?: boolean;
|
|
5326
|
-
}];
|
|
5327
|
-
// ----- import/no-dynamic-require -----
|
|
5312
|
+
}]; // ----- import/no-dynamic-require -----
|
|
5328
5313
|
type ImportNoDynamicRequire = [] | [{
|
|
5329
5314
|
esmodule?: boolean;
|
|
5330
|
-
}];
|
|
5331
|
-
// ----- import/no-extraneous-dependencies -----
|
|
5315
|
+
}]; // ----- import/no-extraneous-dependencies -----
|
|
5332
5316
|
type ImportNoExtraneousDependencies = [] | [{
|
|
5333
5317
|
devDependencies?: (boolean | unknown[]);
|
|
5334
5318
|
optionalDependencies?: (boolean | unknown[]);
|
|
@@ -5338,46 +5322,38 @@ type ImportNoExtraneousDependencies = [] | [{
|
|
|
5338
5322
|
includeInternal?: boolean;
|
|
5339
5323
|
includeTypes?: boolean;
|
|
5340
5324
|
whitelist?: unknown[];
|
|
5341
|
-
}];
|
|
5342
|
-
// ----- import/no-import-module-exports -----
|
|
5325
|
+
}]; // ----- import/no-import-module-exports -----
|
|
5343
5326
|
type ImportNoImportModuleExports = [] | [{
|
|
5344
5327
|
exceptions?: unknown[];
|
|
5345
|
-
}];
|
|
5346
|
-
// ----- import/no-internal-modules -----
|
|
5328
|
+
}]; // ----- import/no-internal-modules -----
|
|
5347
5329
|
type ImportNoInternalModules = [] | [({
|
|
5348
5330
|
allow?: string[];
|
|
5349
5331
|
} | {
|
|
5350
5332
|
forbid?: string[];
|
|
5351
|
-
})];
|
|
5352
|
-
// ----- import/no-namespace -----
|
|
5333
|
+
})]; // ----- import/no-namespace -----
|
|
5353
5334
|
type ImportNoNamespace = [] | [{
|
|
5354
5335
|
ignore?: string[];
|
|
5355
5336
|
[k: string]: unknown | undefined;
|
|
5356
|
-
}];
|
|
5357
|
-
// ----- import/no-nodejs-modules -----
|
|
5337
|
+
}]; // ----- import/no-nodejs-modules -----
|
|
5358
5338
|
type ImportNoNodejsModules = [] | [{
|
|
5359
5339
|
allow?: string[];
|
|
5360
|
-
}];
|
|
5361
|
-
// ----- import/no-relative-packages -----
|
|
5340
|
+
}]; // ----- import/no-relative-packages -----
|
|
5362
5341
|
type ImportNoRelativePackages = [] | [{
|
|
5363
5342
|
commonjs?: boolean;
|
|
5364
5343
|
amd?: boolean;
|
|
5365
5344
|
esmodule?: boolean;
|
|
5366
5345
|
ignore?: [string, ...(string)[]];
|
|
5367
|
-
}];
|
|
5368
|
-
// ----- import/no-relative-parent-imports -----
|
|
5346
|
+
}]; // ----- import/no-relative-parent-imports -----
|
|
5369
5347
|
type ImportNoRelativeParentImports = [] | [{
|
|
5370
5348
|
commonjs?: boolean;
|
|
5371
5349
|
amd?: boolean;
|
|
5372
5350
|
esmodule?: boolean;
|
|
5373
5351
|
ignore?: [string, ...(string)[]];
|
|
5374
|
-
}];
|
|
5375
|
-
// ----- import/no-rename-default -----
|
|
5352
|
+
}]; // ----- import/no-rename-default -----
|
|
5376
5353
|
type ImportNoRenameDefault = [] | [{
|
|
5377
5354
|
commonjs?: boolean;
|
|
5378
5355
|
preventRenamingBindings?: boolean;
|
|
5379
|
-
}];
|
|
5380
|
-
// ----- import/no-restricted-paths -----
|
|
5356
|
+
}]; // ----- import/no-restricted-paths -----
|
|
5381
5357
|
type ImportNoRestrictedPaths = [] | [{
|
|
5382
5358
|
zones?: [{
|
|
5383
5359
|
target?: (string | [string, ...(string)[]]);
|
|
@@ -5391,15 +5367,13 @@ type ImportNoRestrictedPaths = [] | [{
|
|
|
5391
5367
|
message?: string;
|
|
5392
5368
|
})[]];
|
|
5393
5369
|
basePath?: string;
|
|
5394
|
-
}];
|
|
5395
|
-
// ----- import/no-unassigned-import -----
|
|
5370
|
+
}]; // ----- import/no-unassigned-import -----
|
|
5396
5371
|
type ImportNoUnassignedImport = [] | [{
|
|
5397
5372
|
devDependencies?: (boolean | unknown[]);
|
|
5398
5373
|
optionalDependencies?: (boolean | unknown[]);
|
|
5399
5374
|
peerDependencies?: (boolean | unknown[]);
|
|
5400
5375
|
allow?: string[];
|
|
5401
|
-
}];
|
|
5402
|
-
// ----- import/no-unresolved -----
|
|
5376
|
+
}]; // ----- import/no-unresolved -----
|
|
5403
5377
|
type ImportNoUnresolved = [] | [{
|
|
5404
5378
|
commonjs?: boolean;
|
|
5405
5379
|
amd?: boolean;
|
|
@@ -5407,8 +5381,7 @@ type ImportNoUnresolved = [] | [{
|
|
|
5407
5381
|
ignore?: [string, ...(string)[]];
|
|
5408
5382
|
caseSensitive?: boolean;
|
|
5409
5383
|
caseSensitiveStrict?: boolean;
|
|
5410
|
-
}];
|
|
5411
|
-
// ----- import/no-unused-modules -----
|
|
5384
|
+
}]; // ----- import/no-unused-modules -----
|
|
5412
5385
|
type ImportNoUnusedModules = [] | [({
|
|
5413
5386
|
unusedExports: true;
|
|
5414
5387
|
src?: [unknown, ...(unknown)[]];
|
|
@@ -5416,13 +5389,11 @@ type ImportNoUnusedModules = [] | [({
|
|
|
5416
5389
|
} | {
|
|
5417
5390
|
missingExports: true;
|
|
5418
5391
|
[k: string]: unknown | undefined;
|
|
5419
|
-
})];
|
|
5420
|
-
// ----- import/no-useless-path-segments -----
|
|
5392
|
+
})]; // ----- import/no-useless-path-segments -----
|
|
5421
5393
|
type ImportNoUselessPathSegments = [] | [{
|
|
5422
5394
|
commonjs?: boolean;
|
|
5423
5395
|
noUselessIndex?: boolean;
|
|
5424
|
-
}];
|
|
5425
|
-
// ----- import/order -----
|
|
5396
|
+
}]; // ----- import/order -----
|
|
5426
5397
|
type ImportOrder = [] | [{
|
|
5427
5398
|
groups?: unknown[];
|
|
5428
5399
|
pathGroupsExcludedImportTypes?: unknown[];
|
|
@@ -5453,16 +5424,13 @@ type ImportOrder = [] | [{
|
|
|
5453
5424
|
orderImportKind?: ("ignore" | "asc" | "desc");
|
|
5454
5425
|
};
|
|
5455
5426
|
warnOnUnassignedImports?: boolean;
|
|
5456
|
-
}];
|
|
5457
|
-
// ----- import/prefer-default-export -----
|
|
5427
|
+
}]; // ----- import/prefer-default-export -----
|
|
5458
5428
|
type ImportPreferDefaultExport = [] | [{
|
|
5459
5429
|
target?: ("single" | "any");
|
|
5460
|
-
}];
|
|
5461
|
-
// ----- import/prefer-namespace-import -----
|
|
5430
|
+
}]; // ----- import/prefer-namespace-import -----
|
|
5462
5431
|
type ImportPreferNamespaceImport = [] | [{
|
|
5463
5432
|
patterns?: string[];
|
|
5464
|
-
}];
|
|
5465
|
-
// ----- indent -----
|
|
5433
|
+
}]; // ----- indent -----
|
|
5466
5434
|
type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
5467
5435
|
SwitchCase?: number;
|
|
5468
5436
|
VariableDeclarator?: ((number | ("first" | "off")) | {
|
|
@@ -5493,8 +5461,7 @@ type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
5493
5461
|
offsetTernaryExpressions?: boolean;
|
|
5494
5462
|
ignoredNodes?: string[];
|
|
5495
5463
|
ignoreComments?: boolean;
|
|
5496
|
-
}];
|
|
5497
|
-
// ----- indent-legacy -----
|
|
5464
|
+
}]; // ----- indent-legacy -----
|
|
5498
5465
|
type IndentLegacy = [] | [("tab" | number)] | [("tab" | number), {
|
|
5499
5466
|
SwitchCase?: number;
|
|
5500
5467
|
VariableDeclarator?: (number | {
|
|
@@ -5521,14 +5488,11 @@ type IndentLegacy = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
5521
5488
|
};
|
|
5522
5489
|
ArrayExpression?: (number | "first");
|
|
5523
5490
|
ObjectExpression?: (number | "first");
|
|
5524
|
-
}];
|
|
5525
|
-
// ----- init-declarations -----
|
|
5491
|
+
}]; // ----- init-declarations -----
|
|
5526
5492
|
type InitDeclarations = ([] | ["always"] | [] | ["never"] | ["never", {
|
|
5527
5493
|
ignoreForLoopInit?: boolean;
|
|
5528
|
-
}]);
|
|
5529
|
-
// -----
|
|
5530
|
-
type JsxQuotes = [] | [("prefer-single" | "prefer-double")];
|
|
5531
|
-
// ----- key-spacing -----
|
|
5494
|
+
}]); // ----- jsx-quotes -----
|
|
5495
|
+
type JsxQuotes = [] | [("prefer-single" | "prefer-double")]; // ----- key-spacing -----
|
|
5532
5496
|
type KeySpacing = [] | [({
|
|
5533
5497
|
align?: (("colon" | "value") | {
|
|
5534
5498
|
mode?: ("strict" | "minimum");
|
|
@@ -5573,8 +5537,7 @@ type KeySpacing = [] | [({
|
|
|
5573
5537
|
beforeColon?: boolean;
|
|
5574
5538
|
afterColon?: boolean;
|
|
5575
5539
|
};
|
|
5576
|
-
})];
|
|
5577
|
-
// ----- keyword-spacing -----
|
|
5540
|
+
})]; // ----- keyword-spacing -----
|
|
5578
5541
|
type KeywordSpacing = [] | [{
|
|
5579
5542
|
before?: boolean;
|
|
5580
5543
|
after?: boolean;
|
|
@@ -5852,17 +5815,14 @@ type KeywordSpacing = [] | [{
|
|
|
5852
5815
|
after?: boolean;
|
|
5853
5816
|
};
|
|
5854
5817
|
};
|
|
5855
|
-
}];
|
|
5856
|
-
// ----- line-comment-position -----
|
|
5818
|
+
}]; // ----- line-comment-position -----
|
|
5857
5819
|
type LineCommentPosition = [] | [(("above" | "beside") | {
|
|
5858
5820
|
position?: ("above" | "beside");
|
|
5859
5821
|
ignorePattern?: string;
|
|
5860
5822
|
applyDefaultPatterns?: boolean;
|
|
5861
5823
|
applyDefaultIgnorePatterns?: boolean;
|
|
5862
|
-
})];
|
|
5863
|
-
// -----
|
|
5864
|
-
type LinebreakStyle = [] | [("unix" | "windows")];
|
|
5865
|
-
// ----- lines-around-comment -----
|
|
5824
|
+
})]; // ----- linebreak-style -----
|
|
5825
|
+
type LinebreakStyle = [] | [("unix" | "windows")]; // ----- lines-around-comment -----
|
|
5866
5826
|
type LinesAroundComment = [] | [{
|
|
5867
5827
|
beforeBlockComment?: boolean;
|
|
5868
5828
|
afterBlockComment?: boolean;
|
|
@@ -5879,13 +5839,11 @@ type LinesAroundComment = [] | [{
|
|
|
5879
5839
|
ignorePattern?: string;
|
|
5880
5840
|
applyDefaultIgnorePatterns?: boolean;
|
|
5881
5841
|
afterHashbangComment?: boolean;
|
|
5882
|
-
}];
|
|
5883
|
-
// ----- lines-around-directive -----
|
|
5842
|
+
}]; // ----- lines-around-directive -----
|
|
5884
5843
|
type LinesAroundDirective = [] | [(("always" | "never") | {
|
|
5885
5844
|
before?: ("always" | "never");
|
|
5886
5845
|
after?: ("always" | "never");
|
|
5887
|
-
})];
|
|
5888
|
-
// ----- lines-between-class-members -----
|
|
5846
|
+
})]; // ----- lines-between-class-members -----
|
|
5889
5847
|
type LinesBetweenClassMembers = [] | [({
|
|
5890
5848
|
enforce: [{
|
|
5891
5849
|
blankLine: ("always" | "never");
|
|
@@ -5908,22 +5866,18 @@ type LinesBetweenClassMembers = [] | [({
|
|
|
5908
5866
|
})[]];
|
|
5909
5867
|
} | ("always" | "never")), {
|
|
5910
5868
|
exceptAfterSingleLine?: boolean;
|
|
5911
|
-
}];
|
|
5912
|
-
// ----- logical-assignment-operators -----
|
|
5869
|
+
}]; // ----- logical-assignment-operators -----
|
|
5913
5870
|
type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
5914
5871
|
enforceForIfStatements?: boolean;
|
|
5915
|
-
}] | ["never"]) & unknown[]);
|
|
5916
|
-
// ----- max-classes-per-file -----
|
|
5872
|
+
}] | ["never"]) & unknown[]); // ----- max-classes-per-file -----
|
|
5917
5873
|
type MaxClassesPerFile = [] | [(number | {
|
|
5918
5874
|
ignoreExpressions?: boolean;
|
|
5919
5875
|
max?: number;
|
|
5920
|
-
})];
|
|
5921
|
-
// ----- max-depth -----
|
|
5876
|
+
})]; // ----- max-depth -----
|
|
5922
5877
|
type MaxDepth = [] | [(number | {
|
|
5923
5878
|
maximum?: number;
|
|
5924
5879
|
max?: number;
|
|
5925
|
-
})];
|
|
5926
|
-
// ----- max-len -----
|
|
5880
|
+
})]; // ----- max-len -----
|
|
5927
5881
|
type MaxLen = [] | [({
|
|
5928
5882
|
code?: number;
|
|
5929
5883
|
comments?: number;
|
|
@@ -5990,32 +5944,28 @@ type MaxLen = [] | [({
|
|
|
5990
5944
|
ignoreTemplateLiterals?: boolean;
|
|
5991
5945
|
ignoreRegExpLiterals?: boolean;
|
|
5992
5946
|
ignoreTrailingComments?: boolean;
|
|
5993
|
-
}];
|
|
5994
|
-
// ----- max-lines -----
|
|
5947
|
+
}]; // ----- max-lines -----
|
|
5995
5948
|
type MaxLines = [] | [(number | {
|
|
5996
5949
|
max?: number;
|
|
5997
5950
|
skipComments?: boolean;
|
|
5998
5951
|
skipBlankLines?: boolean;
|
|
5999
|
-
})];
|
|
6000
|
-
// ----- max-lines-per-function -----
|
|
5952
|
+
})]; // ----- max-lines-per-function -----
|
|
6001
5953
|
type MaxLinesPerFunction = [] | [({
|
|
6002
5954
|
max?: number;
|
|
6003
5955
|
skipComments?: boolean;
|
|
6004
5956
|
skipBlankLines?: boolean;
|
|
6005
5957
|
IIFEs?: boolean;
|
|
6006
|
-
} | number)];
|
|
6007
|
-
// ----- max-nested-callbacks -----
|
|
5958
|
+
} | number)]; // ----- max-nested-callbacks -----
|
|
6008
5959
|
type MaxNestedCallbacks = [] | [(number | {
|
|
6009
5960
|
maximum?: number;
|
|
6010
5961
|
max?: number;
|
|
6011
|
-
})];
|
|
6012
|
-
// ----- max-params -----
|
|
5962
|
+
})]; // ----- max-params -----
|
|
6013
5963
|
type MaxParams = [] | [(number | {
|
|
6014
5964
|
maximum?: number;
|
|
6015
5965
|
max?: number;
|
|
6016
5966
|
countVoidThis?: boolean;
|
|
6017
|
-
|
|
6018
|
-
// ----- max-statements -----
|
|
5967
|
+
countThis?: ("never" | "except-void" | "always");
|
|
5968
|
+
})]; // ----- max-statements -----
|
|
6019
5969
|
type MaxStatements = [] | [(number | {
|
|
6020
5970
|
maximum?: number;
|
|
6021
5971
|
max?: number;
|
|
@@ -6024,18 +5974,14 @@ type MaxStatements = [] | [(number | {
|
|
|
6024
5974
|
max?: number;
|
|
6025
5975
|
}), {
|
|
6026
5976
|
ignoreTopLevelFunctions?: boolean;
|
|
6027
|
-
}];
|
|
6028
|
-
// ----- max-statements-per-line -----
|
|
5977
|
+
}]; // ----- max-statements-per-line -----
|
|
6029
5978
|
type MaxStatementsPerLine = [] | [{
|
|
6030
5979
|
max?: number;
|
|
6031
|
-
}];
|
|
6032
|
-
// ----- multiline-comment-style -----
|
|
5980
|
+
}]; // ----- multiline-comment-style -----
|
|
6033
5981
|
type MultilineCommentStyle = ([] | [("starred-block" | "bare-block")] | [] | ["separate-lines"] | ["separate-lines", {
|
|
6034
5982
|
checkJSDoc?: boolean;
|
|
6035
|
-
}]);
|
|
6036
|
-
// -----
|
|
6037
|
-
type MultilineTernary = [] | [("always" | "always-multiline" | "never")];
|
|
6038
|
-
// ----- new-cap -----
|
|
5983
|
+
}]); // ----- multiline-ternary -----
|
|
5984
|
+
type MultilineTernary = [] | [("always" | "always-multiline" | "never")]; // ----- new-cap -----
|
|
6039
5985
|
type NewCap = [] | [{
|
|
6040
5986
|
newIsCap?: boolean;
|
|
6041
5987
|
capIsNew?: boolean;
|
|
@@ -6044,71 +5990,54 @@ type NewCap = [] | [{
|
|
|
6044
5990
|
capIsNewExceptions?: string[];
|
|
6045
5991
|
capIsNewExceptionPattern?: string;
|
|
6046
5992
|
properties?: boolean;
|
|
6047
|
-
}];
|
|
6048
|
-
// -----
|
|
6049
|
-
type
|
|
6050
|
-
// ----- newline-after-var -----
|
|
6051
|
-
type NewlineAfterVar = [] | [("never" | "always")];
|
|
6052
|
-
// ----- newline-per-chained-call -----
|
|
5993
|
+
}]; // ----- new-parens -----
|
|
5994
|
+
type NewParens = [] | [("always" | "never")]; // ----- newline-after-var -----
|
|
5995
|
+
type NewlineAfterVar = [] | [("never" | "always")]; // ----- newline-per-chained-call -----
|
|
6053
5996
|
type NewlinePerChainedCall = [] | [{
|
|
6054
5997
|
ignoreChainWithDepth?: number;
|
|
6055
|
-
}];
|
|
6056
|
-
// ----- no-bitwise -----
|
|
5998
|
+
}]; // ----- no-bitwise -----
|
|
6057
5999
|
type NoBitwise = [] | [{
|
|
6058
6000
|
allow?: ("^" | "|" | "&" | "<<" | ">>" | ">>>" | "^=" | "|=" | "&=" | "<<=" | ">>=" | ">>>=" | "~")[];
|
|
6059
6001
|
int32Hint?: boolean;
|
|
6060
|
-
}];
|
|
6061
|
-
// ----- no-
|
|
6062
|
-
type NoCondAssign = [] | [("except-parens" | "always")];
|
|
6063
|
-
// ----- no-confusing-arrow -----
|
|
6002
|
+
}]; // ----- no-cond-assign -----
|
|
6003
|
+
type NoCondAssign = [] | [("except-parens" | "always")]; // ----- no-confusing-arrow -----
|
|
6064
6004
|
type NoConfusingArrow = [] | [{
|
|
6065
6005
|
allowParens?: boolean;
|
|
6066
6006
|
onlyOneSimpleParam?: boolean;
|
|
6067
|
-
}];
|
|
6068
|
-
// ----- no-console -----
|
|
6007
|
+
}]; // ----- no-console -----
|
|
6069
6008
|
type NoConsole = [] | [{
|
|
6070
6009
|
allow?: [string, ...(string)[]];
|
|
6071
|
-
}];
|
|
6072
|
-
// ----- no-constant-condition -----
|
|
6010
|
+
}]; // ----- no-constant-condition -----
|
|
6073
6011
|
type NoConstantCondition = [] | [{
|
|
6074
6012
|
checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false);
|
|
6075
|
-
}];
|
|
6076
|
-
// ----- no-duplicate-imports -----
|
|
6013
|
+
}]; // ----- no-duplicate-imports -----
|
|
6077
6014
|
type NoDuplicateImports = [] | [{
|
|
6078
6015
|
includeExports?: boolean;
|
|
6079
6016
|
allowSeparateTypeImports?: boolean;
|
|
6080
|
-
}];
|
|
6081
|
-
// ----- no-else-return -----
|
|
6017
|
+
}]; // ----- no-else-return -----
|
|
6082
6018
|
type NoElseReturn = [] | [{
|
|
6083
6019
|
allowElseIf?: boolean;
|
|
6084
|
-
}];
|
|
6085
|
-
// ----- no-empty -----
|
|
6020
|
+
}]; // ----- no-empty -----
|
|
6086
6021
|
type NoEmpty = [] | [{
|
|
6087
6022
|
allowEmptyCatch?: boolean;
|
|
6088
|
-
}];
|
|
6089
|
-
// ----- no-empty-function -----
|
|
6023
|
+
}]; // ----- no-empty-function -----
|
|
6090
6024
|
type NoEmptyFunction = [] | [{
|
|
6091
6025
|
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[];
|
|
6092
|
-
}];
|
|
6093
|
-
// ----- no-empty-pattern -----
|
|
6026
|
+
}]; // ----- no-empty-pattern -----
|
|
6094
6027
|
type NoEmptyPattern = [] | [{
|
|
6095
6028
|
allowObjectPatternsAsParameters?: boolean;
|
|
6096
|
-
}];
|
|
6097
|
-
// ----- no-eval -----
|
|
6029
|
+
}]; // ----- no-eval -----
|
|
6098
6030
|
type NoEval = [] | [{
|
|
6099
6031
|
allowIndirect?: boolean;
|
|
6100
|
-
}];
|
|
6101
|
-
// ----- no-extend-native -----
|
|
6032
|
+
}]; // ----- no-extend-native -----
|
|
6102
6033
|
type NoExtendNative = [] | [{
|
|
6103
6034
|
exceptions?: string[];
|
|
6104
|
-
}];
|
|
6105
|
-
// ----- no-extra-boolean-cast -----
|
|
6035
|
+
}]; // ----- no-extra-boolean-cast -----
|
|
6106
6036
|
type NoExtraBooleanCast = [] | [({
|
|
6107
6037
|
enforceForInnerExpressions?: boolean;
|
|
6108
6038
|
} | {
|
|
6109
6039
|
enforceForLogicalOperands?: boolean;
|
|
6110
|
-
})];
|
|
6111
|
-
// ----- no-extra-parens -----
|
|
6040
|
+
})]; // ----- no-extra-parens -----
|
|
6112
6041
|
type NoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
6113
6042
|
conditionalAssign?: boolean;
|
|
6114
6043
|
ternaryOperandBinaryExpressions?: boolean;
|
|
@@ -6120,59 +6049,48 @@ type NoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
6120
6049
|
enforceForNewInMemberExpressions?: boolean;
|
|
6121
6050
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
6122
6051
|
allowParensAfterCommentPattern?: string;
|
|
6123
|
-
}]);
|
|
6124
|
-
// ----- no-fallthrough -----
|
|
6052
|
+
}]); // ----- no-fallthrough -----
|
|
6125
6053
|
type NoFallthrough = [] | [{
|
|
6126
6054
|
commentPattern?: string;
|
|
6127
6055
|
allowEmptyCase?: boolean;
|
|
6128
6056
|
reportUnusedFallthroughComment?: boolean;
|
|
6129
|
-
}];
|
|
6130
|
-
// ----- no-global-assign -----
|
|
6057
|
+
}]; // ----- no-global-assign -----
|
|
6131
6058
|
type NoGlobalAssign = [] | [{
|
|
6132
6059
|
exceptions?: string[];
|
|
6133
|
-
}];
|
|
6134
|
-
// ----- no-implicit-coercion -----
|
|
6060
|
+
}]; // ----- no-implicit-coercion -----
|
|
6135
6061
|
type NoImplicitCoercion = [] | [{
|
|
6136
6062
|
boolean?: boolean;
|
|
6137
6063
|
number?: boolean;
|
|
6138
6064
|
string?: boolean;
|
|
6139
6065
|
disallowTemplateShorthand?: boolean;
|
|
6140
6066
|
allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[];
|
|
6141
|
-
}];
|
|
6142
|
-
// ----- no-implicit-globals -----
|
|
6067
|
+
}]; // ----- no-implicit-globals -----
|
|
6143
6068
|
type NoImplicitGlobals = [] | [{
|
|
6144
6069
|
lexicalBindings?: boolean;
|
|
6145
|
-
}];
|
|
6146
|
-
// ----- no-inline-comments -----
|
|
6070
|
+
}]; // ----- no-inline-comments -----
|
|
6147
6071
|
type NoInlineComments = [] | [{
|
|
6148
6072
|
ignorePattern?: string;
|
|
6149
|
-
}];
|
|
6150
|
-
// ----- no-inner-declarations -----
|
|
6073
|
+
}]; // ----- no-inner-declarations -----
|
|
6151
6074
|
type NoInnerDeclarations = [] | [("functions" | "both")] | [("functions" | "both"), {
|
|
6152
6075
|
blockScopedFunctions?: ("allow" | "disallow");
|
|
6153
|
-
}];
|
|
6154
|
-
// ----- no-invalid-regexp -----
|
|
6076
|
+
}]; // ----- no-invalid-regexp -----
|
|
6155
6077
|
type NoInvalidRegexp = [] | [{
|
|
6156
6078
|
allowConstructorFlags?: string[];
|
|
6157
|
-
}];
|
|
6158
|
-
// ----- no-invalid-this -----
|
|
6079
|
+
}]; // ----- no-invalid-this -----
|
|
6159
6080
|
type NoInvalidThis = [] | [{
|
|
6160
6081
|
capIsConstructor?: boolean;
|
|
6161
|
-
}];
|
|
6162
|
-
// ----- no-irregular-whitespace -----
|
|
6082
|
+
}]; // ----- no-irregular-whitespace -----
|
|
6163
6083
|
type NoIrregularWhitespace = [] | [{
|
|
6164
6084
|
skipComments?: boolean;
|
|
6165
6085
|
skipStrings?: boolean;
|
|
6166
6086
|
skipTemplates?: boolean;
|
|
6167
6087
|
skipRegExps?: boolean;
|
|
6168
6088
|
skipJSXText?: boolean;
|
|
6169
|
-
}];
|
|
6170
|
-
// ----- no-labels -----
|
|
6089
|
+
}]; // ----- no-labels -----
|
|
6171
6090
|
type NoLabels = [] | [{
|
|
6172
6091
|
allowLoop?: boolean;
|
|
6173
6092
|
allowSwitch?: boolean;
|
|
6174
|
-
}];
|
|
6175
|
-
// ----- no-magic-numbers -----
|
|
6093
|
+
}]; // ----- no-magic-numbers -----
|
|
6176
6094
|
type NoMagicNumbers = [] | [{
|
|
6177
6095
|
detectObjects?: boolean;
|
|
6178
6096
|
enforceConst?: boolean;
|
|
@@ -6184,65 +6102,52 @@ type NoMagicNumbers = [] | [{
|
|
|
6184
6102
|
ignoreNumericLiteralTypes?: boolean;
|
|
6185
6103
|
ignoreReadonlyClassProperties?: boolean;
|
|
6186
6104
|
ignoreTypeIndexes?: boolean;
|
|
6187
|
-
}];
|
|
6188
|
-
// ----- no-misleading-character-class -----
|
|
6105
|
+
}]; // ----- no-misleading-character-class -----
|
|
6189
6106
|
type NoMisleadingCharacterClass = [] | [{
|
|
6190
6107
|
allowEscape?: boolean;
|
|
6191
|
-
}];
|
|
6192
|
-
// ----- no-mixed-operators -----
|
|
6108
|
+
}]; // ----- no-mixed-operators -----
|
|
6193
6109
|
type NoMixedOperators = [] | [{
|
|
6194
6110
|
groups?: [("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ...(("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"))[]][];
|
|
6195
6111
|
allowSamePrecedence?: boolean;
|
|
6196
|
-
}];
|
|
6197
|
-
// ----- no-mixed-requires -----
|
|
6112
|
+
}]; // ----- no-mixed-requires -----
|
|
6198
6113
|
type NoMixedRequires = [] | [(boolean | {
|
|
6199
6114
|
grouping?: boolean;
|
|
6200
6115
|
allowCall?: boolean;
|
|
6201
|
-
})];
|
|
6202
|
-
// ----- no-
|
|
6203
|
-
type NoMixedSpacesAndTabs = [] | [("smart-tabs" | true | false)];
|
|
6204
|
-
// ----- no-multi-assign -----
|
|
6116
|
+
})]; // ----- no-mixed-spaces-and-tabs -----
|
|
6117
|
+
type NoMixedSpacesAndTabs = [] | [("smart-tabs" | true | false)]; // ----- no-multi-assign -----
|
|
6205
6118
|
type NoMultiAssign = [] | [{
|
|
6206
6119
|
ignoreNonDeclaration?: boolean;
|
|
6207
|
-
}];
|
|
6208
|
-
// ----- no-multi-spaces -----
|
|
6120
|
+
}]; // ----- no-multi-spaces -----
|
|
6209
6121
|
type NoMultiSpaces = [] | [{
|
|
6210
6122
|
exceptions?: {
|
|
6211
6123
|
[k: string]: boolean;
|
|
6212
6124
|
};
|
|
6213
6125
|
ignoreEOLComments?: boolean;
|
|
6214
|
-
}];
|
|
6215
|
-
// ----- no-multiple-empty-lines -----
|
|
6126
|
+
}]; // ----- no-multiple-empty-lines -----
|
|
6216
6127
|
type NoMultipleEmptyLines = [] | [{
|
|
6217
6128
|
max: number;
|
|
6218
6129
|
maxEOF?: number;
|
|
6219
6130
|
maxBOF?: number;
|
|
6220
|
-
}];
|
|
6221
|
-
// ----- no-native-reassign -----
|
|
6131
|
+
}]; // ----- no-native-reassign -----
|
|
6222
6132
|
type NoNativeReassign = [] | [{
|
|
6223
6133
|
exceptions?: string[];
|
|
6224
|
-
}];
|
|
6225
|
-
// ----- no-param-reassign -----
|
|
6134
|
+
}]; // ----- no-param-reassign -----
|
|
6226
6135
|
type NoParamReassign = [] | [({
|
|
6227
6136
|
props?: false;
|
|
6228
6137
|
} | {
|
|
6229
6138
|
props?: true;
|
|
6230
6139
|
ignorePropertyModificationsFor?: string[];
|
|
6231
6140
|
ignorePropertyModificationsForRegex?: string[];
|
|
6232
|
-
})];
|
|
6233
|
-
// ----- no-plusplus -----
|
|
6141
|
+
})]; // ----- no-plusplus -----
|
|
6234
6142
|
type NoPlusplus = [] | [{
|
|
6235
6143
|
allowForLoopAfterthoughts?: boolean;
|
|
6236
|
-
}];
|
|
6237
|
-
// ----- no-promise-executor-return -----
|
|
6144
|
+
}]; // ----- no-promise-executor-return -----
|
|
6238
6145
|
type NoPromiseExecutorReturn = [] | [{
|
|
6239
6146
|
allowVoid?: boolean;
|
|
6240
|
-
}];
|
|
6241
|
-
// ----- no-redeclare -----
|
|
6147
|
+
}]; // ----- no-redeclare -----
|
|
6242
6148
|
type NoRedeclare = [] | [{
|
|
6243
6149
|
builtinGlobals?: boolean;
|
|
6244
|
-
}];
|
|
6245
|
-
// ----- no-restricted-exports -----
|
|
6150
|
+
}]; // ----- no-restricted-exports -----
|
|
6246
6151
|
type NoRestrictedExports = [] | [({
|
|
6247
6152
|
restrictedNamedExports?: string[];
|
|
6248
6153
|
restrictedNamedExportsPattern?: string;
|
|
@@ -6256,8 +6161,7 @@ type NoRestrictedExports = [] | [({
|
|
|
6256
6161
|
namedFrom?: boolean;
|
|
6257
6162
|
namespaceFrom?: boolean;
|
|
6258
6163
|
};
|
|
6259
|
-
})];
|
|
6260
|
-
// ----- no-restricted-globals -----
|
|
6164
|
+
})]; // ----- no-restricted-globals -----
|
|
6261
6165
|
type NoRestrictedGlobals = ((string | {
|
|
6262
6166
|
name: string;
|
|
6263
6167
|
message?: string;
|
|
@@ -6268,8 +6172,7 @@ type NoRestrictedGlobals = ((string | {
|
|
|
6268
6172
|
})[];
|
|
6269
6173
|
checkGlobalObject?: boolean;
|
|
6270
6174
|
globalObjects?: string[];
|
|
6271
|
-
}]);
|
|
6272
|
-
// ----- no-restricted-imports -----
|
|
6175
|
+
}]); // ----- no-restricted-imports -----
|
|
6273
6176
|
type NoRestrictedImports = ((string | {
|
|
6274
6177
|
name: string;
|
|
6275
6178
|
message?: string;
|
|
@@ -6289,8 +6192,7 @@ type NoRestrictedImports = ((string | {
|
|
|
6289
6192
|
} | {
|
|
6290
6193
|
[k: string]: unknown | undefined;
|
|
6291
6194
|
})[]);
|
|
6292
|
-
}]);
|
|
6293
|
-
// ----- no-restricted-modules -----
|
|
6195
|
+
}]); // ----- no-restricted-modules -----
|
|
6294
6196
|
type NoRestrictedModules = ((string | {
|
|
6295
6197
|
name: string;
|
|
6296
6198
|
message?: string;
|
|
@@ -6300,29 +6202,23 @@ type NoRestrictedModules = ((string | {
|
|
|
6300
6202
|
message?: string;
|
|
6301
6203
|
})[];
|
|
6302
6204
|
patterns?: string[];
|
|
6303
|
-
}[]);
|
|
6304
|
-
// ----- no-restricted-properties -----
|
|
6205
|
+
}[]); // ----- no-restricted-properties -----
|
|
6305
6206
|
type NoRestrictedProperties = ({
|
|
6306
6207
|
[k: string]: unknown | undefined;
|
|
6307
6208
|
} | {
|
|
6308
6209
|
[k: string]: unknown | undefined;
|
|
6309
|
-
})[];
|
|
6310
|
-
// ----- no-restricted-syntax -----
|
|
6210
|
+
})[]; // ----- no-restricted-syntax -----
|
|
6311
6211
|
type NoRestrictedSyntax = (string | {
|
|
6312
6212
|
selector: string;
|
|
6313
6213
|
message?: string;
|
|
6314
|
-
})[];
|
|
6315
|
-
// ----- no-
|
|
6316
|
-
type NoReturnAssign = [] | [("except-parens" | "always")];
|
|
6317
|
-
// ----- no-self-assign -----
|
|
6214
|
+
})[]; // ----- no-return-assign -----
|
|
6215
|
+
type NoReturnAssign = [] | [("except-parens" | "always")]; // ----- no-self-assign -----
|
|
6318
6216
|
type NoSelfAssign = [] | [{
|
|
6319
6217
|
props?: boolean;
|
|
6320
|
-
}];
|
|
6321
|
-
// ----- no-sequences -----
|
|
6218
|
+
}]; // ----- no-sequences -----
|
|
6322
6219
|
type NoSequences = [] | [{
|
|
6323
6220
|
allowInParentheses?: boolean;
|
|
6324
|
-
}];
|
|
6325
|
-
// ----- no-shadow -----
|
|
6221
|
+
}]; // ----- no-shadow -----
|
|
6326
6222
|
type NoShadow = [] | [{
|
|
6327
6223
|
builtinGlobals?: boolean;
|
|
6328
6224
|
hoist?: ("all" | "functions" | "never" | "types" | "functions-and-types");
|
|
@@ -6330,29 +6226,23 @@ type NoShadow = [] | [{
|
|
|
6330
6226
|
ignoreOnInitialization?: boolean;
|
|
6331
6227
|
ignoreTypeValueShadow?: boolean;
|
|
6332
6228
|
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
6333
|
-
}];
|
|
6334
|
-
// ----- no-shadow-restricted-names -----
|
|
6229
|
+
}]; // ----- no-shadow-restricted-names -----
|
|
6335
6230
|
type NoShadowRestrictedNames = [] | [{
|
|
6336
6231
|
reportGlobalThis?: boolean;
|
|
6337
|
-
}];
|
|
6338
|
-
// ----- no-sync -----
|
|
6232
|
+
}]; // ----- no-sync -----
|
|
6339
6233
|
type NoSync = [] | [{
|
|
6340
6234
|
allowAtRootLevel?: boolean;
|
|
6341
|
-
}];
|
|
6342
|
-
// ----- no-tabs -----
|
|
6235
|
+
}]; // ----- no-tabs -----
|
|
6343
6236
|
type NoTabs = [] | [{
|
|
6344
6237
|
allowIndentationTabs?: boolean;
|
|
6345
|
-
}];
|
|
6346
|
-
// ----- no-trailing-spaces -----
|
|
6238
|
+
}]; // ----- no-trailing-spaces -----
|
|
6347
6239
|
type NoTrailingSpaces = [] | [{
|
|
6348
6240
|
skipBlankLines?: boolean;
|
|
6349
6241
|
ignoreComments?: boolean;
|
|
6350
|
-
}];
|
|
6351
|
-
// ----- no-undef -----
|
|
6242
|
+
}]; // ----- no-undef -----
|
|
6352
6243
|
type NoUndef = [] | [{
|
|
6353
6244
|
typeof?: boolean;
|
|
6354
|
-
}];
|
|
6355
|
-
// ----- no-underscore-dangle -----
|
|
6245
|
+
}]; // ----- no-underscore-dangle -----
|
|
6356
6246
|
type NoUnderscoreDangle = [] | [{
|
|
6357
6247
|
allow?: string[];
|
|
6358
6248
|
allowAfterThis?: boolean;
|
|
@@ -6363,32 +6253,26 @@ type NoUnderscoreDangle = [] | [{
|
|
|
6363
6253
|
enforceInClassFields?: boolean;
|
|
6364
6254
|
allowInArrayDestructuring?: boolean;
|
|
6365
6255
|
allowInObjectDestructuring?: boolean;
|
|
6366
|
-
}];
|
|
6367
|
-
// ----- no-unneeded-ternary -----
|
|
6256
|
+
}]; // ----- no-unneeded-ternary -----
|
|
6368
6257
|
type NoUnneededTernary = [] | [{
|
|
6369
6258
|
defaultAssignment?: boolean;
|
|
6370
|
-
}];
|
|
6371
|
-
// ----- no-unreachable-loop -----
|
|
6259
|
+
}]; // ----- no-unreachable-loop -----
|
|
6372
6260
|
type NoUnreachableLoop = [] | [{
|
|
6373
6261
|
ignore?: ("WhileStatement" | "DoWhileStatement" | "ForStatement" | "ForInStatement" | "ForOfStatement")[];
|
|
6374
|
-
}];
|
|
6375
|
-
// ----- no-unsafe-negation -----
|
|
6262
|
+
}]; // ----- no-unsafe-negation -----
|
|
6376
6263
|
type NoUnsafeNegation = [] | [{
|
|
6377
6264
|
enforceForOrderingRelations?: boolean;
|
|
6378
|
-
}];
|
|
6379
|
-
// ----- no-unsafe-optional-chaining -----
|
|
6265
|
+
}]; // ----- no-unsafe-optional-chaining -----
|
|
6380
6266
|
type NoUnsafeOptionalChaining = [] | [{
|
|
6381
6267
|
disallowArithmeticOperators?: boolean;
|
|
6382
|
-
}];
|
|
6383
|
-
// ----- no-unused-expressions -----
|
|
6268
|
+
}]; // ----- no-unused-expressions -----
|
|
6384
6269
|
type NoUnusedExpressions = [] | [{
|
|
6385
6270
|
allowShortCircuit?: boolean;
|
|
6386
6271
|
allowTernary?: boolean;
|
|
6387
6272
|
allowTaggedTemplates?: boolean;
|
|
6388
6273
|
enforceForJSX?: boolean;
|
|
6389
6274
|
ignoreDirectives?: boolean;
|
|
6390
|
-
}];
|
|
6391
|
-
// ----- no-unused-vars -----
|
|
6275
|
+
}]; // ----- no-unused-vars -----
|
|
6392
6276
|
type NoUnusedVars = [] | [(("all" | "local") | {
|
|
6393
6277
|
vars?: ("all" | "local");
|
|
6394
6278
|
varsIgnorePattern?: string;
|
|
@@ -6401,8 +6285,7 @@ type NoUnusedVars = [] | [(("all" | "local") | {
|
|
|
6401
6285
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
6402
6286
|
ignoreUsingDeclarations?: boolean;
|
|
6403
6287
|
reportUsedIgnorePattern?: boolean;
|
|
6404
|
-
})];
|
|
6405
|
-
// ----- no-use-before-define -----
|
|
6288
|
+
})]; // ----- no-use-before-define -----
|
|
6406
6289
|
type NoUseBeforeDefine = [] | [("nofunc" | {
|
|
6407
6290
|
functions?: boolean;
|
|
6408
6291
|
classes?: boolean;
|
|
@@ -6411,32 +6294,26 @@ type NoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
6411
6294
|
enums?: boolean;
|
|
6412
6295
|
typedefs?: boolean;
|
|
6413
6296
|
ignoreTypeReferences?: boolean;
|
|
6414
|
-
})];
|
|
6415
|
-
// ----- no-useless-computed-key -----
|
|
6297
|
+
})]; // ----- no-useless-computed-key -----
|
|
6416
6298
|
type NoUselessComputedKey = [] | [{
|
|
6417
6299
|
enforceForClassMembers?: boolean;
|
|
6418
|
-
}];
|
|
6419
|
-
// ----- no-useless-escape -----
|
|
6300
|
+
}]; // ----- no-useless-escape -----
|
|
6420
6301
|
type NoUselessEscape = [] | [{
|
|
6421
6302
|
allowRegexCharacters?: string[];
|
|
6422
|
-
}];
|
|
6423
|
-
// ----- no-useless-rename -----
|
|
6303
|
+
}]; // ----- no-useless-rename -----
|
|
6424
6304
|
type NoUselessRename = [] | [{
|
|
6425
6305
|
ignoreDestructuring?: boolean;
|
|
6426
6306
|
ignoreImport?: boolean;
|
|
6427
6307
|
ignoreExport?: boolean;
|
|
6428
|
-
}];
|
|
6429
|
-
// ----- no-void -----
|
|
6308
|
+
}]; // ----- no-void -----
|
|
6430
6309
|
type NoVoid = [] | [{
|
|
6431
6310
|
allowAsStatement?: boolean;
|
|
6432
|
-
}];
|
|
6433
|
-
// ----- no-warning-comments -----
|
|
6311
|
+
}]; // ----- no-warning-comments -----
|
|
6434
6312
|
type NoWarningComments = [] | [{
|
|
6435
6313
|
terms?: string[];
|
|
6436
6314
|
location?: ("start" | "anywhere");
|
|
6437
6315
|
decoration?: [string, ...(string)[]];
|
|
6438
|
-
}];
|
|
6439
|
-
// ----- nonblock-statement-body-position -----
|
|
6316
|
+
}]; // ----- nonblock-statement-body-position -----
|
|
6440
6317
|
type NonblockStatementBodyPosition = [] | [("beside" | "below" | "any")] | [("beside" | "below" | "any"), {
|
|
6441
6318
|
overrides?: {
|
|
6442
6319
|
if?: ("beside" | "below" | "any");
|
|
@@ -6445,8 +6322,7 @@ type NonblockStatementBodyPosition = [] | [("beside" | "below" | "any")] | [("be
|
|
|
6445
6322
|
do?: ("beside" | "below" | "any");
|
|
6446
6323
|
for?: ("beside" | "below" | "any");
|
|
6447
6324
|
};
|
|
6448
|
-
}];
|
|
6449
|
-
// ----- object-curly-newline -----
|
|
6325
|
+
}]; // ----- object-curly-newline -----
|
|
6450
6326
|
type ObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
6451
6327
|
multiline?: boolean;
|
|
6452
6328
|
minProperties?: number;
|
|
@@ -6472,18 +6348,15 @@ type ObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
6472
6348
|
minProperties?: number;
|
|
6473
6349
|
consistent?: boolean;
|
|
6474
6350
|
});
|
|
6475
|
-
})];
|
|
6476
|
-
// ----- object-curly-spacing -----
|
|
6351
|
+
})]; // ----- object-curly-spacing -----
|
|
6477
6352
|
type ObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
6478
6353
|
arraysInObjects?: boolean;
|
|
6479
6354
|
objectsInObjects?: boolean;
|
|
6480
|
-
}];
|
|
6481
|
-
// ----- object-property-newline -----
|
|
6355
|
+
}]; // ----- object-property-newline -----
|
|
6482
6356
|
type ObjectPropertyNewline = [] | [{
|
|
6483
6357
|
allowAllPropertiesOnSameLine?: boolean;
|
|
6484
6358
|
allowMultiplePropertiesPerLine?: boolean;
|
|
6485
|
-
}];
|
|
6486
|
-
// ----- object-shorthand -----
|
|
6359
|
+
}]; // ----- object-shorthand -----
|
|
6487
6360
|
type ObjectShorthand = ([] | [("always" | "methods" | "properties" | "never" | "consistent" | "consistent-as-needed")] | [] | [("always" | "methods" | "properties")] | [("always" | "methods" | "properties"), {
|
|
6488
6361
|
avoidQuotes?: boolean;
|
|
6489
6362
|
}] | [] | [("always" | "methods")] | [("always" | "methods"), {
|
|
@@ -6491,8 +6364,7 @@ type ObjectShorthand = ([] | [("always" | "methods" | "properties" | "never" | "
|
|
|
6491
6364
|
methodsIgnorePattern?: string;
|
|
6492
6365
|
avoidQuotes?: boolean;
|
|
6493
6366
|
avoidExplicitReturnArrows?: boolean;
|
|
6494
|
-
}]);
|
|
6495
|
-
// ----- one-var -----
|
|
6367
|
+
}]); // ----- one-var -----
|
|
6496
6368
|
type OneVar = [] | [(("always" | "never" | "consecutive") | {
|
|
6497
6369
|
separateRequires?: boolean;
|
|
6498
6370
|
var?: ("always" | "never" | "consecutive");
|
|
@@ -6503,18 +6375,14 @@ type OneVar = [] | [(("always" | "never" | "consecutive") | {
|
|
|
6503
6375
|
} | {
|
|
6504
6376
|
initialized?: ("always" | "never" | "consecutive");
|
|
6505
6377
|
uninitialized?: ("always" | "never" | "consecutive");
|
|
6506
|
-
})];
|
|
6507
|
-
// -----
|
|
6508
|
-
type
|
|
6509
|
-
// ----- operator-assignment -----
|
|
6510
|
-
type OperatorAssignment = [] | [("always" | "never")];
|
|
6511
|
-
// ----- operator-linebreak -----
|
|
6378
|
+
})]; // ----- one-var-declaration-per-line -----
|
|
6379
|
+
type OneVarDeclarationPerLine = [] | [("always" | "initializations")]; // ----- operator-assignment -----
|
|
6380
|
+
type OperatorAssignment = [] | [("always" | "never")]; // ----- operator-linebreak -----
|
|
6512
6381
|
type OperatorLinebreak = [] | [("after" | "before" | "none" | null)] | [("after" | "before" | "none" | null), {
|
|
6513
6382
|
overrides?: {
|
|
6514
6383
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined;
|
|
6515
6384
|
};
|
|
6516
|
-
}];
|
|
6517
|
-
// ----- padded-blocks -----
|
|
6385
|
+
}]; // ----- padded-blocks -----
|
|
6518
6386
|
type PaddedBlocks = [] | [(("always" | "never") | {
|
|
6519
6387
|
blocks?: ("always" | "never");
|
|
6520
6388
|
switches?: ("always" | "never");
|
|
@@ -6525,26 +6393,22 @@ type PaddedBlocks = [] | [(("always" | "never") | {
|
|
|
6525
6393
|
classes?: ("always" | "never");
|
|
6526
6394
|
}), {
|
|
6527
6395
|
allowSingleLineBlocks?: boolean;
|
|
6528
|
-
}];
|
|
6529
|
-
// ----- padding-line-between-statements -----
|
|
6396
|
+
}]; // ----- padding-line-between-statements -----
|
|
6530
6397
|
type _PaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
6531
6398
|
type _PaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "cjs-export" | "cjs-import" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with") | [("*" | "block-like" | "cjs-export" | "cjs-import" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with"), ...(("*" | "block-like" | "cjs-export" | "cjs-import" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with"))[]]);
|
|
6532
6399
|
type PaddingLineBetweenStatements = {
|
|
6533
6400
|
blankLine: _PaddingLineBetweenStatementsPaddingType;
|
|
6534
6401
|
prev: _PaddingLineBetweenStatementsStatementType;
|
|
6535
6402
|
next: _PaddingLineBetweenStatementsStatementType;
|
|
6536
|
-
}[];
|
|
6537
|
-
// ----- prefer-arrow-callback -----
|
|
6403
|
+
}[]; // ----- prefer-arrow-callback -----
|
|
6538
6404
|
type PreferArrowCallback = [] | [{
|
|
6539
6405
|
allowNamedFunctions?: boolean;
|
|
6540
6406
|
allowUnboundThis?: boolean;
|
|
6541
|
-
}];
|
|
6542
|
-
// ----- prefer-const -----
|
|
6407
|
+
}]; // ----- prefer-const -----
|
|
6543
6408
|
type PreferConst = [] | [{
|
|
6544
6409
|
destructuring?: ("any" | "all");
|
|
6545
6410
|
ignoreReadBeforeAssign?: boolean;
|
|
6546
|
-
}];
|
|
6547
|
-
// ----- prefer-destructuring -----
|
|
6411
|
+
}]; // ----- prefer-destructuring -----
|
|
6548
6412
|
type PreferDestructuring = [] | [({
|
|
6549
6413
|
VariableDeclarator?: {
|
|
6550
6414
|
array?: boolean;
|
|
@@ -6571,109 +6435,87 @@ type PreferDestructuring = [] | [({
|
|
|
6571
6435
|
object?: boolean;
|
|
6572
6436
|
}), {
|
|
6573
6437
|
enforceForRenamedProperties?: boolean;
|
|
6574
|
-
}];
|
|
6575
|
-
// ----- prefer-promise-reject-errors -----
|
|
6438
|
+
}]; // ----- prefer-promise-reject-errors -----
|
|
6576
6439
|
type PreferPromiseRejectErrors = [] | [{
|
|
6577
6440
|
allowEmptyReject?: boolean;
|
|
6578
|
-
}];
|
|
6579
|
-
// ----- prefer-reflect -----
|
|
6441
|
+
}]; // ----- prefer-reflect -----
|
|
6580
6442
|
type PreferReflect = [] | [{
|
|
6581
6443
|
exceptions?: ("apply" | "call" | "delete" | "defineProperty" | "getOwnPropertyDescriptor" | "getPrototypeOf" | "setPrototypeOf" | "isExtensible" | "getOwnPropertyNames" | "preventExtensions")[];
|
|
6582
|
-
}];
|
|
6583
|
-
// ----- prefer-regex-literals -----
|
|
6444
|
+
}]; // ----- prefer-regex-literals -----
|
|
6584
6445
|
type PreferRegexLiterals = [] | [{
|
|
6585
6446
|
disallowRedundantWrapping?: boolean;
|
|
6586
|
-
}];
|
|
6587
|
-
// ----- preserve-caught-error -----
|
|
6447
|
+
}]; // ----- preserve-caught-error -----
|
|
6588
6448
|
type PreserveCaughtError = [] | [{
|
|
6589
6449
|
requireCatchParameter?: boolean;
|
|
6590
|
-
}];
|
|
6591
|
-
// ----- quote-props -----
|
|
6450
|
+
}]; // ----- quote-props -----
|
|
6592
6451
|
type QuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
6593
6452
|
keywords?: boolean;
|
|
6594
6453
|
unnecessary?: boolean;
|
|
6595
6454
|
numbers?: boolean;
|
|
6596
|
-
}]);
|
|
6597
|
-
// ----- quotes -----
|
|
6455
|
+
}]); // ----- quotes -----
|
|
6598
6456
|
type Quotes = [] | [("single" | "double" | "backtick")] | [("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
6599
6457
|
avoidEscape?: boolean;
|
|
6600
6458
|
allowTemplateLiterals?: boolean;
|
|
6601
|
-
})];
|
|
6602
|
-
// -----
|
|
6603
|
-
type Radix = [] | [("always" | "as-needed")];
|
|
6604
|
-
// ----- require-atomic-updates -----
|
|
6459
|
+
})]; // ----- radix -----
|
|
6460
|
+
type Radix = [] | [("always" | "as-needed")]; // ----- require-atomic-updates -----
|
|
6605
6461
|
type RequireAtomicUpdates = [] | [{
|
|
6606
6462
|
allowProperties?: boolean;
|
|
6607
|
-
}];
|
|
6608
|
-
// ----- require-unicode-regexp -----
|
|
6463
|
+
}]; // ----- require-unicode-regexp -----
|
|
6609
6464
|
type RequireUnicodeRegexp = [] | [{
|
|
6610
6465
|
requireFlag?: ("u" | "v");
|
|
6611
|
-
}];
|
|
6612
|
-
// -----
|
|
6613
|
-
type RestSpreadSpacing = [] | [("always" | "never")];
|
|
6614
|
-
// ----- semi -----
|
|
6466
|
+
}]; // ----- rest-spread-spacing -----
|
|
6467
|
+
type RestSpreadSpacing = [] | [("always" | "never")]; // ----- semi -----
|
|
6615
6468
|
type Semi = ([] | ["never"] | ["never", {
|
|
6616
6469
|
beforeStatementContinuationChars?: ("always" | "any" | "never");
|
|
6617
6470
|
}] | [] | ["always"] | ["always", {
|
|
6618
6471
|
omitLastInOneLineBlock?: boolean;
|
|
6619
6472
|
omitLastInOneLineClassBody?: boolean;
|
|
6620
|
-
}]);
|
|
6621
|
-
// ----- semi-spacing -----
|
|
6473
|
+
}]); // ----- semi-spacing -----
|
|
6622
6474
|
type SemiSpacing = [] | [{
|
|
6623
6475
|
before?: boolean;
|
|
6624
6476
|
after?: boolean;
|
|
6625
|
-
}];
|
|
6626
|
-
// -----
|
|
6627
|
-
type SemiStyle = [] | [("last" | "first")];
|
|
6628
|
-
// ----- sort-imports -----
|
|
6477
|
+
}]; // ----- semi-style -----
|
|
6478
|
+
type SemiStyle = [] | [("last" | "first")]; // ----- sort-imports -----
|
|
6629
6479
|
type SortImports = [] | [{
|
|
6630
6480
|
ignoreCase?: boolean;
|
|
6631
6481
|
memberSyntaxSortOrder?: [("none" | "all" | "multiple" | "single"), ("none" | "all" | "multiple" | "single"), ("none" | "all" | "multiple" | "single"), ("none" | "all" | "multiple" | "single")];
|
|
6632
6482
|
ignoreDeclarationSort?: boolean;
|
|
6633
6483
|
ignoreMemberSort?: boolean;
|
|
6634
6484
|
allowSeparatedGroups?: boolean;
|
|
6635
|
-
}];
|
|
6636
|
-
// ----- sort-keys -----
|
|
6485
|
+
}]; // ----- sort-keys -----
|
|
6637
6486
|
type SortKeys = [] | [("asc" | "desc")] | [("asc" | "desc"), {
|
|
6638
6487
|
caseSensitive?: boolean;
|
|
6639
6488
|
natural?: boolean;
|
|
6640
6489
|
minKeys?: number;
|
|
6641
6490
|
allowLineSeparatedGroups?: boolean;
|
|
6642
6491
|
ignoreComputedKeys?: boolean;
|
|
6643
|
-
}];
|
|
6644
|
-
// ----- sort-vars -----
|
|
6492
|
+
}]; // ----- sort-vars -----
|
|
6645
6493
|
type SortVars = [] | [{
|
|
6646
6494
|
ignoreCase?: boolean;
|
|
6647
|
-
}];
|
|
6648
|
-
// ----- space-before-blocks -----
|
|
6495
|
+
}]; // ----- space-before-blocks -----
|
|
6649
6496
|
type SpaceBeforeBlocks = [] | [(("always" | "never") | {
|
|
6650
6497
|
keywords?: ("always" | "never" | "off");
|
|
6651
6498
|
functions?: ("always" | "never" | "off");
|
|
6652
6499
|
classes?: ("always" | "never" | "off");
|
|
6653
|
-
})];
|
|
6654
|
-
// ----- space-before-function-paren -----
|
|
6500
|
+
})]; // ----- space-before-function-paren -----
|
|
6655
6501
|
type SpaceBeforeFunctionParen = [] | [(("always" | "never") | {
|
|
6656
6502
|
anonymous?: ("always" | "never" | "ignore");
|
|
6657
6503
|
named?: ("always" | "never" | "ignore");
|
|
6658
6504
|
asyncArrow?: ("always" | "never" | "ignore");
|
|
6659
|
-
})];
|
|
6660
|
-
// ----- space-in-parens -----
|
|
6505
|
+
})]; // ----- space-in-parens -----
|
|
6661
6506
|
type SpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
6662
6507
|
exceptions?: ("{}" | "[]" | "()" | "empty")[];
|
|
6663
|
-
}];
|
|
6664
|
-
// ----- space-infix-ops -----
|
|
6508
|
+
}]; // ----- space-infix-ops -----
|
|
6665
6509
|
type SpaceInfixOps = [] | [{
|
|
6666
6510
|
int32Hint?: boolean;
|
|
6667
|
-
}];
|
|
6668
|
-
// ----- space-unary-ops -----
|
|
6511
|
+
}]; // ----- space-unary-ops -----
|
|
6669
6512
|
type SpaceUnaryOps = [] | [{
|
|
6670
6513
|
words?: boolean;
|
|
6671
6514
|
nonwords?: boolean;
|
|
6672
6515
|
overrides?: {
|
|
6673
6516
|
[k: string]: boolean | undefined;
|
|
6674
6517
|
};
|
|
6675
|
-
}];
|
|
6676
|
-
// ----- spaced-comment -----
|
|
6518
|
+
}]; // ----- spaced-comment -----
|
|
6677
6519
|
type SpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
6678
6520
|
exceptions?: string[];
|
|
6679
6521
|
markers?: string[];
|
|
@@ -6686,21 +6528,17 @@ type SpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
6686
6528
|
markers?: string[];
|
|
6687
6529
|
balanced?: boolean;
|
|
6688
6530
|
};
|
|
6689
|
-
}];
|
|
6690
|
-
// -----
|
|
6691
|
-
type Strict = [] | [("never" | "global" | "function" | "safe")];
|
|
6692
|
-
// ----- style/array-bracket-newline -----
|
|
6531
|
+
}]; // ----- strict -----
|
|
6532
|
+
type Strict = [] | [("never" | "global" | "function" | "safe")]; // ----- style/array-bracket-newline -----
|
|
6693
6533
|
type StyleArrayBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
6694
6534
|
multiline?: boolean;
|
|
6695
6535
|
minItems?: (number | null);
|
|
6696
|
-
})];
|
|
6697
|
-
// ----- style/array-bracket-spacing -----
|
|
6536
|
+
})]; // ----- style/array-bracket-spacing -----
|
|
6698
6537
|
type StyleArrayBracketSpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
6699
6538
|
singleValue?: boolean;
|
|
6700
6539
|
objectsInArrays?: boolean;
|
|
6701
6540
|
arraysInArrays?: boolean;
|
|
6702
|
-
}];
|
|
6703
|
-
// ----- style/array-element-newline -----
|
|
6541
|
+
}]; // ----- style/array-element-newline -----
|
|
6704
6542
|
type StyleArrayElementNewline = [] | [(_StyleArrayElementNewlineBasicConfig | {
|
|
6705
6543
|
ArrayExpression?: _StyleArrayElementNewlineBasicConfig;
|
|
6706
6544
|
ArrayPattern?: _StyleArrayElementNewlineBasicConfig;
|
|
@@ -6709,23 +6547,18 @@ type _StyleArrayElementNewlineBasicConfig = (("always" | "never" | "consistent")
|
|
|
6709
6547
|
consistent?: boolean;
|
|
6710
6548
|
multiline?: boolean;
|
|
6711
6549
|
minItems?: (number | null);
|
|
6712
|
-
});
|
|
6713
|
-
// ----- style/arrow-parens -----
|
|
6550
|
+
}); // ----- style/arrow-parens -----
|
|
6714
6551
|
type StyleArrowParens = [] | [("always" | "as-needed")] | [("always" | "as-needed"), {
|
|
6715
6552
|
requireForBlockBody?: boolean;
|
|
6716
|
-
}];
|
|
6717
|
-
// ----- style/arrow-spacing -----
|
|
6553
|
+
}]; // ----- style/arrow-spacing -----
|
|
6718
6554
|
type StyleArrowSpacing = [] | [{
|
|
6719
6555
|
before?: boolean;
|
|
6720
6556
|
after?: boolean;
|
|
6721
|
-
}];
|
|
6722
|
-
// ----- style/
|
|
6723
|
-
type StyleBlockSpacing = [] | [("always" | "never")];
|
|
6724
|
-
// ----- style/brace-style -----
|
|
6557
|
+
}]; // ----- style/block-spacing -----
|
|
6558
|
+
type StyleBlockSpacing = [] | [("always" | "never")]; // ----- style/brace-style -----
|
|
6725
6559
|
type StyleBraceStyle = [] | [("1tbs" | "stroustrup" | "allman")] | [("1tbs" | "stroustrup" | "allman"), {
|
|
6726
6560
|
allowSingleLine?: boolean;
|
|
6727
|
-
}];
|
|
6728
|
-
// ----- style/comma-dangle -----
|
|
6561
|
+
}]; // ----- style/comma-dangle -----
|
|
6729
6562
|
type StyleCommaDangle = [] | [(_StyleCommaDangleValue | {
|
|
6730
6563
|
arrays?: _StyleCommaDangleValueWithIgnore;
|
|
6731
6564
|
objects?: _StyleCommaDangleValueWithIgnore;
|
|
@@ -6739,23 +6572,19 @@ type StyleCommaDangle = [] | [(_StyleCommaDangleValue | {
|
|
|
6739
6572
|
tuples?: _StyleCommaDangleValueWithIgnore;
|
|
6740
6573
|
})];
|
|
6741
6574
|
type _StyleCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline");
|
|
6742
|
-
type _StyleCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore");
|
|
6743
|
-
// ----- style/comma-spacing -----
|
|
6575
|
+
type _StyleCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore"); // ----- style/comma-spacing -----
|
|
6744
6576
|
type StyleCommaSpacing = [] | [{
|
|
6745
6577
|
before?: boolean;
|
|
6746
6578
|
after?: boolean;
|
|
6747
|
-
}];
|
|
6748
|
-
// ----- style/comma-style -----
|
|
6579
|
+
}]; // ----- style/comma-style -----
|
|
6749
6580
|
type StyleCommaStyle = [] | [("first" | "last")] | [("first" | "last"), {
|
|
6750
6581
|
exceptions?: {
|
|
6751
6582
|
[k: string]: boolean | undefined;
|
|
6752
6583
|
};
|
|
6753
|
-
}];
|
|
6754
|
-
// ----- style/computed-property-spacing -----
|
|
6584
|
+
}]; // ----- style/computed-property-spacing -----
|
|
6755
6585
|
type StyleComputedPropertySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
6756
6586
|
enforceForClassMembers?: boolean;
|
|
6757
|
-
}];
|
|
6758
|
-
// ----- style/curly-newline -----
|
|
6587
|
+
}]; // ----- style/curly-newline -----
|
|
6759
6588
|
type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
6760
6589
|
IfStatementConsequent?: (("always" | "never") | {
|
|
6761
6590
|
multiline?: boolean;
|
|
@@ -6865,20 +6694,26 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
6865
6694
|
multiline?: boolean;
|
|
6866
6695
|
minElements?: number;
|
|
6867
6696
|
consistent?: boolean;
|
|
6868
|
-
})];
|
|
6869
|
-
// ----- style/
|
|
6870
|
-
type
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6697
|
+
})]; // ----- style/dot-location -----
|
|
6698
|
+
type StyleDotLocation = [] | [("object" | "property")]; // ----- style/eol-last -----
|
|
6699
|
+
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- style/exp-jsx-props-style -----
|
|
6700
|
+
type StyleExpJsxPropsStyle = [] | [{
|
|
6701
|
+
singleLine?: {
|
|
6702
|
+
maxItems?: number;
|
|
6703
|
+
};
|
|
6704
|
+
multiLine?: {
|
|
6705
|
+
minItems?: number;
|
|
6706
|
+
maxItemsPerLine?: number;
|
|
6707
|
+
};
|
|
6708
|
+
}]; // ----- style/exp-list-style -----
|
|
6874
6709
|
type StyleExpListStyle = [] | [{
|
|
6875
6710
|
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
6876
6711
|
multiLine?: _StyleExpListStyle_MultiLineConfig;
|
|
6877
6712
|
overrides?: {
|
|
6713
|
+
"()"?: _StyleExpListStyle_BaseConfig;
|
|
6878
6714
|
"[]"?: _StyleExpListStyle_BaseConfig;
|
|
6879
6715
|
"{}"?: _StyleExpListStyle_BaseConfig;
|
|
6880
6716
|
"<>"?: _StyleExpListStyle_BaseConfig;
|
|
6881
|
-
"()"?: _StyleExpListStyle_BaseConfig;
|
|
6882
6717
|
ArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
6883
6718
|
ArrayPattern?: _StyleExpListStyle_BaseConfig;
|
|
6884
6719
|
ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
@@ -6886,21 +6721,22 @@ type StyleExpListStyle = [] | [{
|
|
|
6886
6721
|
ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
6887
6722
|
FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
6888
6723
|
FunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
6889
|
-
|
|
6724
|
+
IfStatement?: _StyleExpListStyle_BaseConfig;
|
|
6890
6725
|
ImportAttributes?: _StyleExpListStyle_BaseConfig;
|
|
6726
|
+
ImportDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
6727
|
+
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
6728
|
+
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
6891
6729
|
NewExpression?: _StyleExpListStyle_BaseConfig;
|
|
6892
6730
|
ObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
6893
6731
|
ObjectPattern?: _StyleExpListStyle_BaseConfig;
|
|
6894
6732
|
TSDeclareFunction?: _StyleExpListStyle_BaseConfig;
|
|
6733
|
+
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
6895
6734
|
TSFunctionType?: _StyleExpListStyle_BaseConfig;
|
|
6896
6735
|
TSInterfaceBody?: _StyleExpListStyle_BaseConfig;
|
|
6897
|
-
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
6898
6736
|
TSTupleType?: _StyleExpListStyle_BaseConfig;
|
|
6899
6737
|
TSTypeLiteral?: _StyleExpListStyle_BaseConfig;
|
|
6900
6738
|
TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
6901
6739
|
TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig;
|
|
6902
|
-
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
6903
|
-
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
6904
6740
|
};
|
|
6905
6741
|
}];
|
|
6906
6742
|
interface _StyleExpListStyle_SingleLineConfig {
|
|
@@ -6913,22 +6749,18 @@ interface _StyleExpListStyle_MultiLineConfig {
|
|
|
6913
6749
|
interface _StyleExpListStyle_BaseConfig {
|
|
6914
6750
|
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
6915
6751
|
multiline?: _StyleExpListStyle_MultiLineConfig;
|
|
6916
|
-
}
|
|
6917
|
-
// ----- style/function-call-
|
|
6918
|
-
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
|
|
6919
|
-
// ----- style/function-call-spacing -----
|
|
6752
|
+
} // ----- style/function-call-argument-newline -----
|
|
6753
|
+
type StyleFunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")]; // ----- style/function-call-spacing -----
|
|
6920
6754
|
type StyleFunctionCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
6921
6755
|
allowNewlines?: boolean;
|
|
6922
6756
|
optionalChain?: {
|
|
6923
6757
|
before?: boolean;
|
|
6924
6758
|
after?: boolean;
|
|
6925
6759
|
};
|
|
6926
|
-
}]);
|
|
6927
|
-
// ----- style/function-paren-newline -----
|
|
6760
|
+
}]); // ----- style/function-paren-newline -----
|
|
6928
6761
|
type StyleFunctionParenNewline = [] | [(("always" | "never" | "consistent" | "multiline" | "multiline-arguments") | {
|
|
6929
6762
|
minItems?: number;
|
|
6930
|
-
})];
|
|
6931
|
-
// ----- style/generator-star-spacing -----
|
|
6763
|
+
})]; // ----- style/generator-star-spacing -----
|
|
6932
6764
|
type StyleGeneratorStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
6933
6765
|
before?: boolean;
|
|
6934
6766
|
after?: boolean;
|
|
@@ -6948,10 +6780,8 @@ type StyleGeneratorStarSpacing = [] | [(("before" | "after" | "both" | "neither"
|
|
|
6948
6780
|
before?: boolean;
|
|
6949
6781
|
after?: boolean;
|
|
6950
6782
|
});
|
|
6951
|
-
})];
|
|
6952
|
-
// ----- style/
|
|
6953
|
-
type StyleImplicitArrowLinebreak = [] | [("beside" | "below")];
|
|
6954
|
-
// ----- style/indent -----
|
|
6783
|
+
})]; // ----- style/implicit-arrow-linebreak -----
|
|
6784
|
+
type StyleImplicitArrowLinebreak = [] | [("beside" | "below")]; // ----- style/indent -----
|
|
6955
6785
|
type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
6956
6786
|
SwitchCase?: number;
|
|
6957
6787
|
VariableDeclarator?: ((number | ("first" | "off")) | {
|
|
@@ -6992,30 +6822,24 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
6992
6822
|
ignoredNodes?: string[];
|
|
6993
6823
|
ignoreComments?: boolean;
|
|
6994
6824
|
tabLength?: number;
|
|
6995
|
-
}];
|
|
6996
|
-
// ----- style/
|
|
6997
|
-
type StyleIndentBinaryOps = [] | [(number | "tab")];
|
|
6998
|
-
// ----- style/jsx-closing-bracket-location -----
|
|
6825
|
+
}]; // ----- style/indent-binary-ops -----
|
|
6826
|
+
type StyleIndentBinaryOps = [] | [(number | "tab")]; // ----- style/jsx-closing-bracket-location -----
|
|
6999
6827
|
type StyleJsxClosingBracketLocation = [] | [(("after-props" | "props-aligned" | "tag-aligned" | "line-aligned") | {
|
|
7000
6828
|
location?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned");
|
|
7001
6829
|
} | {
|
|
7002
6830
|
nonEmpty?: (("after-props" | "props-aligned" | "tag-aligned" | "line-aligned") | false);
|
|
7003
6831
|
selfClosing?: (("after-props" | "props-aligned" | "tag-aligned" | "line-aligned") | false);
|
|
7004
|
-
})];
|
|
7005
|
-
// ----- style/jsx-
|
|
7006
|
-
type StyleJsxClosingTagLocation = [] | [("tag-aligned" | "line-aligned")];
|
|
7007
|
-
// ----- style/jsx-curly-brace-presence -----
|
|
6832
|
+
})]; // ----- style/jsx-closing-tag-location -----
|
|
6833
|
+
type StyleJsxClosingTagLocation = [] | [("tag-aligned" | "line-aligned")]; // ----- style/jsx-curly-brace-presence -----
|
|
7008
6834
|
type StyleJsxCurlyBracePresence = [] | [({
|
|
7009
6835
|
props?: ("always" | "never" | "ignore");
|
|
7010
6836
|
children?: ("always" | "never" | "ignore");
|
|
7011
6837
|
propElementValues?: ("always" | "never" | "ignore");
|
|
7012
|
-
} | ("always" | "never" | "ignore"))];
|
|
7013
|
-
// ----- style/jsx-curly-newline -----
|
|
6838
|
+
} | ("always" | "never" | "ignore"))]; // ----- style/jsx-curly-newline -----
|
|
7014
6839
|
type StyleJsxCurlyNewline = [] | [(("consistent" | "never") | {
|
|
7015
6840
|
singleline?: ("consistent" | "require" | "forbid");
|
|
7016
6841
|
multiline?: ("consistent" | "require" | "forbid");
|
|
7017
|
-
})];
|
|
7018
|
-
// ----- style/jsx-curly-spacing -----
|
|
6842
|
+
})]; // ----- style/jsx-curly-spacing -----
|
|
7019
6843
|
type StyleJsxCurlySpacing = [] | [({
|
|
7020
6844
|
when?: ("always" | "never");
|
|
7021
6845
|
allowMultiline?: boolean;
|
|
@@ -7061,24 +6885,18 @@ type StyleJsxCurlySpacing = [] | [({
|
|
|
7061
6885
|
spacing?: {
|
|
7062
6886
|
objectLiterals?: ("always" | "never");
|
|
7063
6887
|
};
|
|
7064
|
-
}];
|
|
7065
|
-
// ----- style/jsx-
|
|
7066
|
-
type
|
|
7067
|
-
// ----- style/jsx-
|
|
7068
|
-
type StyleJsxFirstPropNewLine = [] | [("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")];
|
|
7069
|
-
// ----- style/jsx-function-call-newline -----
|
|
7070
|
-
type StyleJsxFunctionCallNewline = [] | [("always" | "multiline")];
|
|
7071
|
-
// ----- style/jsx-indent -----
|
|
6888
|
+
}]; // ----- style/jsx-equals-spacing -----
|
|
6889
|
+
type StyleJsxEqualsSpacing = [] | [("always" | "never")]; // ----- style/jsx-first-prop-new-line -----
|
|
6890
|
+
type StyleJsxFirstPropNewLine = [] | [("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")]; // ----- style/jsx-function-call-newline -----
|
|
6891
|
+
type StyleJsxFunctionCallNewline = [] | [("always" | "multiline")]; // ----- style/jsx-indent -----
|
|
7072
6892
|
type StyleJsxIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
7073
6893
|
checkAttributes?: boolean;
|
|
7074
6894
|
indentLogicalExpressions?: boolean;
|
|
7075
|
-
}];
|
|
7076
|
-
// ----- style/jsx-indent-props -----
|
|
6895
|
+
}]; // ----- style/jsx-indent-props -----
|
|
7077
6896
|
type StyleJsxIndentProps = [] | [(("tab" | "first") | number | {
|
|
7078
6897
|
indentMode?: (("tab" | "first") | number);
|
|
7079
6898
|
ignoreTernaryOperator?: boolean;
|
|
7080
|
-
})];
|
|
7081
|
-
// ----- style/jsx-max-props-per-line -----
|
|
6899
|
+
})]; // ----- style/jsx-max-props-per-line -----
|
|
7082
6900
|
type StyleJsxMaxPropsPerLine = [] | [({
|
|
7083
6901
|
maximum?: {
|
|
7084
6902
|
single?: number;
|
|
@@ -7087,31 +6905,25 @@ type StyleJsxMaxPropsPerLine = [] | [({
|
|
|
7087
6905
|
} | {
|
|
7088
6906
|
maximum?: number;
|
|
7089
6907
|
when?: ("always" | "multiline");
|
|
7090
|
-
})];
|
|
7091
|
-
// ----- style/jsx-newline -----
|
|
6908
|
+
})]; // ----- style/jsx-newline -----
|
|
7092
6909
|
type StyleJsxNewline = [] | [{
|
|
7093
6910
|
prevent?: boolean;
|
|
7094
6911
|
allowMultilines?: boolean;
|
|
7095
|
-
}];
|
|
7096
|
-
// ----- style/jsx-one-expression-per-line -----
|
|
6912
|
+
}]; // ----- style/jsx-one-expression-per-line -----
|
|
7097
6913
|
type StyleJsxOneExpressionPerLine = [] | [{
|
|
7098
6914
|
allow?: ("none" | "literal" | "single-child" | "single-line" | "non-jsx");
|
|
7099
|
-
}];
|
|
7100
|
-
// ----- style/jsx-pascal-case -----
|
|
6915
|
+
}]; // ----- style/jsx-pascal-case -----
|
|
7101
6916
|
type StyleJsxPascalCase = [] | [{
|
|
7102
6917
|
allowAllCaps?: boolean;
|
|
7103
6918
|
allowLeadingUnderscore?: boolean;
|
|
7104
6919
|
allowNamespace?: boolean;
|
|
7105
6920
|
ignore?: string[];
|
|
7106
|
-
}];
|
|
7107
|
-
// ----- style/jsx-
|
|
7108
|
-
type StyleJsxQuotes = [] | [("prefer-single" | "prefer-double")];
|
|
7109
|
-
// ----- style/jsx-self-closing-comp -----
|
|
6921
|
+
}]; // ----- style/jsx-quotes -----
|
|
6922
|
+
type StyleJsxQuotes = [] | [("prefer-single" | "prefer-double")]; // ----- style/jsx-self-closing-comp -----
|
|
7110
6923
|
type StyleJsxSelfClosingComp = [] | [{
|
|
7111
6924
|
component?: boolean;
|
|
7112
6925
|
html?: boolean;
|
|
7113
|
-
}];
|
|
7114
|
-
// ----- style/jsx-sort-props -----
|
|
6926
|
+
}]; // ----- style/jsx-sort-props -----
|
|
7115
6927
|
type StyleJsxSortProps = [] | [{
|
|
7116
6928
|
callbacksLast?: boolean;
|
|
7117
6929
|
shorthandFirst?: boolean;
|
|
@@ -7122,15 +6934,13 @@ type StyleJsxSortProps = [] | [{
|
|
|
7122
6934
|
reservedFirst?: (string[] | boolean);
|
|
7123
6935
|
reservedLast?: string[];
|
|
7124
6936
|
locale?: string;
|
|
7125
|
-
}];
|
|
7126
|
-
// ----- style/jsx-tag-spacing -----
|
|
6937
|
+
}]; // ----- style/jsx-tag-spacing -----
|
|
7127
6938
|
type StyleJsxTagSpacing = [] | [{
|
|
7128
6939
|
closingSlash?: ("always" | "never" | "allow");
|
|
7129
6940
|
beforeSelfClosing?: ("always" | "proportional-always" | "never" | "allow");
|
|
7130
6941
|
afterOpening?: ("always" | "allow-multiline" | "never" | "allow");
|
|
7131
6942
|
beforeClosing?: ("always" | "proportional-always" | "never" | "allow");
|
|
7132
|
-
}];
|
|
7133
|
-
// ----- style/jsx-wrap-multilines -----
|
|
6943
|
+
}]; // ----- style/jsx-wrap-multilines -----
|
|
7134
6944
|
type StyleJsxWrapMultilines = [] | [{
|
|
7135
6945
|
declaration?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"));
|
|
7136
6946
|
assignment?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"));
|
|
@@ -7140,8 +6950,7 @@ type StyleJsxWrapMultilines = [] | [{
|
|
|
7140
6950
|
logical?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"));
|
|
7141
6951
|
prop?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"));
|
|
7142
6952
|
propertyValue?: ((true | false | "ignore" | "parens" | "parens-new-line") | (true | false | "ignore" | "parens" | "parens-new-line"));
|
|
7143
|
-
}];
|
|
7144
|
-
// ----- style/key-spacing -----
|
|
6953
|
+
}]; // ----- style/key-spacing -----
|
|
7145
6954
|
type StyleKeySpacing = [] | [({
|
|
7146
6955
|
align?: (("colon" | "value") | {
|
|
7147
6956
|
mode?: ("strict" | "minimum");
|
|
@@ -7187,8 +6996,7 @@ type StyleKeySpacing = [] | [({
|
|
|
7187
6996
|
beforeColon?: boolean;
|
|
7188
6997
|
afterColon?: boolean;
|
|
7189
6998
|
};
|
|
7190
|
-
})];
|
|
7191
|
-
// ----- style/keyword-spacing -----
|
|
6999
|
+
})]; // ----- style/keyword-spacing -----
|
|
7192
7000
|
type StyleKeywordSpacing = [] | [{
|
|
7193
7001
|
before?: boolean;
|
|
7194
7002
|
after?: boolean;
|
|
@@ -7490,17 +7298,14 @@ type StyleKeywordSpacing = [] | [{
|
|
|
7490
7298
|
after?: boolean;
|
|
7491
7299
|
};
|
|
7492
7300
|
};
|
|
7493
|
-
}];
|
|
7494
|
-
// ----- style/line-comment-position -----
|
|
7301
|
+
}]; // ----- style/line-comment-position -----
|
|
7495
7302
|
type StyleLineCommentPosition = [] | [(("above" | "beside") | {
|
|
7496
7303
|
position?: ("above" | "beside");
|
|
7497
7304
|
ignorePattern?: string;
|
|
7498
7305
|
applyDefaultPatterns?: boolean;
|
|
7499
7306
|
applyDefaultIgnorePatterns?: boolean;
|
|
7500
|
-
})];
|
|
7501
|
-
// ----- style/
|
|
7502
|
-
type StyleLinebreakStyle = [] | [("unix" | "windows")];
|
|
7503
|
-
// ----- style/lines-around-comment -----
|
|
7307
|
+
})]; // ----- style/linebreak-style -----
|
|
7308
|
+
type StyleLinebreakStyle = [] | [("unix" | "windows")]; // ----- style/lines-around-comment -----
|
|
7504
7309
|
type StyleLinesAroundComment = [] | [{
|
|
7505
7310
|
beforeBlockComment?: boolean;
|
|
7506
7311
|
afterBlockComment?: boolean;
|
|
@@ -7525,8 +7330,7 @@ type StyleLinesAroundComment = [] | [{
|
|
|
7525
7330
|
ignorePattern?: string;
|
|
7526
7331
|
applyDefaultIgnorePatterns?: boolean;
|
|
7527
7332
|
afterHashbangComment?: boolean;
|
|
7528
|
-
}];
|
|
7529
|
-
// ----- style/lines-between-class-members -----
|
|
7333
|
+
}]; // ----- style/lines-between-class-members -----
|
|
7530
7334
|
type StyleLinesBetweenClassMembers = [] | [({
|
|
7531
7335
|
enforce: [{
|
|
7532
7336
|
blankLine: ("always" | "never");
|
|
@@ -7550,8 +7354,7 @@ type StyleLinesBetweenClassMembers = [] | [({
|
|
|
7550
7354
|
} | ("always" | "never")), {
|
|
7551
7355
|
exceptAfterSingleLine?: boolean;
|
|
7552
7356
|
exceptAfterOverload?: boolean;
|
|
7553
|
-
}];
|
|
7554
|
-
// ----- style/max-len -----
|
|
7357
|
+
}]; // ----- style/max-len -----
|
|
7555
7358
|
type StyleMaxLen = [] | [({
|
|
7556
7359
|
code?: number;
|
|
7557
7360
|
comments?: number;
|
|
@@ -7618,13 +7421,11 @@ type StyleMaxLen = [] | [({
|
|
|
7618
7421
|
ignoreTemplateLiterals?: boolean;
|
|
7619
7422
|
ignoreRegExpLiterals?: boolean;
|
|
7620
7423
|
ignoreTrailingComments?: boolean;
|
|
7621
|
-
}];
|
|
7622
|
-
// ----- style/max-statements-per-line -----
|
|
7424
|
+
}]; // ----- style/max-statements-per-line -----
|
|
7623
7425
|
type StyleMaxStatementsPerLine = [] | [{
|
|
7624
7426
|
max?: number;
|
|
7625
7427
|
ignoredNodes?: ("BreakStatement" | "ClassDeclaration" | "ContinueStatement" | "DebuggerStatement" | "DoWhileStatement" | "ExpressionStatement" | "ForInStatement" | "ForOfStatement" | "ForStatement" | "FunctionDeclaration" | "IfStatement" | "ImportDeclaration" | "LabeledStatement" | "ReturnStatement" | "SwitchStatement" | "ThrowStatement" | "TryStatement" | "VariableDeclaration" | "WhileStatement" | "WithStatement" | "ExportNamedDeclaration" | "ExportDefaultDeclaration" | "ExportAllDeclaration")[];
|
|
7626
|
-
}];
|
|
7627
|
-
// ----- style/member-delimiter-style -----
|
|
7428
|
+
}]; // ----- style/member-delimiter-style -----
|
|
7628
7429
|
type StyleMemberDelimiterStyle = [] | [{
|
|
7629
7430
|
multiline?: {
|
|
7630
7431
|
delimiter?: ("none" | "semi" | "comma");
|
|
@@ -7649,28 +7450,22 @@ interface _StyleMemberDelimiterStyle_DelimiterConfig {
|
|
|
7649
7450
|
delimiter?: ("semi" | "comma");
|
|
7650
7451
|
requireLast?: boolean;
|
|
7651
7452
|
};
|
|
7652
|
-
}
|
|
7653
|
-
// ----- style/multiline-comment-style -----
|
|
7453
|
+
} // ----- style/multiline-comment-style -----
|
|
7654
7454
|
type StyleMultilineCommentStyle = ([] | [("starred-block" | "bare-block")] | [] | ["separate-lines"] | ["separate-lines", {
|
|
7655
7455
|
checkJSDoc?: boolean;
|
|
7656
7456
|
checkExclamation?: boolean;
|
|
7657
|
-
}]);
|
|
7658
|
-
// ----- style/multiline-ternary -----
|
|
7457
|
+
}]); // ----- style/multiline-ternary -----
|
|
7659
7458
|
type StyleMultilineTernary = [] | [("always" | "always-multiline" | "never")] | [("always" | "always-multiline" | "never"), {
|
|
7660
7459
|
ignoreJSX?: boolean;
|
|
7661
|
-
}];
|
|
7662
|
-
// ----- style/
|
|
7663
|
-
type StyleNewParens = [] | [("always" | "never")];
|
|
7664
|
-
// ----- style/newline-per-chained-call -----
|
|
7460
|
+
}]; // ----- style/new-parens -----
|
|
7461
|
+
type StyleNewParens = [] | [("always" | "never")]; // ----- style/newline-per-chained-call -----
|
|
7665
7462
|
type StyleNewlinePerChainedCall = [] | [{
|
|
7666
7463
|
ignoreChainWithDepth?: number;
|
|
7667
|
-
}];
|
|
7668
|
-
// ----- style/no-confusing-arrow -----
|
|
7464
|
+
}]; // ----- style/no-confusing-arrow -----
|
|
7669
7465
|
type StyleNoConfusingArrow = [] | [{
|
|
7670
7466
|
allowParens?: boolean;
|
|
7671
7467
|
onlyOneSimpleParam?: boolean;
|
|
7672
|
-
}];
|
|
7673
|
-
// ----- style/no-extra-parens -----
|
|
7468
|
+
}]; // ----- style/no-extra-parens -----
|
|
7674
7469
|
type StyleNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
7675
7470
|
conditionalAssign?: boolean;
|
|
7676
7471
|
ternaryOperandBinaryExpressions?: boolean;
|
|
@@ -7689,38 +7484,31 @@ type StyleNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
7689
7484
|
AwaitExpression?: boolean;
|
|
7690
7485
|
};
|
|
7691
7486
|
ignoredNodes?: string[];
|
|
7692
|
-
}]);
|
|
7693
|
-
// ----- style/no-mixed-operators -----
|
|
7487
|
+
}]); // ----- style/no-mixed-operators -----
|
|
7694
7488
|
type StyleNoMixedOperators = [] | [{
|
|
7695
7489
|
groups?: [("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ...(("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"))[]][];
|
|
7696
7490
|
allowSamePrecedence?: boolean;
|
|
7697
|
-
}];
|
|
7698
|
-
// ----- style/no-
|
|
7699
|
-
type StyleNoMixedSpacesAndTabs = [] | [("smart-tabs" | boolean)];
|
|
7700
|
-
// ----- style/no-multi-spaces -----
|
|
7491
|
+
}]; // ----- style/no-mixed-spaces-and-tabs -----
|
|
7492
|
+
type StyleNoMixedSpacesAndTabs = [] | [("smart-tabs" | boolean)]; // ----- style/no-multi-spaces -----
|
|
7701
7493
|
type StyleNoMultiSpaces = [] | [{
|
|
7702
7494
|
exceptions?: {
|
|
7703
7495
|
[k: string]: boolean;
|
|
7704
7496
|
};
|
|
7705
7497
|
ignoreEOLComments?: boolean;
|
|
7706
7498
|
includeTabs?: boolean;
|
|
7707
|
-
}];
|
|
7708
|
-
// ----- style/no-multiple-empty-lines -----
|
|
7499
|
+
}]; // ----- style/no-multiple-empty-lines -----
|
|
7709
7500
|
type StyleNoMultipleEmptyLines = [] | [{
|
|
7710
7501
|
max: number;
|
|
7711
7502
|
maxEOF?: number;
|
|
7712
7503
|
maxBOF?: number;
|
|
7713
|
-
}];
|
|
7714
|
-
// ----- style/no-tabs -----
|
|
7504
|
+
}]; // ----- style/no-tabs -----
|
|
7715
7505
|
type StyleNoTabs = [] | [{
|
|
7716
7506
|
allowIndentationTabs?: boolean;
|
|
7717
|
-
}];
|
|
7718
|
-
// ----- style/no-trailing-spaces -----
|
|
7507
|
+
}]; // ----- style/no-trailing-spaces -----
|
|
7719
7508
|
type StyleNoTrailingSpaces = [] | [{
|
|
7720
7509
|
skipBlankLines?: boolean;
|
|
7721
7510
|
ignoreComments?: boolean;
|
|
7722
|
-
}];
|
|
7723
|
-
// ----- style/nonblock-statement-body-position -----
|
|
7511
|
+
}]; // ----- style/nonblock-statement-body-position -----
|
|
7724
7512
|
type StyleNonblockStatementBodyPosition = [] | [("beside" | "below" | "any")] | [("beside" | "below" | "any"), {
|
|
7725
7513
|
overrides?: {
|
|
7726
7514
|
if?: ("beside" | "below" | "any");
|
|
@@ -7729,8 +7517,7 @@ type StyleNonblockStatementBodyPosition = [] | [("beside" | "below" | "any")] |
|
|
|
7729
7517
|
do?: ("beside" | "below" | "any");
|
|
7730
7518
|
for?: ("beside" | "below" | "any");
|
|
7731
7519
|
};
|
|
7732
|
-
}];
|
|
7733
|
-
// ----- style/object-curly-newline -----
|
|
7520
|
+
}]; // ----- style/object-curly-newline -----
|
|
7734
7521
|
type StyleObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
7735
7522
|
multiline?: boolean;
|
|
7736
7523
|
minProperties?: number;
|
|
@@ -7771,8 +7558,7 @@ type StyleObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
7771
7558
|
minProperties?: number;
|
|
7772
7559
|
consistent?: boolean;
|
|
7773
7560
|
});
|
|
7774
|
-
})];
|
|
7775
|
-
// ----- style/object-curly-spacing -----
|
|
7561
|
+
})]; // ----- style/object-curly-spacing -----
|
|
7776
7562
|
type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
7777
7563
|
arraysInObjects?: boolean;
|
|
7778
7564
|
objectsInObjects?: boolean;
|
|
@@ -7789,20 +7575,16 @@ type StyleObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never
|
|
|
7789
7575
|
TSEnumBody?: ("always" | "never");
|
|
7790
7576
|
};
|
|
7791
7577
|
emptyObjects?: ("ignore" | "always" | "never");
|
|
7792
|
-
}];
|
|
7793
|
-
// ----- style/object-property-newline -----
|
|
7578
|
+
}]; // ----- style/object-property-newline -----
|
|
7794
7579
|
type StyleObjectPropertyNewline = [] | [{
|
|
7795
7580
|
allowAllPropertiesOnSameLine?: boolean;
|
|
7796
|
-
}];
|
|
7797
|
-
// ----- style/
|
|
7798
|
-
type StyleOneVarDeclarationPerLine = [] | [("always" | "initializations")];
|
|
7799
|
-
// ----- style/operator-linebreak -----
|
|
7581
|
+
}]; // ----- style/one-var-declaration-per-line -----
|
|
7582
|
+
type StyleOneVarDeclarationPerLine = [] | [("always" | "initializations")]; // ----- style/operator-linebreak -----
|
|
7800
7583
|
type StyleOperatorLinebreak = [] | [(("after" | "before" | "none") | null)] | [(("after" | "before" | "none") | null), {
|
|
7801
7584
|
overrides?: {
|
|
7802
7585
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined;
|
|
7803
7586
|
};
|
|
7804
|
-
}];
|
|
7805
|
-
// ----- style/padded-blocks -----
|
|
7587
|
+
}]; // ----- style/padded-blocks -----
|
|
7806
7588
|
type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
7807
7589
|
blocks?: ("always" | "never" | "start" | "end");
|
|
7808
7590
|
switches?: ("always" | "never" | "start" | "end");
|
|
@@ -7813,76 +7595,67 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
7813
7595
|
classes?: ("always" | "never" | "start" | "end");
|
|
7814
7596
|
}), {
|
|
7815
7597
|
allowSingleLineBlocks?: boolean;
|
|
7816
|
-
}];
|
|
7817
|
-
// ----- style/padding-line-between-statements -----
|
|
7598
|
+
}]; // ----- style/padding-line-between-statements -----
|
|
7818
7599
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
7819
|
-
type _StylePaddingLineBetweenStatementsStatementOption = (
|
|
7600
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementMatcher | [_StylePaddingLineBetweenStatementsStatementMatcher, ...(_StylePaddingLineBetweenStatementsStatementMatcher)[]]);
|
|
7601
|
+
type _StylePaddingLineBetweenStatementsStatementMatcher = (_StylePaddingLineBetweenStatementsStatementType | _StylePaddingLineBetweenStatements_SelectorOption);
|
|
7820
7602
|
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "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");
|
|
7821
7603
|
type StylePaddingLineBetweenStatements = {
|
|
7822
7604
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
7823
7605
|
prev: _StylePaddingLineBetweenStatementsStatementOption;
|
|
7824
7606
|
next: _StylePaddingLineBetweenStatementsStatementOption;
|
|
7825
7607
|
}[];
|
|
7826
|
-
|
|
7608
|
+
interface _StylePaddingLineBetweenStatements_SelectorOption {
|
|
7609
|
+
selector: string;
|
|
7610
|
+
} // ----- style/quote-props -----
|
|
7827
7611
|
type StyleQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
7828
7612
|
keywords?: boolean;
|
|
7829
7613
|
unnecessary?: boolean;
|
|
7830
7614
|
numbers?: boolean;
|
|
7831
|
-
}]);
|
|
7832
|
-
// ----- style/quotes -----
|
|
7615
|
+
}]); // ----- style/quotes -----
|
|
7833
7616
|
type StyleQuotes = [] | [("single" | "double" | "backtick")] | [("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
7834
7617
|
avoidEscape?: boolean;
|
|
7835
7618
|
allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"));
|
|
7836
7619
|
ignoreStringLiterals?: boolean;
|
|
7837
|
-
})];
|
|
7838
|
-
// ----- style/
|
|
7839
|
-
type StyleRestSpreadSpacing = [] | [("always" | "never")];
|
|
7840
|
-
// ----- style/semi -----
|
|
7620
|
+
})]; // ----- style/rest-spread-spacing -----
|
|
7621
|
+
type StyleRestSpreadSpacing = [] | [("always" | "never")]; // ----- style/semi -----
|
|
7841
7622
|
type StyleSemi = ([] | ["never"] | ["never", {
|
|
7842
7623
|
beforeStatementContinuationChars?: ("always" | "any" | "never");
|
|
7843
7624
|
}] | [] | ["always"] | ["always", {
|
|
7844
7625
|
omitLastInOneLineBlock?: boolean;
|
|
7845
7626
|
omitLastInOneLineClassBody?: boolean;
|
|
7846
|
-
}]);
|
|
7847
|
-
// ----- style/semi-spacing -----
|
|
7627
|
+
}]); // ----- style/semi-spacing -----
|
|
7848
7628
|
type StyleSemiSpacing = [] | [{
|
|
7849
7629
|
before?: boolean;
|
|
7850
7630
|
after?: boolean;
|
|
7851
|
-
}];
|
|
7852
|
-
// ----- style/
|
|
7853
|
-
type StyleSemiStyle = [] | [("last" | "first")];
|
|
7854
|
-
// ----- style/space-before-blocks -----
|
|
7631
|
+
}]; // ----- style/semi-style -----
|
|
7632
|
+
type StyleSemiStyle = [] | [("last" | "first")]; // ----- style/space-before-blocks -----
|
|
7855
7633
|
type StyleSpaceBeforeBlocks = [] | [(("always" | "never") | {
|
|
7856
7634
|
keywords?: ("always" | "never" | "off");
|
|
7857
7635
|
functions?: ("always" | "never" | "off");
|
|
7858
7636
|
classes?: ("always" | "never" | "off");
|
|
7859
7637
|
modules?: ("always" | "never" | "off");
|
|
7860
|
-
})];
|
|
7861
|
-
// ----- style/space-before-function-paren -----
|
|
7638
|
+
})]; // ----- style/space-before-function-paren -----
|
|
7862
7639
|
type StyleSpaceBeforeFunctionParen = [] | [(("always" | "never") | {
|
|
7863
7640
|
anonymous?: ("always" | "never" | "ignore");
|
|
7864
7641
|
named?: ("always" | "never" | "ignore");
|
|
7865
7642
|
asyncArrow?: ("always" | "never" | "ignore");
|
|
7866
7643
|
catch?: ("always" | "never" | "ignore");
|
|
7867
|
-
})];
|
|
7868
|
-
// ----- style/space-in-parens -----
|
|
7644
|
+
})]; // ----- style/space-in-parens -----
|
|
7869
7645
|
type StyleSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
7870
7646
|
exceptions?: ("{}" | "[]" | "()" | "empty")[];
|
|
7871
|
-
}];
|
|
7872
|
-
// ----- style/space-infix-ops -----
|
|
7647
|
+
}]; // ----- style/space-infix-ops -----
|
|
7873
7648
|
type StyleSpaceInfixOps = [] | [{
|
|
7874
7649
|
int32Hint?: boolean;
|
|
7875
7650
|
ignoreTypes?: boolean;
|
|
7876
|
-
}];
|
|
7877
|
-
// ----- style/space-unary-ops -----
|
|
7651
|
+
}]; // ----- style/space-unary-ops -----
|
|
7878
7652
|
type StyleSpaceUnaryOps = [] | [{
|
|
7879
7653
|
words?: boolean;
|
|
7880
7654
|
nonwords?: boolean;
|
|
7881
7655
|
overrides?: {
|
|
7882
7656
|
[k: string]: boolean | undefined;
|
|
7883
7657
|
};
|
|
7884
|
-
}];
|
|
7885
|
-
// ----- style/spaced-comment -----
|
|
7658
|
+
}]; // ----- style/spaced-comment -----
|
|
7886
7659
|
type StyleSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
7887
7660
|
exceptions?: string[];
|
|
7888
7661
|
markers?: string[];
|
|
@@ -7895,23 +7668,19 @@ type StyleSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
7895
7668
|
markers?: string[];
|
|
7896
7669
|
balanced?: boolean;
|
|
7897
7670
|
};
|
|
7898
|
-
}];
|
|
7899
|
-
// ----- style/switch-colon-spacing -----
|
|
7671
|
+
}]; // ----- style/switch-colon-spacing -----
|
|
7900
7672
|
type StyleSwitchColonSpacing = [] | [{
|
|
7901
7673
|
before?: boolean;
|
|
7902
7674
|
after?: boolean;
|
|
7903
|
-
}];
|
|
7904
|
-
// ----- style/template-
|
|
7905
|
-
type
|
|
7906
|
-
// ----- style/template-tag-spacing -----
|
|
7907
|
-
type StyleTemplateTagSpacing = [] | [("always" | "never")];
|
|
7908
|
-
// ----- style/type-annotation-spacing -----
|
|
7675
|
+
}]; // ----- style/template-curly-spacing -----
|
|
7676
|
+
type StyleTemplateCurlySpacing = [] | [("always" | "never")]; // ----- style/template-tag-spacing -----
|
|
7677
|
+
type StyleTemplateTagSpacing = [] | [("always" | "never")]; // ----- style/type-annotation-spacing -----
|
|
7909
7678
|
type StyleTypeAnnotationSpacing = [] | [{
|
|
7910
7679
|
before?: boolean;
|
|
7911
7680
|
after?: boolean;
|
|
7912
7681
|
overrides?: {
|
|
7913
7682
|
colon?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
7914
|
-
arrow?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
7683
|
+
arrow?: ("ignore" | _StyleTypeAnnotationSpacing_SpacingConfig);
|
|
7915
7684
|
variable?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
7916
7685
|
parameter?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
7917
7686
|
property?: _StyleTypeAnnotationSpacing_SpacingConfig;
|
|
@@ -7921,31 +7690,24 @@ type StyleTypeAnnotationSpacing = [] | [{
|
|
|
7921
7690
|
interface _StyleTypeAnnotationSpacing_SpacingConfig {
|
|
7922
7691
|
before?: boolean;
|
|
7923
7692
|
after?: boolean;
|
|
7924
|
-
}
|
|
7925
|
-
// ----- style/wrap-iife -----
|
|
7693
|
+
} // ----- style/wrap-iife -----
|
|
7926
7694
|
type StyleWrapIife = [] | [("outside" | "inside" | "any")] | [("outside" | "inside" | "any"), {
|
|
7927
7695
|
functionPrototypeMethods?: boolean;
|
|
7928
|
-
}];
|
|
7929
|
-
// ----- style/yield-star-spacing -----
|
|
7696
|
+
}]; // ----- style/yield-star-spacing -----
|
|
7930
7697
|
type StyleYieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
7931
7698
|
before?: boolean;
|
|
7932
7699
|
after?: boolean;
|
|
7933
|
-
})];
|
|
7934
|
-
// ----- switch-colon-spacing -----
|
|
7700
|
+
})]; // ----- switch-colon-spacing -----
|
|
7935
7701
|
type SwitchColonSpacing = [] | [{
|
|
7936
7702
|
before?: boolean;
|
|
7937
7703
|
after?: boolean;
|
|
7938
|
-
}];
|
|
7939
|
-
// ----- template-
|
|
7940
|
-
type
|
|
7941
|
-
// ----- template-tag-spacing -----
|
|
7942
|
-
type TemplateTagSpacing = [] | [("always" | "never")];
|
|
7943
|
-
// ----- ts/array-type -----
|
|
7704
|
+
}]; // ----- template-curly-spacing -----
|
|
7705
|
+
type TemplateCurlySpacing = [] | [("always" | "never")]; // ----- template-tag-spacing -----
|
|
7706
|
+
type TemplateTagSpacing = [] | [("always" | "never")]; // ----- ts/array-type -----
|
|
7944
7707
|
type TsArrayType = [] | [{
|
|
7945
7708
|
default?: ("array" | "generic" | "array-simple");
|
|
7946
7709
|
readonly?: ("array" | "generic" | "array-simple");
|
|
7947
|
-
}];
|
|
7948
|
-
// ----- ts/ban-ts-comment -----
|
|
7710
|
+
}]; // ----- ts/ban-ts-comment -----
|
|
7949
7711
|
type TsBanTsComment = [] | [{
|
|
7950
7712
|
minimumDescriptionLength?: number;
|
|
7951
7713
|
"ts-check"?: (boolean | "allow-with-description" | {
|
|
@@ -7960,53 +7722,42 @@ type TsBanTsComment = [] | [{
|
|
|
7960
7722
|
"ts-nocheck"?: (boolean | "allow-with-description" | {
|
|
7961
7723
|
descriptionFormat?: string;
|
|
7962
7724
|
});
|
|
7963
|
-
}];
|
|
7964
|
-
// ----- ts/class-
|
|
7965
|
-
type TsClassLiteralPropertyStyle = [] | [("fields" | "getters")];
|
|
7966
|
-
// ----- ts/class-methods-use-this -----
|
|
7725
|
+
}]; // ----- ts/class-literal-property-style -----
|
|
7726
|
+
type TsClassLiteralPropertyStyle = [] | [("fields" | "getters")]; // ----- ts/class-methods-use-this -----
|
|
7967
7727
|
type TsClassMethodsUseThis = [] | [{
|
|
7968
7728
|
enforceForClassFields?: boolean;
|
|
7969
7729
|
exceptMethods?: string[];
|
|
7970
7730
|
ignoreClassesThatImplementAnInterface?: (boolean | "public-fields");
|
|
7971
7731
|
ignoreOverrideMethods?: boolean;
|
|
7972
|
-
}];
|
|
7973
|
-
// ----- ts/consistent-
|
|
7974
|
-
type
|
|
7975
|
-
// ----- ts/consistent-indexed-object-style -----
|
|
7976
|
-
type TsConsistentIndexedObjectStyle = [] | [("record" | "index-signature")];
|
|
7977
|
-
// ----- ts/consistent-return -----
|
|
7732
|
+
}]; // ----- ts/consistent-generic-constructors -----
|
|
7733
|
+
type TsConsistentGenericConstructors = [] | [("type-annotation" | "constructor")]; // ----- ts/consistent-indexed-object-style -----
|
|
7734
|
+
type TsConsistentIndexedObjectStyle = [] | [("record" | "index-signature")]; // ----- ts/consistent-return -----
|
|
7978
7735
|
type TsConsistentReturn = [] | [{
|
|
7979
7736
|
treatUndefinedAsUnspecified?: boolean;
|
|
7980
|
-
}];
|
|
7981
|
-
// ----- ts/consistent-type-assertions -----
|
|
7737
|
+
}]; // ----- ts/consistent-type-assertions -----
|
|
7982
7738
|
type TsConsistentTypeAssertions = [] | [({
|
|
7983
7739
|
assertionStyle: "never";
|
|
7984
7740
|
} | {
|
|
7985
7741
|
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never");
|
|
7986
7742
|
assertionStyle?: ("as" | "angle-bracket");
|
|
7987
7743
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never");
|
|
7988
|
-
})];
|
|
7989
|
-
// ----- ts/consistent-type-
|
|
7990
|
-
type TsConsistentTypeDefinitions = [] | [("interface" | "type")];
|
|
7991
|
-
// ----- ts/consistent-type-exports -----
|
|
7744
|
+
})]; // ----- ts/consistent-type-definitions -----
|
|
7745
|
+
type TsConsistentTypeDefinitions = [] | [("interface" | "type")]; // ----- ts/consistent-type-exports -----
|
|
7992
7746
|
type TsConsistentTypeExports = [] | [{
|
|
7993
7747
|
fixMixedExportsWithInlineTypeSpecifier?: boolean;
|
|
7994
|
-
}];
|
|
7995
|
-
// ----- ts/consistent-type-imports -----
|
|
7748
|
+
}]; // ----- ts/consistent-type-imports -----
|
|
7996
7749
|
type TsConsistentTypeImports = [] | [{
|
|
7997
7750
|
disallowTypeAnnotations?: boolean;
|
|
7998
7751
|
fixStyle?: ("separate-type-imports" | "inline-type-imports");
|
|
7999
7752
|
prefer?: ("type-imports" | "no-type-imports");
|
|
8000
|
-
}];
|
|
8001
|
-
// ----- ts/dot-notation -----
|
|
7753
|
+
}]; // ----- ts/dot-notation -----
|
|
8002
7754
|
type TsDotNotation = [] | [{
|
|
8003
7755
|
allowIndexSignaturePropertyAccess?: boolean;
|
|
8004
7756
|
allowKeywords?: boolean;
|
|
8005
7757
|
allowPattern?: string;
|
|
8006
7758
|
allowPrivateClassPropertyAccess?: boolean;
|
|
8007
7759
|
allowProtectedClassPropertyAccess?: boolean;
|
|
8008
|
-
}];
|
|
8009
|
-
// ----- ts/explicit-function-return-type -----
|
|
7760
|
+
}]; // ----- ts/explicit-function-return-type -----
|
|
8010
7761
|
type TsExplicitFunctionReturnType = [] | [{
|
|
8011
7762
|
allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean;
|
|
8012
7763
|
allowDirectConstAssertionInArrowFunctions?: boolean;
|
|
@@ -8016,8 +7767,7 @@ type TsExplicitFunctionReturnType = [] | [{
|
|
|
8016
7767
|
allowHigherOrderFunctions?: boolean;
|
|
8017
7768
|
allowIIFEs?: boolean;
|
|
8018
7769
|
allowTypedFunctionExpressions?: boolean;
|
|
8019
|
-
}];
|
|
8020
|
-
// ----- ts/explicit-member-accessibility -----
|
|
7770
|
+
}]; // ----- ts/explicit-member-accessibility -----
|
|
8021
7771
|
type TsExplicitMemberAccessibility = [] | [{
|
|
8022
7772
|
accessibility?: ("explicit" | "no-public" | "off");
|
|
8023
7773
|
ignoredMethodNames?: string[];
|
|
@@ -8028,8 +7778,7 @@ type TsExplicitMemberAccessibility = [] | [{
|
|
|
8028
7778
|
parameterProperties?: ("explicit" | "no-public" | "off");
|
|
8029
7779
|
properties?: ("explicit" | "no-public" | "off");
|
|
8030
7780
|
};
|
|
8031
|
-
}];
|
|
8032
|
-
// ----- ts/explicit-module-boundary-types -----
|
|
7781
|
+
}]; // ----- ts/explicit-module-boundary-types -----
|
|
8033
7782
|
type TsExplicitModuleBoundaryTypes = [] | [{
|
|
8034
7783
|
allowArgumentsExplicitlyTypedAsAny?: boolean;
|
|
8035
7784
|
allowDirectConstAssertionInArrowFunctions?: boolean;
|
|
@@ -8037,18 +7786,15 @@ type TsExplicitModuleBoundaryTypes = [] | [{
|
|
|
8037
7786
|
allowHigherOrderFunctions?: boolean;
|
|
8038
7787
|
allowOverloadFunctions?: boolean;
|
|
8039
7788
|
allowTypedFunctionExpressions?: boolean;
|
|
8040
|
-
}];
|
|
8041
|
-
// ----- ts/init-declarations -----
|
|
7789
|
+
}]; // ----- ts/init-declarations -----
|
|
8042
7790
|
type TsInitDeclarations = ([] | ["always"] | [] | ["never"] | ["never", {
|
|
8043
7791
|
ignoreForLoopInit?: boolean;
|
|
8044
|
-
}]);
|
|
8045
|
-
// ----- ts/max-params -----
|
|
7792
|
+
}]); // ----- ts/max-params -----
|
|
8046
7793
|
type TsMaxParams = [] | [{
|
|
8047
7794
|
countVoidThis?: boolean;
|
|
8048
7795
|
max?: number;
|
|
8049
7796
|
maximum?: number;
|
|
8050
|
-
}];
|
|
8051
|
-
// ----- ts/member-ordering -----
|
|
7797
|
+
}]; // ----- ts/member-ordering -----
|
|
8052
7798
|
type TsMemberOrdering = [] | [{
|
|
8053
7799
|
classes?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
8054
7800
|
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | "never");
|
|
@@ -8075,10 +7821,8 @@ type TsMemberOrdering = [] | [{
|
|
|
8075
7821
|
optionalityOrder?: ("optional-first" | "required-first");
|
|
8076
7822
|
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive");
|
|
8077
7823
|
});
|
|
8078
|
-
}];
|
|
8079
|
-
// ----- ts/
|
|
8080
|
-
type TsMethodSignatureStyle = [] | [("property" | "method")];
|
|
8081
|
-
// ----- ts/naming-convention -----
|
|
7824
|
+
}]; // ----- ts/method-signature-style -----
|
|
7825
|
+
type TsMethodSignatureStyle = [] | [("property" | "method")]; // ----- ts/naming-convention -----
|
|
8082
7826
|
type _TsNamingConventionFormatOptionsConfig = (_TsNamingConventionPredefinedFormats[] | null);
|
|
8083
7827
|
type _TsNamingConventionPredefinedFormats = ("camelCase" | "strictCamelCase" | "PascalCase" | "StrictPascalCase" | "snake_case" | "UPPER_CASE");
|
|
8084
7828
|
type _TsNamingConventionUnderscoreOptions = ("forbid" | "allow" | "require" | "requireDouble" | "allowDouble" | "allowSingleOrDouble");
|
|
@@ -8396,19 +8140,16 @@ type TsNamingConvention = ({
|
|
|
8396
8140
|
interface _TsNamingConvention_MatchRegexConfig {
|
|
8397
8141
|
match: boolean;
|
|
8398
8142
|
regex: string;
|
|
8399
|
-
}
|
|
8400
|
-
// ----- ts/no-base-to-string -----
|
|
8143
|
+
} // ----- ts/no-base-to-string -----
|
|
8401
8144
|
type TsNoBaseToString = [] | [{
|
|
8402
8145
|
checkUnknown?: boolean;
|
|
8403
8146
|
ignoredTypeNames?: string[];
|
|
8404
|
-
}];
|
|
8405
|
-
// ----- ts/no-confusing-void-expression -----
|
|
8147
|
+
}]; // ----- ts/no-confusing-void-expression -----
|
|
8406
8148
|
type TsNoConfusingVoidExpression = [] | [{
|
|
8407
8149
|
ignoreArrowShorthand?: boolean;
|
|
8408
8150
|
ignoreVoidOperator?: boolean;
|
|
8409
8151
|
ignoreVoidReturningFunctions?: boolean;
|
|
8410
|
-
}];
|
|
8411
|
-
// ----- ts/no-deprecated -----
|
|
8152
|
+
}]; // ----- ts/no-deprecated -----
|
|
8412
8153
|
type TsNoDeprecated = [] | [{
|
|
8413
8154
|
allow?: (string | {
|
|
8414
8155
|
from: "file";
|
|
@@ -8422,39 +8163,32 @@ type TsNoDeprecated = [] | [{
|
|
|
8422
8163
|
name: (string | [string, ...(string)[]]);
|
|
8423
8164
|
package: string;
|
|
8424
8165
|
})[];
|
|
8425
|
-
}];
|
|
8426
|
-
// ----- ts/no-duplicate-type-constituents -----
|
|
8166
|
+
}]; // ----- ts/no-duplicate-type-constituents -----
|
|
8427
8167
|
type TsNoDuplicateTypeConstituents = [] | [{
|
|
8428
8168
|
ignoreIntersections?: boolean;
|
|
8429
8169
|
ignoreUnions?: boolean;
|
|
8430
|
-
}];
|
|
8431
|
-
// ----- ts/no-empty-function -----
|
|
8170
|
+
}]; // ----- ts/no-empty-function -----
|
|
8432
8171
|
type TsNoEmptyFunction = [] | [{
|
|
8433
8172
|
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "private-constructors" | "protected-constructors" | "asyncFunctions" | "asyncMethods" | "decoratedFunctions" | "overrideMethods")[];
|
|
8434
|
-
}];
|
|
8435
|
-
// ----- ts/no-empty-interface -----
|
|
8173
|
+
}]; // ----- ts/no-empty-interface -----
|
|
8436
8174
|
type TsNoEmptyInterface = [] | [{
|
|
8437
8175
|
allowSingleExtends?: boolean;
|
|
8438
|
-
}];
|
|
8439
|
-
// ----- ts/no-empty-object-type -----
|
|
8176
|
+
}]; // ----- ts/no-empty-object-type -----
|
|
8440
8177
|
type TsNoEmptyObjectType = [] | [{
|
|
8441
8178
|
allowInterfaces?: ("always" | "never" | "with-single-extends");
|
|
8442
8179
|
allowObjectTypes?: ("always" | "never");
|
|
8443
8180
|
allowWithName?: string;
|
|
8444
|
-
}];
|
|
8445
|
-
// ----- ts/no-explicit-any -----
|
|
8181
|
+
}]; // ----- ts/no-explicit-any -----
|
|
8446
8182
|
type TsNoExplicitAny = [] | [{
|
|
8447
8183
|
fixToUnknown?: boolean;
|
|
8448
8184
|
ignoreRestArgs?: boolean;
|
|
8449
|
-
}];
|
|
8450
|
-
// ----- ts/no-extraneous-class -----
|
|
8185
|
+
}]; // ----- ts/no-extraneous-class -----
|
|
8451
8186
|
type TsNoExtraneousClass = [] | [{
|
|
8452
8187
|
allowConstructorOnly?: boolean;
|
|
8453
8188
|
allowEmpty?: boolean;
|
|
8454
8189
|
allowStaticOnly?: boolean;
|
|
8455
8190
|
allowWithDecorator?: boolean;
|
|
8456
|
-
}];
|
|
8457
|
-
// ----- ts/no-floating-promises -----
|
|
8191
|
+
}]; // ----- ts/no-floating-promises -----
|
|
8458
8192
|
type TsNoFloatingPromises = [] | [{
|
|
8459
8193
|
allowForKnownSafeCalls?: (string | {
|
|
8460
8194
|
from: "file";
|
|
@@ -8483,22 +8217,18 @@ type TsNoFloatingPromises = [] | [{
|
|
|
8483
8217
|
checkThenables?: boolean;
|
|
8484
8218
|
ignoreIIFE?: boolean;
|
|
8485
8219
|
ignoreVoid?: boolean;
|
|
8486
|
-
}];
|
|
8487
|
-
// ----- ts/no-inferrable-types -----
|
|
8220
|
+
}]; // ----- ts/no-inferrable-types -----
|
|
8488
8221
|
type TsNoInferrableTypes = [] | [{
|
|
8489
8222
|
ignoreParameters?: boolean;
|
|
8490
8223
|
ignoreProperties?: boolean;
|
|
8491
|
-
}];
|
|
8492
|
-
// ----- ts/no-invalid-this -----
|
|
8224
|
+
}]; // ----- ts/no-invalid-this -----
|
|
8493
8225
|
type TsNoInvalidThis = [] | [{
|
|
8494
8226
|
capIsConstructor?: boolean;
|
|
8495
|
-
}];
|
|
8496
|
-
// ----- ts/no-invalid-void-type -----
|
|
8227
|
+
}]; // ----- ts/no-invalid-void-type -----
|
|
8497
8228
|
type TsNoInvalidVoidType = [] | [{
|
|
8498
8229
|
allowAsThisParameter?: boolean;
|
|
8499
8230
|
allowInGenericTypeArguments?: (boolean | [string, ...(string)[]]);
|
|
8500
|
-
}];
|
|
8501
|
-
// ----- ts/no-magic-numbers -----
|
|
8231
|
+
}]; // ----- ts/no-magic-numbers -----
|
|
8502
8232
|
type TsNoMagicNumbers = [] | [{
|
|
8503
8233
|
detectObjects?: boolean;
|
|
8504
8234
|
enforceConst?: boolean;
|
|
@@ -8510,12 +8240,10 @@ type TsNoMagicNumbers = [] | [{
|
|
|
8510
8240
|
ignoreNumericLiteralTypes?: boolean;
|
|
8511
8241
|
ignoreReadonlyClassProperties?: boolean;
|
|
8512
8242
|
ignoreTypeIndexes?: boolean;
|
|
8513
|
-
}];
|
|
8514
|
-
// ----- ts/no-meaningless-void-operator -----
|
|
8243
|
+
}]; // ----- ts/no-meaningless-void-operator -----
|
|
8515
8244
|
type TsNoMeaninglessVoidOperator = [] | [{
|
|
8516
8245
|
checkNever?: boolean;
|
|
8517
|
-
}];
|
|
8518
|
-
// ----- ts/no-misused-promises -----
|
|
8246
|
+
}]; // ----- ts/no-misused-promises -----
|
|
8519
8247
|
type TsNoMisusedPromises = [] | [{
|
|
8520
8248
|
checksConditionals?: boolean;
|
|
8521
8249
|
checksSpreads?: boolean;
|
|
@@ -8527,8 +8255,7 @@ type TsNoMisusedPromises = [] | [{
|
|
|
8527
8255
|
returns?: boolean;
|
|
8528
8256
|
variables?: boolean;
|
|
8529
8257
|
});
|
|
8530
|
-
}];
|
|
8531
|
-
// ----- ts/no-misused-spread -----
|
|
8258
|
+
}]; // ----- ts/no-misused-spread -----
|
|
8532
8259
|
type TsNoMisusedSpread = [] | [{
|
|
8533
8260
|
allow?: (string | {
|
|
8534
8261
|
from: "file";
|
|
@@ -8542,23 +8269,19 @@ type TsNoMisusedSpread = [] | [{
|
|
|
8542
8269
|
name: (string | [string, ...(string)[]]);
|
|
8543
8270
|
package: string;
|
|
8544
8271
|
})[];
|
|
8545
|
-
}];
|
|
8546
|
-
// ----- ts/no-namespace -----
|
|
8272
|
+
}]; // ----- ts/no-namespace -----
|
|
8547
8273
|
type TsNoNamespace = [] | [{
|
|
8548
8274
|
allowDeclarations?: boolean;
|
|
8549
8275
|
allowDefinitionFiles?: boolean;
|
|
8550
|
-
}];
|
|
8551
|
-
// ----- ts/no-redeclare -----
|
|
8276
|
+
}]; // ----- ts/no-redeclare -----
|
|
8552
8277
|
type TsNoRedeclare = [] | [{
|
|
8553
8278
|
builtinGlobals?: boolean;
|
|
8554
8279
|
ignoreDeclarationMerge?: boolean;
|
|
8555
|
-
}];
|
|
8556
|
-
// ----- ts/no-require-imports -----
|
|
8280
|
+
}]; // ----- ts/no-require-imports -----
|
|
8557
8281
|
type TsNoRequireImports = [] | [{
|
|
8558
8282
|
allow?: string[];
|
|
8559
8283
|
allowAsImport?: boolean;
|
|
8560
|
-
}];
|
|
8561
|
-
// ----- ts/no-restricted-imports -----
|
|
8284
|
+
}]; // ----- ts/no-restricted-imports -----
|
|
8562
8285
|
type TsNoRestrictedImports = ((string | {
|
|
8563
8286
|
name: string;
|
|
8564
8287
|
message?: string;
|
|
@@ -8584,8 +8307,7 @@ type TsNoRestrictedImports = ((string | {
|
|
|
8584
8307
|
caseSensitive?: boolean;
|
|
8585
8308
|
allowTypeImports?: boolean;
|
|
8586
8309
|
}[]);
|
|
8587
|
-
}]);
|
|
8588
|
-
// ----- ts/no-restricted-types -----
|
|
8310
|
+
}]); // ----- ts/no-restricted-types -----
|
|
8589
8311
|
type TsNoRestrictedTypes = [] | [{
|
|
8590
8312
|
types?: {
|
|
8591
8313
|
[k: string]: (true | string | {
|
|
@@ -8594,8 +8316,7 @@ type TsNoRestrictedTypes = [] | [{
|
|
|
8594
8316
|
suggest?: string[];
|
|
8595
8317
|
}) | undefined;
|
|
8596
8318
|
};
|
|
8597
|
-
}];
|
|
8598
|
-
// ----- ts/no-shadow -----
|
|
8319
|
+
}]; // ----- ts/no-shadow -----
|
|
8599
8320
|
type TsNoShadow = [] | [{
|
|
8600
8321
|
allow?: string[];
|
|
8601
8322
|
builtinGlobals?: boolean;
|
|
@@ -8603,13 +8324,11 @@ type TsNoShadow = [] | [{
|
|
|
8603
8324
|
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
8604
8325
|
ignoreOnInitialization?: boolean;
|
|
8605
8326
|
ignoreTypeValueShadow?: boolean;
|
|
8606
|
-
}];
|
|
8607
|
-
// ----- ts/no-this-alias -----
|
|
8327
|
+
}]; // ----- ts/no-this-alias -----
|
|
8608
8328
|
type TsNoThisAlias = [] | [{
|
|
8609
8329
|
allowDestructuring?: boolean;
|
|
8610
8330
|
allowedNames?: string[];
|
|
8611
|
-
}];
|
|
8612
|
-
// ----- ts/no-type-alias -----
|
|
8331
|
+
}]; // ----- ts/no-type-alias -----
|
|
8613
8332
|
type TsNoTypeAlias = [] | [{
|
|
8614
8333
|
allowAliases?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections");
|
|
8615
8334
|
allowCallbacks?: ("always" | "never");
|
|
@@ -8619,51 +8338,47 @@ type TsNoTypeAlias = [] | [{
|
|
|
8619
8338
|
allowLiterals?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections");
|
|
8620
8339
|
allowMappedTypes?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections");
|
|
8621
8340
|
allowTupleTypes?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections");
|
|
8622
|
-
}];
|
|
8623
|
-
// ----- ts/no-unnecessary-boolean-literal-compare -----
|
|
8341
|
+
}]; // ----- ts/no-unnecessary-boolean-literal-compare -----
|
|
8624
8342
|
type TsNoUnnecessaryBooleanLiteralCompare = [] | [{
|
|
8625
8343
|
allowComparingNullableBooleansToFalse?: boolean;
|
|
8626
8344
|
allowComparingNullableBooleansToTrue?: boolean;
|
|
8627
8345
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
8628
|
-
}];
|
|
8629
|
-
// ----- ts/no-unnecessary-condition -----
|
|
8346
|
+
}]; // ----- ts/no-unnecessary-condition -----
|
|
8630
8347
|
type TsNoUnnecessaryCondition = [] | [{
|
|
8631
8348
|
allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"));
|
|
8632
8349
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
8633
8350
|
checkTypePredicates?: boolean;
|
|
8634
|
-
}];
|
|
8635
|
-
// ----- ts/no-unnecessary-type-assertion -----
|
|
8351
|
+
}]; // ----- ts/no-unnecessary-type-assertion -----
|
|
8636
8352
|
type TsNoUnnecessaryTypeAssertion = [] | [{
|
|
8637
8353
|
checkLiteralConstAssertions?: boolean;
|
|
8638
8354
|
typesToIgnore?: string[];
|
|
8639
|
-
}];
|
|
8640
|
-
// ----- ts/no-unsafe-member-access -----
|
|
8355
|
+
}]; // ----- ts/no-unsafe-member-access -----
|
|
8641
8356
|
type TsNoUnsafeMemberAccess = [] | [{
|
|
8642
8357
|
allowOptionalChaining?: boolean;
|
|
8643
|
-
}];
|
|
8644
|
-
// ----- ts/no-unused-expressions -----
|
|
8358
|
+
}]; // ----- ts/no-unused-expressions -----
|
|
8645
8359
|
type TsNoUnusedExpressions = [] | [{
|
|
8646
8360
|
allowShortCircuit?: boolean;
|
|
8647
8361
|
allowTernary?: boolean;
|
|
8648
8362
|
allowTaggedTemplates?: boolean;
|
|
8649
8363
|
enforceForJSX?: boolean;
|
|
8650
8364
|
ignoreDirectives?: boolean;
|
|
8651
|
-
}];
|
|
8652
|
-
// ----- ts/no-unused-vars -----
|
|
8365
|
+
}]; // ----- ts/no-unused-vars -----
|
|
8653
8366
|
type TsNoUnusedVars = [] | [(("all" | "local") | {
|
|
8654
8367
|
args?: ("all" | "after-used" | "none");
|
|
8655
8368
|
argsIgnorePattern?: string;
|
|
8656
8369
|
caughtErrors?: ("all" | "none");
|
|
8657
8370
|
caughtErrorsIgnorePattern?: string;
|
|
8658
8371
|
destructuredArrayIgnorePattern?: string;
|
|
8372
|
+
enableAutofixRemoval?: {
|
|
8373
|
+
imports?: boolean;
|
|
8374
|
+
};
|
|
8659
8375
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
8660
8376
|
ignoreRestSiblings?: boolean;
|
|
8661
8377
|
ignoreUsingDeclarations?: boolean;
|
|
8662
8378
|
reportUsedIgnorePattern?: boolean;
|
|
8663
8379
|
vars?: ("all" | "local");
|
|
8664
8380
|
varsIgnorePattern?: string;
|
|
8665
|
-
})];
|
|
8666
|
-
// ----- ts/no-use-before-define -----
|
|
8381
|
+
})]; // ----- ts/no-use-before-define -----
|
|
8667
8382
|
type TsNoUseBeforeDefine = [] | [("nofunc" | {
|
|
8668
8383
|
allowNamedExports?: boolean;
|
|
8669
8384
|
classes?: boolean;
|
|
@@ -8672,12 +8387,13 @@ type TsNoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
8672
8387
|
ignoreTypeReferences?: boolean;
|
|
8673
8388
|
typedefs?: boolean;
|
|
8674
8389
|
variables?: boolean;
|
|
8675
|
-
})];
|
|
8676
|
-
|
|
8390
|
+
})]; // ----- ts/no-useless-default-assignment -----
|
|
8391
|
+
type TsNoUselessDefaultAssignment = [] | [{
|
|
8392
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
8393
|
+
}]; // ----- ts/no-var-requires -----
|
|
8677
8394
|
type TsNoVarRequires = [] | [{
|
|
8678
8395
|
allow?: string[];
|
|
8679
|
-
}];
|
|
8680
|
-
// ----- ts/only-throw-error -----
|
|
8396
|
+
}]; // ----- ts/only-throw-error -----
|
|
8681
8397
|
type TsOnlyThrowError = [] | [{
|
|
8682
8398
|
allow?: (string | {
|
|
8683
8399
|
from: "file";
|
|
@@ -8694,13 +8410,11 @@ type TsOnlyThrowError = [] | [{
|
|
|
8694
8410
|
allowRethrowing?: boolean;
|
|
8695
8411
|
allowThrowingAny?: boolean;
|
|
8696
8412
|
allowThrowingUnknown?: boolean;
|
|
8697
|
-
}];
|
|
8698
|
-
// ----- ts/parameter-properties -----
|
|
8413
|
+
}]; // ----- ts/parameter-properties -----
|
|
8699
8414
|
type TsParameterProperties = [] | [{
|
|
8700
8415
|
allow?: ("readonly" | "private" | "protected" | "public" | "private readonly" | "protected readonly" | "public readonly")[];
|
|
8701
8416
|
prefer?: ("class-property" | "parameter-property");
|
|
8702
|
-
}];
|
|
8703
|
-
// ----- ts/prefer-destructuring -----
|
|
8417
|
+
}]; // ----- ts/prefer-destructuring -----
|
|
8704
8418
|
type TsPreferDestructuring = [] | [({
|
|
8705
8419
|
AssignmentExpression?: {
|
|
8706
8420
|
array?: boolean;
|
|
@@ -8728,12 +8442,10 @@ type TsPreferDestructuring = [] | [({
|
|
|
8728
8442
|
}), {
|
|
8729
8443
|
enforceForDeclarationWithTypeAnnotation?: boolean;
|
|
8730
8444
|
enforceForRenamedProperties?: boolean;
|
|
8731
|
-
}];
|
|
8732
|
-
// ----- ts/prefer-literal-enum-member -----
|
|
8445
|
+
}]; // ----- ts/prefer-literal-enum-member -----
|
|
8733
8446
|
type TsPreferLiteralEnumMember = [] | [{
|
|
8734
8447
|
allowBitwiseExpressions?: boolean;
|
|
8735
|
-
}];
|
|
8736
|
-
// ----- ts/prefer-nullish-coalescing -----
|
|
8448
|
+
}]; // ----- ts/prefer-nullish-coalescing -----
|
|
8737
8449
|
type TsPreferNullishCoalescing = [] | [{
|
|
8738
8450
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
8739
8451
|
ignoreBooleanCoercion?: boolean;
|
|
@@ -8747,8 +8459,7 @@ type TsPreferNullishCoalescing = [] | [{
|
|
|
8747
8459
|
string?: boolean;
|
|
8748
8460
|
} | true);
|
|
8749
8461
|
ignoreTernaryTests?: boolean;
|
|
8750
|
-
}];
|
|
8751
|
-
// ----- ts/prefer-optional-chain -----
|
|
8462
|
+
}]; // ----- ts/prefer-optional-chain -----
|
|
8752
8463
|
type TsPreferOptionalChain = [] | [{
|
|
8753
8464
|
allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing?: boolean;
|
|
8754
8465
|
checkAny?: boolean;
|
|
@@ -8758,18 +8469,15 @@ type TsPreferOptionalChain = [] | [{
|
|
|
8758
8469
|
checkString?: boolean;
|
|
8759
8470
|
checkUnknown?: boolean;
|
|
8760
8471
|
requireNullish?: boolean;
|
|
8761
|
-
}];
|
|
8762
|
-
// ----- ts/prefer-promise-reject-errors -----
|
|
8472
|
+
}]; // ----- ts/prefer-promise-reject-errors -----
|
|
8763
8473
|
type TsPreferPromiseRejectErrors = [] | [{
|
|
8764
8474
|
allowEmptyReject?: boolean;
|
|
8765
8475
|
allowThrowingAny?: boolean;
|
|
8766
8476
|
allowThrowingUnknown?: boolean;
|
|
8767
|
-
}];
|
|
8768
|
-
// ----- ts/prefer-readonly -----
|
|
8477
|
+
}]; // ----- ts/prefer-readonly -----
|
|
8769
8478
|
type TsPreferReadonly = [] | [{
|
|
8770
8479
|
onlyInlineLambdas?: boolean;
|
|
8771
|
-
}];
|
|
8772
|
-
// ----- ts/prefer-readonly-parameter-types -----
|
|
8480
|
+
}]; // ----- ts/prefer-readonly-parameter-types -----
|
|
8773
8481
|
type TsPreferReadonlyParameterTypes = [] | [{
|
|
8774
8482
|
allow?: (string | {
|
|
8775
8483
|
from: "file";
|
|
@@ -8786,12 +8494,10 @@ type TsPreferReadonlyParameterTypes = [] | [{
|
|
|
8786
8494
|
checkParameterProperties?: boolean;
|
|
8787
8495
|
ignoreInferredTypes?: boolean;
|
|
8788
8496
|
treatMethodsAsReadonly?: boolean;
|
|
8789
|
-
}];
|
|
8790
|
-
// ----- ts/prefer-string-starts-ends-with -----
|
|
8497
|
+
}]; // ----- ts/prefer-string-starts-ends-with -----
|
|
8791
8498
|
type TsPreferStringStartsEndsWith = [] | [{
|
|
8792
8499
|
allowSingleElementEquality?: ("always" | "never");
|
|
8793
|
-
}];
|
|
8794
|
-
// ----- ts/promise-function-async -----
|
|
8500
|
+
}]; // ----- ts/promise-function-async -----
|
|
8795
8501
|
type TsPromiseFunctionAsync = [] | [{
|
|
8796
8502
|
allowAny?: boolean;
|
|
8797
8503
|
allowedPromiseNames?: string[];
|
|
@@ -8799,12 +8505,10 @@ type TsPromiseFunctionAsync = [] | [{
|
|
|
8799
8505
|
checkFunctionDeclarations?: boolean;
|
|
8800
8506
|
checkFunctionExpressions?: boolean;
|
|
8801
8507
|
checkMethodDeclarations?: boolean;
|
|
8802
|
-
}];
|
|
8803
|
-
// ----- ts/require-array-sort-compare -----
|
|
8508
|
+
}]; // ----- ts/require-array-sort-compare -----
|
|
8804
8509
|
type TsRequireArraySortCompare = [] | [{
|
|
8805
8510
|
ignoreStringArrays?: boolean;
|
|
8806
|
-
}];
|
|
8807
|
-
// ----- ts/restrict-plus-operands -----
|
|
8511
|
+
}]; // ----- ts/restrict-plus-operands -----
|
|
8808
8512
|
type TsRestrictPlusOperands = [] | [{
|
|
8809
8513
|
allowAny?: boolean;
|
|
8810
8514
|
allowBoolean?: boolean;
|
|
@@ -8812,8 +8516,7 @@ type TsRestrictPlusOperands = [] | [{
|
|
|
8812
8516
|
allowNumberAndString?: boolean;
|
|
8813
8517
|
allowRegExp?: boolean;
|
|
8814
8518
|
skipCompoundAssignments?: boolean;
|
|
8815
|
-
}];
|
|
8816
|
-
// ----- ts/restrict-template-expressions -----
|
|
8519
|
+
}]; // ----- ts/restrict-template-expressions -----
|
|
8817
8520
|
type TsRestrictTemplateExpressions = [] | [{
|
|
8818
8521
|
allowAny?: boolean;
|
|
8819
8522
|
allowArray?: boolean;
|
|
@@ -8834,17 +8537,14 @@ type TsRestrictTemplateExpressions = [] | [{
|
|
|
8834
8537
|
name: (string | [string, ...(string)[]]);
|
|
8835
8538
|
package: string;
|
|
8836
8539
|
})[];
|
|
8837
|
-
}];
|
|
8838
|
-
// ----- ts/
|
|
8839
|
-
type TsReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
|
|
8840
|
-
// ----- ts/sort-type-constituents -----
|
|
8540
|
+
}]; // ----- ts/return-await -----
|
|
8541
|
+
type TsReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)]; // ----- ts/sort-type-constituents -----
|
|
8841
8542
|
type TsSortTypeConstituents = [] | [{
|
|
8842
8543
|
caseSensitive?: boolean;
|
|
8843
8544
|
checkIntersections?: boolean;
|
|
8844
8545
|
checkUnions?: boolean;
|
|
8845
8546
|
groupOrder?: ("conditional" | "function" | "import" | "intersection" | "keyword" | "nullish" | "literal" | "named" | "object" | "operator" | "tuple" | "union")[];
|
|
8846
|
-
}];
|
|
8847
|
-
// ----- ts/strict-boolean-expressions -----
|
|
8547
|
+
}]; // ----- ts/strict-boolean-expressions -----
|
|
8848
8548
|
type TsStrictBooleanExpressions = [] | [{
|
|
8849
8549
|
allowAny?: boolean;
|
|
8850
8550
|
allowNullableBoolean?: boolean;
|
|
@@ -8855,21 +8555,21 @@ type TsStrictBooleanExpressions = [] | [{
|
|
|
8855
8555
|
allowNumber?: boolean;
|
|
8856
8556
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
8857
8557
|
allowString?: boolean;
|
|
8858
|
-
}];
|
|
8859
|
-
|
|
8558
|
+
}]; // ----- ts/strict-void-return -----
|
|
8559
|
+
type TsStrictVoidReturn = [] | [{
|
|
8560
|
+
allowReturnAny?: boolean;
|
|
8561
|
+
}]; // ----- ts/switch-exhaustiveness-check -----
|
|
8860
8562
|
type TsSwitchExhaustivenessCheck = [] | [{
|
|
8861
8563
|
allowDefaultCaseForExhaustiveSwitch?: boolean;
|
|
8862
8564
|
considerDefaultExhaustiveForUnions?: boolean;
|
|
8863
8565
|
defaultCaseCommentPattern?: string;
|
|
8864
8566
|
requireDefaultForNonUnion?: boolean;
|
|
8865
|
-
}];
|
|
8866
|
-
// ----- ts/triple-slash-reference -----
|
|
8567
|
+
}]; // ----- ts/triple-slash-reference -----
|
|
8867
8568
|
type TsTripleSlashReference = [] | [{
|
|
8868
8569
|
lib?: ("always" | "never");
|
|
8869
8570
|
path?: ("always" | "never");
|
|
8870
8571
|
types?: ("always" | "never" | "prefer-import");
|
|
8871
|
-
}];
|
|
8872
|
-
// ----- ts/typedef -----
|
|
8572
|
+
}]; // ----- ts/typedef -----
|
|
8873
8573
|
type TsTypedef = [] | [{
|
|
8874
8574
|
arrayDestructuring?: boolean;
|
|
8875
8575
|
arrowParameter?: boolean;
|
|
@@ -8879,46 +8579,36 @@ type TsTypedef = [] | [{
|
|
|
8879
8579
|
propertyDeclaration?: boolean;
|
|
8880
8580
|
variableDeclaration?: boolean;
|
|
8881
8581
|
variableDeclarationIgnoreFunction?: boolean;
|
|
8882
|
-
}];
|
|
8883
|
-
// ----- ts/unbound-method -----
|
|
8582
|
+
}]; // ----- ts/unbound-method -----
|
|
8884
8583
|
type TsUnboundMethod = [] | [{
|
|
8885
8584
|
ignoreStatic?: boolean;
|
|
8886
|
-
}];
|
|
8887
|
-
// ----- ts/unified-signatures -----
|
|
8585
|
+
}]; // ----- ts/unified-signatures -----
|
|
8888
8586
|
type TsUnifiedSignatures = [] | [{
|
|
8889
8587
|
ignoreDifferentlyNamedParameters?: boolean;
|
|
8890
8588
|
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
8891
|
-
}];
|
|
8892
|
-
// -----
|
|
8893
|
-
type UnicodeBom = [] | [("always" | "never")];
|
|
8894
|
-
// ----- unicorn/better-regex -----
|
|
8589
|
+
}]; // ----- unicode-bom -----
|
|
8590
|
+
type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/better-regex -----
|
|
8895
8591
|
type UnicornBetterRegex = [] | [{
|
|
8896
8592
|
sortCharacterClasses?: boolean;
|
|
8897
|
-
}];
|
|
8898
|
-
// ----- unicorn/catch-error-name -----
|
|
8593
|
+
}]; // ----- unicorn/catch-error-name -----
|
|
8899
8594
|
type UnicornCatchErrorName = [] | [{
|
|
8900
8595
|
name?: string;
|
|
8901
8596
|
ignore?: unknown[];
|
|
8902
|
-
}];
|
|
8903
|
-
// ----- unicorn/consistent-function-scoping -----
|
|
8597
|
+
}]; // ----- unicorn/consistent-function-scoping -----
|
|
8904
8598
|
type UnicornConsistentFunctionScoping = [] | [{
|
|
8905
8599
|
checkArrowFunctions?: boolean;
|
|
8906
|
-
}];
|
|
8907
|
-
// ----- unicorn/
|
|
8908
|
-
type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
|
|
8909
|
-
// ----- unicorn/expiring-todo-comments -----
|
|
8600
|
+
}]; // ----- unicorn/escape-case -----
|
|
8601
|
+
type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/expiring-todo-comments -----
|
|
8910
8602
|
type UnicornExpiringTodoComments = [] | [{
|
|
8911
8603
|
terms?: string[];
|
|
8912
8604
|
ignore?: unknown[];
|
|
8913
8605
|
ignoreDatesOnPullRequests?: boolean;
|
|
8914
8606
|
allowWarningComments?: boolean;
|
|
8915
8607
|
date?: string;
|
|
8916
|
-
}];
|
|
8917
|
-
// ----- unicorn/explicit-length-check -----
|
|
8608
|
+
}]; // ----- unicorn/explicit-length-check -----
|
|
8918
8609
|
type UnicornExplicitLengthCheck = [] | [{
|
|
8919
8610
|
"non-zero"?: ("greater-than" | "not-equal");
|
|
8920
|
-
}];
|
|
8921
|
-
// ----- unicorn/filename-case -----
|
|
8611
|
+
}]; // ----- unicorn/filename-case -----
|
|
8922
8612
|
type UnicornFilenameCase = [] | [({
|
|
8923
8613
|
case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
|
|
8924
8614
|
ignore?: unknown[];
|
|
@@ -8932,8 +8622,7 @@ type UnicornFilenameCase = [] | [({
|
|
|
8932
8622
|
};
|
|
8933
8623
|
ignore?: unknown[];
|
|
8934
8624
|
multipleFileExtensions?: boolean;
|
|
8935
|
-
})];
|
|
8936
|
-
// ----- unicorn/import-style -----
|
|
8625
|
+
})]; // ----- unicorn/import-style -----
|
|
8937
8626
|
type UnicornImportStyle = [] | [{
|
|
8938
8627
|
checkImport?: boolean;
|
|
8939
8628
|
checkDynamicImport?: boolean;
|
|
@@ -8948,56 +8637,53 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
8948
8637
|
}
|
|
8949
8638
|
interface _UnicornImportStyle_BooleanObject {
|
|
8950
8639
|
[k: string]: boolean | undefined;
|
|
8951
|
-
}
|
|
8952
|
-
|
|
8640
|
+
} // ----- unicorn/isolated-functions -----
|
|
8641
|
+
type UnicornIsolatedFunctions = [] | [{
|
|
8642
|
+
overrideGlobals?: {
|
|
8643
|
+
[k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
|
|
8644
|
+
};
|
|
8645
|
+
functions?: string[];
|
|
8646
|
+
selectors?: string[];
|
|
8647
|
+
comments?: string[];
|
|
8648
|
+
}]; // ----- unicorn/no-array-reduce -----
|
|
8953
8649
|
type UnicornNoArrayReduce = [] | [{
|
|
8954
8650
|
allowSimpleOperations?: boolean;
|
|
8955
|
-
}];
|
|
8956
|
-
// ----- unicorn/no-array-reverse -----
|
|
8651
|
+
}]; // ----- unicorn/no-array-reverse -----
|
|
8957
8652
|
type UnicornNoArrayReverse = [] | [{
|
|
8958
8653
|
allowExpressionStatement?: boolean;
|
|
8959
|
-
}];
|
|
8960
|
-
// ----- unicorn/no-array-sort -----
|
|
8654
|
+
}]; // ----- unicorn/no-array-sort -----
|
|
8961
8655
|
type UnicornNoArraySort = [] | [{
|
|
8962
8656
|
allowExpressionStatement?: boolean;
|
|
8963
|
-
}];
|
|
8964
|
-
// ----- unicorn/no-instanceof-builtins -----
|
|
8657
|
+
}]; // ----- unicorn/no-instanceof-builtins -----
|
|
8965
8658
|
type UnicornNoInstanceofBuiltins = [] | [{
|
|
8966
8659
|
useErrorIsError?: boolean;
|
|
8967
8660
|
strategy?: ("loose" | "strict");
|
|
8968
8661
|
include?: string[];
|
|
8969
8662
|
exclude?: string[];
|
|
8970
|
-
}];
|
|
8971
|
-
// ----- unicorn/no-keyword-prefix -----
|
|
8663
|
+
}]; // ----- unicorn/no-keyword-prefix -----
|
|
8972
8664
|
type UnicornNoKeywordPrefix = [] | [{
|
|
8973
8665
|
disallowedPrefixes?: [] | [string];
|
|
8974
8666
|
checkProperties?: boolean;
|
|
8975
8667
|
onlyCamelCase?: boolean;
|
|
8976
|
-
}];
|
|
8977
|
-
// ----- unicorn/no-null -----
|
|
8668
|
+
}]; // ----- unicorn/no-null -----
|
|
8978
8669
|
type UnicornNoNull = [] | [{
|
|
8979
8670
|
checkStrictEquality?: boolean;
|
|
8980
|
-
}];
|
|
8981
|
-
// ----- unicorn/no-typeof-undefined -----
|
|
8671
|
+
}]; // ----- unicorn/no-typeof-undefined -----
|
|
8982
8672
|
type UnicornNoTypeofUndefined = [] | [{
|
|
8983
8673
|
checkGlobalVariables?: boolean;
|
|
8984
|
-
}];
|
|
8985
|
-
// ----- unicorn/no-unnecessary-polyfills -----
|
|
8674
|
+
}]; // ----- unicorn/no-unnecessary-polyfills -----
|
|
8986
8675
|
type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
8987
8676
|
targets: (string | unknown[] | {
|
|
8988
8677
|
[k: string]: unknown | undefined;
|
|
8989
8678
|
});
|
|
8990
|
-
}];
|
|
8991
|
-
// ----- unicorn/no-useless-undefined -----
|
|
8679
|
+
}]; // ----- unicorn/no-useless-undefined -----
|
|
8992
8680
|
type UnicornNoUselessUndefined = [] | [{
|
|
8993
8681
|
checkArguments?: boolean;
|
|
8994
8682
|
checkArrowFunctionBody?: boolean;
|
|
8995
|
-
}];
|
|
8996
|
-
// ----- unicorn/number-literal-case -----
|
|
8683
|
+
}]; // ----- unicorn/number-literal-case -----
|
|
8997
8684
|
type UnicornNumberLiteralCase = [] | [{
|
|
8998
8685
|
hexadecimalValue?: ("uppercase" | "lowercase");
|
|
8999
|
-
}];
|
|
9000
|
-
// ----- unicorn/numeric-separators-style -----
|
|
8686
|
+
}]; // ----- unicorn/numeric-separators-style -----
|
|
9001
8687
|
type UnicornNumericSeparatorsStyle = [] | [{
|
|
9002
8688
|
binary?: {
|
|
9003
8689
|
onlyIfContainsSeparator?: boolean;
|
|
@@ -9020,53 +8706,41 @@ type UnicornNumericSeparatorsStyle = [] | [{
|
|
|
9020
8706
|
groupLength?: number;
|
|
9021
8707
|
};
|
|
9022
8708
|
onlyIfContainsSeparator?: boolean;
|
|
9023
|
-
}];
|
|
9024
|
-
// ----- unicorn/prefer-add-event-listener -----
|
|
8709
|
+
}]; // ----- unicorn/prefer-add-event-listener -----
|
|
9025
8710
|
type UnicornPreferAddEventListener = [] | [{
|
|
9026
8711
|
excludedPackages?: string[];
|
|
9027
|
-
}];
|
|
9028
|
-
// ----- unicorn/prefer-array-find -----
|
|
8712
|
+
}]; // ----- unicorn/prefer-array-find -----
|
|
9029
8713
|
type UnicornPreferArrayFind = [] | [{
|
|
9030
8714
|
checkFromLast?: boolean;
|
|
9031
|
-
}];
|
|
9032
|
-
// ----- unicorn/prefer-array-flat -----
|
|
8715
|
+
}]; // ----- unicorn/prefer-array-flat -----
|
|
9033
8716
|
type UnicornPreferArrayFlat = [] | [{
|
|
9034
8717
|
functions?: unknown[];
|
|
9035
|
-
}];
|
|
9036
|
-
// ----- unicorn/prefer-at -----
|
|
8718
|
+
}]; // ----- unicorn/prefer-at -----
|
|
9037
8719
|
type UnicornPreferAt = [] | [{
|
|
9038
8720
|
getLastElementFunctions?: unknown[];
|
|
9039
8721
|
checkAllIndexAccess?: boolean;
|
|
9040
|
-
}];
|
|
9041
|
-
// ----- unicorn/prefer-export-from -----
|
|
8722
|
+
}]; // ----- unicorn/prefer-export-from -----
|
|
9042
8723
|
type UnicornPreferExportFrom = [] | [{
|
|
9043
8724
|
ignoreUsedVariables?: boolean;
|
|
9044
|
-
}];
|
|
9045
|
-
// ----- unicorn/prefer-number-properties -----
|
|
8725
|
+
}]; // ----- unicorn/prefer-number-properties -----
|
|
9046
8726
|
type UnicornPreferNumberProperties = [] | [{
|
|
9047
8727
|
checkInfinity?: boolean;
|
|
9048
8728
|
checkNaN?: boolean;
|
|
9049
|
-
}];
|
|
9050
|
-
// ----- unicorn/prefer-object-from-entries -----
|
|
8729
|
+
}]; // ----- unicorn/prefer-object-from-entries -----
|
|
9051
8730
|
type UnicornPreferObjectFromEntries = [] | [{
|
|
9052
8731
|
functions?: unknown[];
|
|
9053
|
-
}];
|
|
9054
|
-
// ----- unicorn/prefer-single-call -----
|
|
8732
|
+
}]; // ----- unicorn/prefer-single-call -----
|
|
9055
8733
|
type UnicornPreferSingleCall = [] | [{
|
|
9056
8734
|
ignore?: unknown[];
|
|
9057
|
-
}];
|
|
9058
|
-
// ----- unicorn/prefer-structured-clone -----
|
|
8735
|
+
}]; // ----- unicorn/prefer-structured-clone -----
|
|
9059
8736
|
type UnicornPreferStructuredClone = [] | [{
|
|
9060
8737
|
functions?: unknown[];
|
|
9061
|
-
}];
|
|
9062
|
-
// ----- unicorn/prefer-switch -----
|
|
8738
|
+
}]; // ----- unicorn/prefer-switch -----
|
|
9063
8739
|
type UnicornPreferSwitch = [] | [{
|
|
9064
8740
|
minimumCases?: number;
|
|
9065
8741
|
emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case");
|
|
9066
|
-
}];
|
|
9067
|
-
// ----- unicorn/
|
|
9068
|
-
type UnicornPreferTernary = [] | [("always" | "only-single-line")];
|
|
9069
|
-
// ----- unicorn/prevent-abbreviations -----
|
|
8742
|
+
}]; // ----- unicorn/prefer-ternary -----
|
|
8743
|
+
type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/prevent-abbreviations -----
|
|
9070
8744
|
type UnicornPreventAbbreviations = [] | [{
|
|
9071
8745
|
checkProperties?: boolean;
|
|
9072
8746
|
checkVariables?: boolean;
|
|
@@ -9086,10 +8760,8 @@ interface _UnicornPreventAbbreviations_Abbreviations {
|
|
|
9086
8760
|
}
|
|
9087
8761
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
9088
8762
|
[k: string]: boolean | undefined;
|
|
9089
|
-
}
|
|
9090
|
-
// ----- unicorn/
|
|
9091
|
-
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
9092
|
-
// ----- unicorn/string-content -----
|
|
8763
|
+
} // ----- unicorn/relative-url-style -----
|
|
8764
|
+
type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/string-content -----
|
|
9093
8765
|
type UnicornStringContent = [] | [{
|
|
9094
8766
|
patterns?: {
|
|
9095
8767
|
[k: string]: (string | {
|
|
@@ -9098,31 +8770,25 @@ type UnicornStringContent = [] | [{
|
|
|
9098
8770
|
message?: string;
|
|
9099
8771
|
}) | undefined;
|
|
9100
8772
|
};
|
|
9101
|
-
}];
|
|
9102
|
-
// ----- unicorn/
|
|
9103
|
-
type UnicornSwitchCaseBraces = [] | [("always" | "avoid")];
|
|
9104
|
-
// ----- unicorn/template-indent -----
|
|
8773
|
+
}]; // ----- unicorn/switch-case-braces -----
|
|
8774
|
+
type UnicornSwitchCaseBraces = [] | [("always" | "avoid")]; // ----- unicorn/template-indent -----
|
|
9105
8775
|
type UnicornTemplateIndent = [] | [{
|
|
9106
8776
|
indent?: (string | number);
|
|
9107
8777
|
tags?: string[];
|
|
9108
8778
|
functions?: string[];
|
|
9109
8779
|
selectors?: string[];
|
|
9110
8780
|
comments?: string[];
|
|
9111
|
-
}];
|
|
9112
|
-
// ----- unicorn/text-encoding-identifier-case -----
|
|
8781
|
+
}]; // ----- unicorn/text-encoding-identifier-case -----
|
|
9113
8782
|
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
9114
8783
|
withDash?: boolean;
|
|
9115
|
-
}];
|
|
9116
|
-
// ----- use-isnan -----
|
|
8784
|
+
}]; // ----- use-isnan -----
|
|
9117
8785
|
type UseIsnan = [] | [{
|
|
9118
8786
|
enforceForSwitchCase?: boolean;
|
|
9119
8787
|
enforceForIndexOf?: boolean;
|
|
9120
|
-
}];
|
|
9121
|
-
// ----- valid-typeof -----
|
|
8788
|
+
}]; // ----- valid-typeof -----
|
|
9122
8789
|
type ValidTypeof = [] | [{
|
|
9123
8790
|
requireStringLiterals?: boolean;
|
|
9124
|
-
}];
|
|
9125
|
-
// ----- vue-a11y/alt-text -----
|
|
8791
|
+
}]; // ----- vue-a11y/alt-text -----
|
|
9126
8792
|
type VueA11YAltText = [] | [{
|
|
9127
8793
|
elements?: string[];
|
|
9128
8794
|
img?: string[];
|
|
@@ -9130,37 +8796,31 @@ type VueA11YAltText = [] | [{
|
|
|
9130
8796
|
area?: string[];
|
|
9131
8797
|
"input[type=\"image\"]"?: string[];
|
|
9132
8798
|
[k: string]: unknown | undefined;
|
|
9133
|
-
}];
|
|
9134
|
-
// ----- vue-a11y/anchor-has-content -----
|
|
8799
|
+
}]; // ----- vue-a11y/anchor-has-content -----
|
|
9135
8800
|
type VueA11YAnchorHasContent = [] | [{
|
|
9136
8801
|
components?: string[];
|
|
9137
8802
|
accessibleChildren?: string[];
|
|
9138
8803
|
accessibleDirectives?: string[];
|
|
9139
8804
|
[k: string]: unknown | undefined;
|
|
9140
|
-
}];
|
|
9141
|
-
// ----- vue-a11y/aria-role -----
|
|
8805
|
+
}]; // ----- vue-a11y/aria-role -----
|
|
9142
8806
|
type VueA11YAriaRole = [] | [{
|
|
9143
8807
|
ignoreNonDOM?: boolean;
|
|
9144
|
-
}];
|
|
9145
|
-
// ----- vue-a11y/form-control-has-label -----
|
|
8808
|
+
}]; // ----- vue-a11y/form-control-has-label -----
|
|
9146
8809
|
type VueA11YFormControlHasLabel = [] | [{
|
|
9147
8810
|
labelComponents?: string[];
|
|
9148
8811
|
controlComponents?: string[];
|
|
9149
8812
|
[k: string]: unknown | undefined;
|
|
9150
|
-
}];
|
|
9151
|
-
// ----- vue-a11y/heading-has-content -----
|
|
8813
|
+
}]; // ----- vue-a11y/heading-has-content -----
|
|
9152
8814
|
type VueA11YHeadingHasContent = [] | [{
|
|
9153
8815
|
components?: string[];
|
|
9154
8816
|
accessibleChildren?: string[];
|
|
9155
8817
|
accessibleDirectives?: string[];
|
|
9156
8818
|
[k: string]: unknown | undefined;
|
|
9157
|
-
}];
|
|
9158
|
-
// ----- vue-a11y/interactive-supports-focus -----
|
|
8819
|
+
}]; // ----- vue-a11y/interactive-supports-focus -----
|
|
9159
8820
|
type VueA11YInteractiveSupportsFocus = [] | [{
|
|
9160
8821
|
tabbable?: ("button" | "checkbox" | "columnheader" | "combobox" | "grid" | "gridcell" | "link" | "listbox" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "radiogroup" | "row" | "rowheader" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tablist" | "textbox" | "tree" | "treegrid" | "treeitem" | "doc-backlink" | "doc-biblioref" | "doc-glossref" | "doc-noteref")[];
|
|
9161
8822
|
[k: string]: unknown | undefined;
|
|
9162
|
-
}];
|
|
9163
|
-
// ----- vue-a11y/label-has-for -----
|
|
8823
|
+
}]; // ----- vue-a11y/label-has-for -----
|
|
9164
8824
|
type VueA11YLabelHasFor = [] | [{
|
|
9165
8825
|
components?: string[];
|
|
9166
8826
|
controlComponents?: string[];
|
|
@@ -9173,38 +8833,31 @@ type VueA11YLabelHasFor = [] | [{
|
|
|
9173
8833
|
});
|
|
9174
8834
|
allowChildren?: boolean;
|
|
9175
8835
|
[k: string]: unknown | undefined;
|
|
9176
|
-
}];
|
|
9177
|
-
// ----- vue-a11y/media-has-caption -----
|
|
8836
|
+
}]; // ----- vue-a11y/media-has-caption -----
|
|
9178
8837
|
type VueA11YMediaHasCaption = [] | [{
|
|
9179
8838
|
audio?: string[];
|
|
9180
8839
|
track?: string[];
|
|
9181
8840
|
video?: string[];
|
|
9182
8841
|
[k: string]: unknown | undefined;
|
|
9183
|
-
}];
|
|
9184
|
-
// ----- vue-a11y/no-autofocus -----
|
|
8842
|
+
}]; // ----- vue-a11y/no-autofocus -----
|
|
9185
8843
|
type VueA11YNoAutofocus = [] | [{
|
|
9186
8844
|
ignoreNonDOM?: boolean;
|
|
9187
|
-
}];
|
|
9188
|
-
// ----- vue-a11y/no-distracting-elements -----
|
|
8845
|
+
}]; // ----- vue-a11y/no-distracting-elements -----
|
|
9189
8846
|
type VueA11YNoDistractingElements = [] | [{
|
|
9190
8847
|
[k: string]: unknown | undefined;
|
|
9191
|
-
}];
|
|
9192
|
-
// ----- vue-a11y/no-redundant-roles -----
|
|
8848
|
+
}]; // ----- vue-a11y/no-redundant-roles -----
|
|
9193
8849
|
type VueA11YNoRedundantRoles = [] | [{
|
|
9194
8850
|
[k: string]: string[] | undefined;
|
|
9195
|
-
}];
|
|
9196
|
-
// ----- vue/array-bracket-newline -----
|
|
8851
|
+
}]; // ----- vue/array-bracket-newline -----
|
|
9197
8852
|
type VueArrayBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
9198
8853
|
multiline?: boolean;
|
|
9199
8854
|
minItems?: (number | null);
|
|
9200
|
-
})];
|
|
9201
|
-
// ----- vue/array-bracket-spacing -----
|
|
8855
|
+
})]; // ----- vue/array-bracket-spacing -----
|
|
9202
8856
|
type VueArrayBracketSpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
9203
8857
|
singleValue?: boolean;
|
|
9204
8858
|
objectsInArrays?: boolean;
|
|
9205
8859
|
arraysInArrays?: boolean;
|
|
9206
|
-
}];
|
|
9207
|
-
// ----- vue/array-element-newline -----
|
|
8860
|
+
}]; // ----- vue/array-element-newline -----
|
|
9208
8861
|
type VueArrayElementNewline = [] | [(_VueArrayElementNewlineBasicConfig | {
|
|
9209
8862
|
ArrayExpression?: _VueArrayElementNewlineBasicConfig;
|
|
9210
8863
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig;
|
|
@@ -9212,13 +8865,11 @@ type VueArrayElementNewline = [] | [(_VueArrayElementNewlineBasicConfig | {
|
|
|
9212
8865
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
9213
8866
|
multiline?: boolean;
|
|
9214
8867
|
minItems?: (number | null);
|
|
9215
|
-
});
|
|
9216
|
-
// ----- vue/arrow-spacing -----
|
|
8868
|
+
}); // ----- vue/arrow-spacing -----
|
|
9217
8869
|
type VueArrowSpacing = [] | [{
|
|
9218
8870
|
before?: boolean;
|
|
9219
8871
|
after?: boolean;
|
|
9220
|
-
}];
|
|
9221
|
-
// ----- vue/attribute-hyphenation -----
|
|
8872
|
+
}]; // ----- vue/attribute-hyphenation -----
|
|
9222
8873
|
type VueAttributeHyphenation = [] | [("always" | "never")] | [("always" | "never"), {
|
|
9223
8874
|
ignore?: (string & {
|
|
9224
8875
|
[k: string]: unknown | undefined;
|
|
@@ -9226,27 +8877,23 @@ type VueAttributeHyphenation = [] | [("always" | "never")] | [("always" | "never
|
|
|
9226
8877
|
[k: string]: unknown | undefined;
|
|
9227
8878
|
})[];
|
|
9228
8879
|
ignoreTags?: string[];
|
|
9229
|
-
}];
|
|
9230
|
-
// ----- vue/attributes-order -----
|
|
8880
|
+
}]; // ----- vue/attributes-order -----
|
|
9231
8881
|
type VueAttributesOrder = [] | [{
|
|
9232
8882
|
order?: (("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT") | ("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT")[])[];
|
|
9233
8883
|
alphabetical?: boolean;
|
|
9234
8884
|
sortLineLength?: boolean;
|
|
9235
|
-
|
|
9236
|
-
// ----- vue/block-lang -----
|
|
8885
|
+
ignoreVBindObject?: boolean;
|
|
8886
|
+
}]; // ----- vue/block-lang -----
|
|
9237
8887
|
type VueBlockLang = [] | [{
|
|
9238
8888
|
[k: string]: {
|
|
9239
8889
|
lang?: (string | string[]);
|
|
9240
8890
|
allowNoLang?: boolean;
|
|
9241
8891
|
};
|
|
9242
|
-
}];
|
|
9243
|
-
// ----- vue/block-order -----
|
|
8892
|
+
}]; // ----- vue/block-order -----
|
|
9244
8893
|
type VueBlockOrder = [] | [{
|
|
9245
8894
|
order?: (string | string[])[];
|
|
9246
|
-
}];
|
|
9247
|
-
// ----- vue/block-
|
|
9248
|
-
type VueBlockSpacing = [] | [("always" | "never")];
|
|
9249
|
-
// ----- vue/block-tag-newline -----
|
|
8895
|
+
}]; // ----- vue/block-spacing -----
|
|
8896
|
+
type VueBlockSpacing = [] | [("always" | "never")]; // ----- vue/block-tag-newline -----
|
|
9250
8897
|
type VueBlockTagNewline = [] | [{
|
|
9251
8898
|
singleline?: ("always" | "never" | "consistent" | "ignore");
|
|
9252
8899
|
multiline?: ("always" | "never" | "consistent" | "ignore");
|
|
@@ -9258,20 +8905,17 @@ type VueBlockTagNewline = [] | [{
|
|
|
9258
8905
|
maxEmptyLines?: number;
|
|
9259
8906
|
};
|
|
9260
8907
|
};
|
|
9261
|
-
}];
|
|
9262
|
-
// ----- vue/brace-style -----
|
|
8908
|
+
}]; // ----- vue/brace-style -----
|
|
9263
8909
|
type VueBraceStyle = [] | [("1tbs" | "stroustrup" | "allman")] | [("1tbs" | "stroustrup" | "allman"), {
|
|
9264
8910
|
allowSingleLine?: boolean;
|
|
9265
|
-
}];
|
|
9266
|
-
// ----- vue/camelcase -----
|
|
8911
|
+
}]; // ----- vue/camelcase -----
|
|
9267
8912
|
type VueCamelcase = [] | [{
|
|
9268
8913
|
ignoreDestructuring?: boolean;
|
|
9269
8914
|
ignoreImports?: boolean;
|
|
9270
8915
|
ignoreGlobals?: boolean;
|
|
9271
8916
|
properties?: ("always" | "never");
|
|
9272
8917
|
allow?: string[];
|
|
9273
|
-
}];
|
|
9274
|
-
// ----- vue/comma-dangle -----
|
|
8918
|
+
}]; // ----- vue/comma-dangle -----
|
|
9275
8919
|
type VueCommaDangle = [] | [(_VueCommaDangleValue | {
|
|
9276
8920
|
arrays?: _VueCommaDangleValueWithIgnore;
|
|
9277
8921
|
objects?: _VueCommaDangleValueWithIgnore;
|
|
@@ -9280,82 +8924,62 @@ type VueCommaDangle = [] | [(_VueCommaDangleValue | {
|
|
|
9280
8924
|
functions?: _VueCommaDangleValueWithIgnore;
|
|
9281
8925
|
})];
|
|
9282
8926
|
type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline");
|
|
9283
|
-
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline");
|
|
9284
|
-
// ----- vue/comma-spacing -----
|
|
8927
|
+
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline"); // ----- vue/comma-spacing -----
|
|
9285
8928
|
type VueCommaSpacing = [] | [{
|
|
9286
8929
|
before?: boolean;
|
|
9287
8930
|
after?: boolean;
|
|
9288
|
-
}];
|
|
9289
|
-
// ----- vue/comma-style -----
|
|
8931
|
+
}]; // ----- vue/comma-style -----
|
|
9290
8932
|
type VueCommaStyle = [] | [("first" | "last")] | [("first" | "last"), {
|
|
9291
8933
|
exceptions?: {
|
|
9292
8934
|
[k: string]: boolean | undefined;
|
|
9293
8935
|
};
|
|
9294
|
-
}];
|
|
9295
|
-
// ----- vue/comment-directive -----
|
|
8936
|
+
}]; // ----- vue/comment-directive -----
|
|
9296
8937
|
type VueCommentDirective = [] | [{
|
|
9297
8938
|
reportUnusedDisableDirectives?: boolean;
|
|
9298
|
-
}];
|
|
9299
|
-
// ----- vue/component-
|
|
9300
|
-
type
|
|
9301
|
-
// ----- vue/component-definition-name-casing -----
|
|
9302
|
-
type VueComponentDefinitionNameCasing = [] | [("PascalCase" | "kebab-case")];
|
|
9303
|
-
// ----- vue/component-name-in-template-casing -----
|
|
8939
|
+
}]; // ----- vue/component-api-style -----
|
|
8940
|
+
type VueComponentApiStyle = [] | [[("script-setup" | "composition" | "composition-vue2" | "options"), ...(("script-setup" | "composition" | "composition-vue2" | "options"))[]]]; // ----- vue/component-definition-name-casing -----
|
|
8941
|
+
type VueComponentDefinitionNameCasing = [] | [("PascalCase" | "kebab-case")]; // ----- vue/component-name-in-template-casing -----
|
|
9304
8942
|
type VueComponentNameInTemplateCasing = [] | [("PascalCase" | "kebab-case")] | [("PascalCase" | "kebab-case"), {
|
|
9305
8943
|
globals?: string[];
|
|
9306
8944
|
ignores?: string[];
|
|
9307
8945
|
registeredComponentsOnly?: boolean;
|
|
9308
|
-
}];
|
|
9309
|
-
// ----- vue/
|
|
9310
|
-
type VueComponentOptionsNameCasing = [] | [("camelCase" | "kebab-case" | "PascalCase")];
|
|
9311
|
-
// ----- vue/custom-event-name-casing -----
|
|
8946
|
+
}]; // ----- vue/component-options-name-casing -----
|
|
8947
|
+
type VueComponentOptionsNameCasing = [] | [("camelCase" | "kebab-case" | "PascalCase")]; // ----- vue/custom-event-name-casing -----
|
|
9312
8948
|
type VueCustomEventNameCasing = [] | [("kebab-case" | "camelCase")] | [("kebab-case" | "camelCase"), {
|
|
9313
8949
|
ignores?: string[];
|
|
9314
|
-
}];
|
|
9315
|
-
// ----- vue/define-
|
|
9316
|
-
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")];
|
|
9317
|
-
// ----- vue/define-macros-order -----
|
|
8950
|
+
}]; // ----- vue/define-emits-declaration -----
|
|
8951
|
+
type VueDefineEmitsDeclaration = [] | [("type-based" | "type-literal" | "runtime")]; // ----- vue/define-macros-order -----
|
|
9318
8952
|
type VueDefineMacrosOrder = [] | [{
|
|
9319
8953
|
order?: string[];
|
|
9320
8954
|
defineExposeLast?: boolean;
|
|
9321
|
-
}];
|
|
9322
|
-
// ----- vue/define-props-
|
|
9323
|
-
type VueDefinePropsDeclaration = [] | [("type-based" | "runtime")];
|
|
9324
|
-
// ----- vue/define-props-destructuring -----
|
|
8955
|
+
}]; // ----- vue/define-props-declaration -----
|
|
8956
|
+
type VueDefinePropsDeclaration = [] | [("type-based" | "runtime")]; // ----- vue/define-props-destructuring -----
|
|
9325
8957
|
type VueDefinePropsDestructuring = [] | [{
|
|
9326
|
-
destructure?: ("always" | "never");
|
|
9327
|
-
}];
|
|
9328
|
-
// ----- vue/dot-
|
|
9329
|
-
type VueDotLocation = [] | [("object" | "property")];
|
|
9330
|
-
// ----- vue/dot-notation -----
|
|
8958
|
+
destructure?: ("only-when-assigned" | "always" | "never");
|
|
8959
|
+
}]; // ----- vue/dot-location -----
|
|
8960
|
+
type VueDotLocation = [] | [("object" | "property")]; // ----- vue/dot-notation -----
|
|
9331
8961
|
type VueDotNotation = [] | [{
|
|
9332
8962
|
allowKeywords?: boolean;
|
|
9333
8963
|
allowPattern?: string;
|
|
9334
|
-
}];
|
|
9335
|
-
// ----- vue/enforce-style-attribute -----
|
|
8964
|
+
}]; // ----- vue/enforce-style-attribute -----
|
|
9336
8965
|
type VueEnforceStyleAttribute = [] | [{
|
|
9337
8966
|
allow?: [("plain" | "scoped" | "module"), ...(("plain" | "scoped" | "module"))[]];
|
|
9338
|
-
}];
|
|
9339
|
-
// ----- vue/eqeqeq -----
|
|
8967
|
+
}]; // ----- vue/eqeqeq -----
|
|
9340
8968
|
type VueEqeqeq = ([] | ["always"] | ["always", {
|
|
9341
8969
|
null?: ("always" | "never" | "ignore");
|
|
9342
|
-
}] | [] | [("smart" | "allow-null")]);
|
|
9343
|
-
// ----- vue/first-attribute-linebreak -----
|
|
8970
|
+
}] | [] | [("smart" | "allow-null")]); // ----- vue/first-attribute-linebreak -----
|
|
9344
8971
|
type VueFirstAttributeLinebreak = [] | [{
|
|
9345
8972
|
multiline?: ("below" | "beside" | "ignore");
|
|
9346
8973
|
singleline?: ("below" | "beside" | "ignore");
|
|
9347
|
-
}];
|
|
9348
|
-
// ----- vue/func-call-spacing -----
|
|
8974
|
+
}]; // ----- vue/func-call-spacing -----
|
|
9349
8975
|
type VueFuncCallSpacing = ([] | ["never"] | [] | ["always"] | ["always", {
|
|
9350
8976
|
allowNewlines?: boolean;
|
|
9351
|
-
}]);
|
|
9352
|
-
// ----- vue/html-button-has-type -----
|
|
8977
|
+
}]); // ----- vue/html-button-has-type -----
|
|
9353
8978
|
type VueHtmlButtonHasType = [] | [{
|
|
9354
8979
|
button?: boolean;
|
|
9355
8980
|
submit?: boolean;
|
|
9356
8981
|
reset?: boolean;
|
|
9357
|
-
}];
|
|
9358
|
-
// ----- vue/html-closing-bracket-newline -----
|
|
8982
|
+
}]; // ----- vue/html-closing-bracket-newline -----
|
|
9359
8983
|
type VueHtmlClosingBracketNewline = [] | [{
|
|
9360
8984
|
singleline?: ("always" | "never");
|
|
9361
8985
|
multiline?: ("always" | "never");
|
|
@@ -9363,14 +8987,12 @@ type VueHtmlClosingBracketNewline = [] | [{
|
|
|
9363
8987
|
singleline?: ("always" | "never");
|
|
9364
8988
|
multiline?: ("always" | "never");
|
|
9365
8989
|
};
|
|
9366
|
-
}];
|
|
9367
|
-
// ----- vue/html-closing-bracket-spacing -----
|
|
8990
|
+
}]; // ----- vue/html-closing-bracket-spacing -----
|
|
9368
8991
|
type VueHtmlClosingBracketSpacing = [] | [{
|
|
9369
8992
|
startTag?: ("always" | "never");
|
|
9370
8993
|
endTag?: ("always" | "never");
|
|
9371
8994
|
selfClosingTag?: ("always" | "never");
|
|
9372
|
-
}];
|
|
9373
|
-
// ----- vue/html-comment-content-newline -----
|
|
8995
|
+
}]; // ----- vue/html-comment-content-newline -----
|
|
9374
8996
|
type VueHtmlCommentContentNewline = [] | [(("always" | "never") | {
|
|
9375
8997
|
singleline?: ("always" | "never" | "ignore");
|
|
9376
8998
|
multiline?: ("always" | "never" | "ignore");
|
|
@@ -9379,14 +9001,11 @@ type VueHtmlCommentContentNewline = [] | [(("always" | "never") | {
|
|
|
9379
9001
|
multiline?: ("always" | "never" | "ignore");
|
|
9380
9002
|
}), {
|
|
9381
9003
|
exceptions?: string[];
|
|
9382
|
-
}];
|
|
9383
|
-
// ----- vue/html-comment-content-spacing -----
|
|
9004
|
+
}]; // ----- vue/html-comment-content-spacing -----
|
|
9384
9005
|
type VueHtmlCommentContentSpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
9385
9006
|
exceptions?: string[];
|
|
9386
|
-
}];
|
|
9387
|
-
// ----- vue/html-
|
|
9388
|
-
type VueHtmlCommentIndent = [] | [(number | "tab")];
|
|
9389
|
-
// ----- vue/html-indent -----
|
|
9007
|
+
}]; // ----- vue/html-comment-indent -----
|
|
9008
|
+
type VueHtmlCommentIndent = [] | [(number | "tab")]; // ----- vue/html-indent -----
|
|
9390
9009
|
type VueHtmlIndent = [] | [(number | "tab")] | [(number | "tab"), {
|
|
9391
9010
|
attribute?: number;
|
|
9392
9011
|
baseIndent?: number;
|
|
@@ -9402,12 +9021,10 @@ type VueHtmlIndent = [] | [(number | "tab")] | [(number | "tab"), {
|
|
|
9402
9021
|
} & {
|
|
9403
9022
|
[k: string]: unknown | undefined;
|
|
9404
9023
|
})[];
|
|
9405
|
-
}];
|
|
9406
|
-
// ----- vue/html-quotes -----
|
|
9024
|
+
}]; // ----- vue/html-quotes -----
|
|
9407
9025
|
type VueHtmlQuotes = [] | [("double" | "single")] | [("double" | "single"), {
|
|
9408
9026
|
avoidEscape?: boolean;
|
|
9409
|
-
}];
|
|
9410
|
-
// ----- vue/html-self-closing -----
|
|
9027
|
+
}]; // ----- vue/html-self-closing -----
|
|
9411
9028
|
type VueHtmlSelfClosing = [] | [{
|
|
9412
9029
|
html?: {
|
|
9413
9030
|
normal?: _VueHtmlSelfClosingOptionValue;
|
|
@@ -9417,8 +9034,7 @@ type VueHtmlSelfClosing = [] | [{
|
|
|
9417
9034
|
svg?: _VueHtmlSelfClosingOptionValue;
|
|
9418
9035
|
math?: _VueHtmlSelfClosingOptionValue;
|
|
9419
9036
|
}];
|
|
9420
|
-
type _VueHtmlSelfClosingOptionValue = ("always" | "never" | "any");
|
|
9421
|
-
// ----- vue/key-spacing -----
|
|
9037
|
+
type _VueHtmlSelfClosingOptionValue = ("always" | "never" | "any"); // ----- vue/key-spacing -----
|
|
9422
9038
|
type VueKeySpacing = [] | [({
|
|
9423
9039
|
align?: (("colon" | "value") | {
|
|
9424
9040
|
mode?: ("strict" | "minimum");
|
|
@@ -9463,8 +9079,7 @@ type VueKeySpacing = [] | [({
|
|
|
9463
9079
|
beforeColon?: boolean;
|
|
9464
9080
|
afterColon?: boolean;
|
|
9465
9081
|
};
|
|
9466
|
-
})];
|
|
9467
|
-
// ----- vue/keyword-spacing -----
|
|
9082
|
+
})]; // ----- vue/keyword-spacing -----
|
|
9468
9083
|
type VueKeywordSpacing = [] | [{
|
|
9469
9084
|
before?: boolean;
|
|
9470
9085
|
after?: boolean;
|
|
@@ -9742,13 +9357,11 @@ type VueKeywordSpacing = [] | [{
|
|
|
9742
9357
|
after?: boolean;
|
|
9743
9358
|
};
|
|
9744
9359
|
};
|
|
9745
|
-
}];
|
|
9746
|
-
// ----- vue/match-component-file-name -----
|
|
9360
|
+
}]; // ----- vue/match-component-file-name -----
|
|
9747
9361
|
type VueMatchComponentFileName = [] | [{
|
|
9748
9362
|
extensions?: string[];
|
|
9749
9363
|
shouldMatchCase?: boolean;
|
|
9750
|
-
}];
|
|
9751
|
-
// ----- vue/max-attributes-per-line -----
|
|
9364
|
+
}]; // ----- vue/max-attributes-per-line -----
|
|
9752
9365
|
type VueMaxAttributesPerLine = [] | [{
|
|
9753
9366
|
singleline?: (number | {
|
|
9754
9367
|
max?: number;
|
|
@@ -9756,8 +9369,7 @@ type VueMaxAttributesPerLine = [] | [{
|
|
|
9756
9369
|
multiline?: (number | {
|
|
9757
9370
|
max?: number;
|
|
9758
9371
|
});
|
|
9759
|
-
}];
|
|
9760
|
-
// ----- vue/max-len -----
|
|
9372
|
+
}]; // ----- vue/max-len -----
|
|
9761
9373
|
type VueMaxLen = [] | [({
|
|
9762
9374
|
code?: number;
|
|
9763
9375
|
template?: number;
|
|
@@ -9842,99 +9454,76 @@ type VueMaxLen = [] | [({
|
|
|
9842
9454
|
ignoreRegExpLiterals?: boolean;
|
|
9843
9455
|
ignoreHTMLAttributeValues?: boolean;
|
|
9844
9456
|
ignoreHTMLTextContents?: boolean;
|
|
9845
|
-
}];
|
|
9846
|
-
// ----- vue/max-lines-per-block -----
|
|
9457
|
+
}]; // ----- vue/max-lines-per-block -----
|
|
9847
9458
|
type VueMaxLinesPerBlock = [] | [{
|
|
9848
9459
|
style?: number;
|
|
9849
9460
|
template?: number;
|
|
9850
9461
|
script?: number;
|
|
9851
9462
|
skipBlankLines?: boolean;
|
|
9852
|
-
}];
|
|
9853
|
-
// ----- vue/max-props -----
|
|
9463
|
+
}]; // ----- vue/max-props -----
|
|
9854
9464
|
type VueMaxProps = [] | [{
|
|
9855
9465
|
maxProps?: number;
|
|
9856
|
-
}];
|
|
9857
|
-
// ----- vue/max-template-depth -----
|
|
9466
|
+
}]; // ----- vue/max-template-depth -----
|
|
9858
9467
|
type VueMaxTemplateDepth = [] | [{
|
|
9859
9468
|
maxDepth?: number;
|
|
9860
|
-
}];
|
|
9861
|
-
// ----- vue/multi-word-component-names -----
|
|
9469
|
+
}]; // ----- vue/multi-word-component-names -----
|
|
9862
9470
|
type VueMultiWordComponentNames = [] | [{
|
|
9863
9471
|
ignores?: string[];
|
|
9864
|
-
}];
|
|
9865
|
-
// ----- vue/multiline-html-element-content-newline -----
|
|
9472
|
+
}]; // ----- vue/multiline-html-element-content-newline -----
|
|
9866
9473
|
type VueMultilineHtmlElementContentNewline = [] | [{
|
|
9867
9474
|
ignoreWhenEmpty?: boolean;
|
|
9868
9475
|
ignores?: string[];
|
|
9869
9476
|
allowEmptyLines?: boolean;
|
|
9870
|
-
}];
|
|
9871
|
-
// ----- vue/
|
|
9872
|
-
type
|
|
9873
|
-
// ----- vue/mustache-interpolation-spacing -----
|
|
9874
|
-
type VueMustacheInterpolationSpacing = [] | [("always" | "never")];
|
|
9875
|
-
// ----- vue/new-line-between-multi-line-property -----
|
|
9477
|
+
}]; // ----- vue/multiline-ternary -----
|
|
9478
|
+
type VueMultilineTernary = [] | [("always" | "always-multiline" | "never")]; // ----- vue/mustache-interpolation-spacing -----
|
|
9479
|
+
type VueMustacheInterpolationSpacing = [] | [("always" | "never")]; // ----- vue/new-line-between-multi-line-property -----
|
|
9876
9480
|
type VueNewLineBetweenMultiLineProperty = [] | [{
|
|
9877
9481
|
minLineOfMultilineProperty?: number;
|
|
9878
|
-
}];
|
|
9879
|
-
// ----- vue/
|
|
9880
|
-
type VueNextTickStyle = [] | [("promise" | "callback")];
|
|
9881
|
-
// ----- vue/no-async-in-computed-properties -----
|
|
9482
|
+
}]; // ----- vue/next-tick-style -----
|
|
9483
|
+
type VueNextTickStyle = [] | [("promise" | "callback")]; // ----- vue/no-async-in-computed-properties -----
|
|
9882
9484
|
type VueNoAsyncInComputedProperties = [] | [{
|
|
9883
9485
|
ignoredObjectNames?: string[];
|
|
9884
|
-
}];
|
|
9885
|
-
// ----- vue/no-bare-strings-in-template -----
|
|
9486
|
+
}]; // ----- vue/no-bare-strings-in-template -----
|
|
9886
9487
|
type VueNoBareStringsInTemplate = [] | [{
|
|
9887
9488
|
allowlist?: string[];
|
|
9888
9489
|
attributes?: {
|
|
9889
9490
|
[k: string]: string[];
|
|
9890
9491
|
};
|
|
9891
9492
|
directives?: string[];
|
|
9892
|
-
}];
|
|
9893
|
-
// ----- vue/no-
|
|
9894
|
-
type VueNoBooleanDefault = [] | [("default-false" | "no-default")];
|
|
9895
|
-
// ----- vue/no-child-content -----
|
|
9493
|
+
}]; // ----- vue/no-boolean-default -----
|
|
9494
|
+
type VueNoBooleanDefault = [] | [("default-false" | "no-default")]; // ----- vue/no-child-content -----
|
|
9896
9495
|
type VueNoChildContent = [] | [{
|
|
9897
9496
|
additionalDirectives: [string, ...(string)[]];
|
|
9898
|
-
}];
|
|
9899
|
-
// ----- vue/no-console -----
|
|
9497
|
+
}]; // ----- vue/no-console -----
|
|
9900
9498
|
type VueNoConsole = [] | [{
|
|
9901
9499
|
allow?: [string, ...(string)[]];
|
|
9902
|
-
}];
|
|
9903
|
-
// ----- vue/no-constant-condition -----
|
|
9500
|
+
}]; // ----- vue/no-constant-condition -----
|
|
9904
9501
|
type VueNoConstantCondition = [] | [{
|
|
9905
9502
|
checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false);
|
|
9906
|
-
}];
|
|
9907
|
-
// ----- vue/no-deprecated-model-definition -----
|
|
9503
|
+
}]; // ----- vue/no-deprecated-model-definition -----
|
|
9908
9504
|
type VueNoDeprecatedModelDefinition = [] | [{
|
|
9909
9505
|
allowVue3Compat?: boolean;
|
|
9910
|
-
}];
|
|
9911
|
-
// ----- vue/no-deprecated-router-link-tag-prop -----
|
|
9506
|
+
}]; // ----- vue/no-deprecated-router-link-tag-prop -----
|
|
9912
9507
|
type VueNoDeprecatedRouterLinkTagProp = [] | [{
|
|
9913
9508
|
components?: [string, ...(string)[]];
|
|
9914
|
-
}];
|
|
9915
|
-
// ----- vue/no-deprecated-slot-attribute -----
|
|
9509
|
+
}]; // ----- vue/no-deprecated-slot-attribute -----
|
|
9916
9510
|
type VueNoDeprecatedSlotAttribute = [] | [{
|
|
9917
9511
|
ignore?: string[];
|
|
9918
9512
|
ignoreParents?: string[];
|
|
9919
|
-
}];
|
|
9920
|
-
// ----- vue/no-dupe-keys -----
|
|
9513
|
+
}]; // ----- vue/no-dupe-keys -----
|
|
9921
9514
|
type VueNoDupeKeys = [] | [{
|
|
9922
9515
|
groups?: unknown[];
|
|
9923
|
-
}];
|
|
9924
|
-
// ----- vue/no-duplicate-attr-inheritance -----
|
|
9516
|
+
}]; // ----- vue/no-duplicate-attr-inheritance -----
|
|
9925
9517
|
type VueNoDuplicateAttrInheritance = [] | [{
|
|
9926
9518
|
checkMultiRootNodes?: boolean;
|
|
9927
|
-
}];
|
|
9928
|
-
// ----- vue/no-duplicate-attributes -----
|
|
9519
|
+
}]; // ----- vue/no-duplicate-attributes -----
|
|
9929
9520
|
type VueNoDuplicateAttributes = [] | [{
|
|
9930
9521
|
allowCoexistClass?: boolean;
|
|
9931
9522
|
allowCoexistStyle?: boolean;
|
|
9932
|
-
}];
|
|
9933
|
-
// ----- vue/no-empty-pattern -----
|
|
9523
|
+
}]; // ----- vue/no-empty-pattern -----
|
|
9934
9524
|
type VueNoEmptyPattern = [] | [{
|
|
9935
9525
|
allowObjectPatternsAsParameters?: boolean;
|
|
9936
|
-
}];
|
|
9937
|
-
// ----- vue/no-extra-parens -----
|
|
9526
|
+
}]; // ----- vue/no-extra-parens -----
|
|
9938
9527
|
type VueNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
9939
9528
|
conditionalAssign?: boolean;
|
|
9940
9529
|
ternaryOperandBinaryExpressions?: boolean;
|
|
@@ -9946,16 +9535,14 @@ type VueNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
|
|
|
9946
9535
|
enforceForNewInMemberExpressions?: boolean;
|
|
9947
9536
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
9948
9537
|
allowParensAfterCommentPattern?: string;
|
|
9949
|
-
}]);
|
|
9950
|
-
// ----- vue/no-implicit-coercion -----
|
|
9538
|
+
}]); // ----- vue/no-implicit-coercion -----
|
|
9951
9539
|
type VueNoImplicitCoercion = [] | [{
|
|
9952
9540
|
boolean?: boolean;
|
|
9953
9541
|
number?: boolean;
|
|
9954
9542
|
string?: boolean;
|
|
9955
9543
|
disallowTemplateShorthand?: boolean;
|
|
9956
9544
|
allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[];
|
|
9957
|
-
}];
|
|
9958
|
-
// ----- vue/no-irregular-whitespace -----
|
|
9545
|
+
}]; // ----- vue/no-irregular-whitespace -----
|
|
9959
9546
|
type VueNoIrregularWhitespace = [] | [{
|
|
9960
9547
|
skipComments?: boolean;
|
|
9961
9548
|
skipStrings?: boolean;
|
|
@@ -9963,24 +9550,20 @@ type VueNoIrregularWhitespace = [] | [{
|
|
|
9963
9550
|
skipRegExps?: boolean;
|
|
9964
9551
|
skipHTMLAttributeValues?: boolean;
|
|
9965
9552
|
skipHTMLTextContents?: boolean;
|
|
9966
|
-
}];
|
|
9967
|
-
// ----- vue/no-lone-template -----
|
|
9553
|
+
}]; // ----- vue/no-lone-template -----
|
|
9968
9554
|
type VueNoLoneTemplate = [] | [{
|
|
9969
9555
|
ignoreAccessible?: boolean;
|
|
9970
|
-
}];
|
|
9971
|
-
// ----- vue/no-multi-spaces -----
|
|
9556
|
+
}]; // ----- vue/no-multi-spaces -----
|
|
9972
9557
|
type VueNoMultiSpaces = [] | [{
|
|
9973
9558
|
ignoreProperties?: boolean;
|
|
9974
|
-
|
|
9975
|
-
// ----- vue/no-multiple-template-root -----
|
|
9559
|
+
ignoreEOLComments?: boolean;
|
|
9560
|
+
}]; // ----- vue/no-multiple-template-root -----
|
|
9976
9561
|
type VueNoMultipleTemplateRoot = [] | [{
|
|
9977
9562
|
disallowComments?: boolean;
|
|
9978
|
-
}];
|
|
9979
|
-
// ----- vue/no-mutating-props -----
|
|
9563
|
+
}]; // ----- vue/no-mutating-props -----
|
|
9980
9564
|
type VueNoMutatingProps = [] | [{
|
|
9981
9565
|
shallowOnly?: boolean;
|
|
9982
|
-
}];
|
|
9983
|
-
// ----- vue/no-parsing-error -----
|
|
9566
|
+
}]; // ----- vue/no-parsing-error -----
|
|
9984
9567
|
type VueNoParsingError = [] | [{
|
|
9985
9568
|
"abrupt-closing-of-empty-comment"?: boolean;
|
|
9986
9569
|
"absence-of-digits-in-numeric-character-reference"?: boolean;
|
|
@@ -10018,164 +9601,135 @@ type VueNoParsingError = [] | [{
|
|
|
10018
9601
|
"non-void-html-element-start-tag-with-trailing-solidus"?: boolean;
|
|
10019
9602
|
"x-invalid-end-tag"?: boolean;
|
|
10020
9603
|
"x-invalid-namespace"?: boolean;
|
|
10021
|
-
}];
|
|
10022
|
-
// ----- vue/no-potential-component-option-typo -----
|
|
9604
|
+
}]; // ----- vue/no-potential-component-option-typo -----
|
|
10023
9605
|
type VueNoPotentialComponentOptionTypo = [] | [{
|
|
10024
9606
|
presets?: ("all" | "vue" | "vue-router" | "nuxt")[];
|
|
10025
9607
|
custom?: string[];
|
|
10026
9608
|
threshold?: number;
|
|
10027
|
-
}];
|
|
10028
|
-
// ----- vue/no-required-prop-with-default -----
|
|
9609
|
+
}]; // ----- vue/no-required-prop-with-default -----
|
|
10029
9610
|
type VueNoRequiredPropWithDefault = [] | [{
|
|
10030
9611
|
autofix?: boolean;
|
|
10031
|
-
}];
|
|
10032
|
-
// ----- vue/no-reserved-component-names -----
|
|
9612
|
+
}]; // ----- vue/no-reserved-component-names -----
|
|
10033
9613
|
type VueNoReservedComponentNames = [] | [{
|
|
10034
9614
|
disallowVueBuiltInComponents?: boolean;
|
|
10035
9615
|
disallowVue3BuiltInComponents?: boolean;
|
|
10036
9616
|
htmlElementCaseSensitive?: boolean;
|
|
10037
|
-
}];
|
|
10038
|
-
// ----- vue/no-reserved-keys -----
|
|
9617
|
+
}]; // ----- vue/no-reserved-keys -----
|
|
10039
9618
|
type VueNoReservedKeys = [] | [{
|
|
10040
9619
|
reserved?: unknown[];
|
|
10041
9620
|
groups?: unknown[];
|
|
10042
|
-
}];
|
|
10043
|
-
// ----- vue/no-reserved-props -----
|
|
9621
|
+
}]; // ----- vue/no-reserved-props -----
|
|
10044
9622
|
type VueNoReservedProps = [] | [{
|
|
10045
9623
|
vueVersion?: (2 | 3);
|
|
10046
|
-
}];
|
|
10047
|
-
// ----- vue/no-restricted-block -----
|
|
9624
|
+
}]; // ----- vue/no-restricted-block -----
|
|
10048
9625
|
type VueNoRestrictedBlock = (string | {
|
|
10049
9626
|
element: string;
|
|
10050
9627
|
message?: string;
|
|
10051
|
-
})[];
|
|
10052
|
-
// ----- vue/no-restricted-call-after-await -----
|
|
9628
|
+
})[]; // ----- vue/no-restricted-call-after-await -----
|
|
10053
9629
|
type VueNoRestrictedCallAfterAwait = {
|
|
10054
9630
|
module: string;
|
|
10055
9631
|
path?: (string | string[]);
|
|
10056
9632
|
message?: string;
|
|
10057
|
-
}[];
|
|
10058
|
-
// ----- vue/no-restricted-
|
|
10059
|
-
type VueNoRestrictedClass = string[];
|
|
10060
|
-
// ----- vue/no-restricted-component-names -----
|
|
9633
|
+
}[]; // ----- vue/no-restricted-class -----
|
|
9634
|
+
type VueNoRestrictedClass = string[]; // ----- vue/no-restricted-component-names -----
|
|
10061
9635
|
type VueNoRestrictedComponentNames = (string | {
|
|
10062
9636
|
name: string;
|
|
10063
9637
|
message?: string;
|
|
10064
9638
|
suggest?: string;
|
|
10065
|
-
})[];
|
|
10066
|
-
// ----- vue/no-restricted-component-options -----
|
|
9639
|
+
})[]; // ----- vue/no-restricted-component-options -----
|
|
10067
9640
|
type VueNoRestrictedComponentOptions = (string | string[] | {
|
|
10068
9641
|
name: (string | string[]);
|
|
10069
9642
|
message?: string;
|
|
10070
|
-
})[];
|
|
10071
|
-
// ----- vue/no-restricted-custom-event -----
|
|
9643
|
+
})[]; // ----- vue/no-restricted-custom-event -----
|
|
10072
9644
|
type VueNoRestrictedCustomEvent = (string | {
|
|
10073
9645
|
event: string;
|
|
10074
9646
|
message?: string;
|
|
10075
9647
|
suggest?: string;
|
|
10076
|
-
})[];
|
|
10077
|
-
// ----- vue/no-restricted-html-elements -----
|
|
9648
|
+
})[]; // ----- vue/no-restricted-html-elements -----
|
|
10078
9649
|
type VueNoRestrictedHtmlElements = (string | {
|
|
10079
9650
|
element: (string | string[]);
|
|
10080
9651
|
message?: string;
|
|
10081
|
-
})[];
|
|
10082
|
-
// ----- vue/no-restricted-props -----
|
|
9652
|
+
})[]; // ----- vue/no-restricted-props -----
|
|
10083
9653
|
type VueNoRestrictedProps = (string | {
|
|
10084
9654
|
name: string;
|
|
10085
9655
|
message?: string;
|
|
10086
9656
|
suggest?: string;
|
|
10087
|
-
})[];
|
|
10088
|
-
// ----- vue/no-restricted-static-attribute -----
|
|
9657
|
+
})[]; // ----- vue/no-restricted-static-attribute -----
|
|
10089
9658
|
type VueNoRestrictedStaticAttribute = (string | {
|
|
10090
9659
|
key: string;
|
|
10091
9660
|
value?: (string | true);
|
|
10092
9661
|
element?: string;
|
|
10093
9662
|
message?: string;
|
|
10094
|
-
})[];
|
|
10095
|
-
// ----- vue/no-restricted-syntax -----
|
|
9663
|
+
})[]; // ----- vue/no-restricted-syntax -----
|
|
10096
9664
|
type VueNoRestrictedSyntax = (string | {
|
|
10097
9665
|
selector: string;
|
|
10098
9666
|
message?: string;
|
|
10099
|
-
})[];
|
|
10100
|
-
// ----- vue/no-restricted-v-bind -----
|
|
9667
|
+
})[]; // ----- vue/no-restricted-v-bind -----
|
|
10101
9668
|
type VueNoRestrictedVBind = ((string | null) | {
|
|
10102
9669
|
argument: (string | null);
|
|
10103
9670
|
modifiers?: ("prop" | "camel" | "sync" | "attr")[];
|
|
10104
9671
|
element?: string;
|
|
10105
9672
|
message?: string;
|
|
10106
|
-
})[];
|
|
10107
|
-
// ----- vue/no-restricted-v-on -----
|
|
9673
|
+
})[]; // ----- vue/no-restricted-v-on -----
|
|
10108
9674
|
type VueNoRestrictedVOn = ((string | null) | {
|
|
10109
9675
|
argument: (string | null);
|
|
10110
9676
|
element?: string;
|
|
10111
9677
|
message?: string;
|
|
10112
9678
|
modifiers?: [("prevent" | "stop" | "capture" | "self" | "once" | "passive"), ...(("prevent" | "stop" | "capture" | "self" | "once" | "passive"))[]];
|
|
10113
|
-
})[];
|
|
10114
|
-
// ----- vue/no-static-inline-styles -----
|
|
9679
|
+
})[]; // ----- vue/no-static-inline-styles -----
|
|
10115
9680
|
type VueNoStaticInlineStyles = [] | [{
|
|
10116
9681
|
allowBinding?: boolean;
|
|
10117
|
-
}];
|
|
10118
|
-
// ----- vue/no-template-shadow -----
|
|
9682
|
+
}]; // ----- vue/no-template-shadow -----
|
|
10119
9683
|
type VueNoTemplateShadow = [] | [{
|
|
10120
9684
|
allow?: string[];
|
|
10121
|
-
}];
|
|
10122
|
-
// ----- vue/no-template-target-blank -----
|
|
9685
|
+
}]; // ----- vue/no-template-target-blank -----
|
|
10123
9686
|
type VueNoTemplateTargetBlank = [] | [{
|
|
10124
9687
|
allowReferrer?: boolean;
|
|
10125
9688
|
enforceDynamicLinks?: ("always" | "never");
|
|
10126
|
-
}];
|
|
10127
|
-
// ----- vue/no-undef-components -----
|
|
9689
|
+
}]; // ----- vue/no-undef-components -----
|
|
10128
9690
|
type VueNoUndefComponents = [] | [{
|
|
10129
9691
|
ignorePatterns?: unknown[];
|
|
10130
|
-
}];
|
|
10131
|
-
|
|
9692
|
+
}]; // ----- vue/no-undef-directives -----
|
|
9693
|
+
type VueNoUndefDirectives = [] | [{
|
|
9694
|
+
ignore?: string[];
|
|
9695
|
+
}]; // ----- vue/no-undef-properties -----
|
|
10132
9696
|
type VueNoUndefProperties = [] | [{
|
|
10133
9697
|
ignores?: string[];
|
|
10134
|
-
}];
|
|
10135
|
-
// ----- vue/no-unsupported-features -----
|
|
9698
|
+
}]; // ----- vue/no-unsupported-features -----
|
|
10136
9699
|
type VueNoUnsupportedFeatures = [] | [{
|
|
10137
9700
|
version?: string;
|
|
10138
9701
|
ignores?: ("slot-scope-attribute" | "dynamic-directive-arguments" | "v-slot" | "script-setup" | "style-css-vars-injection" | "v-model-argument" | "v-model-custom-modifiers" | "v-is" | "is-attribute-with-vue-prefix" | "v-memo" | "v-bind-prop-modifier-shorthand" | "v-bind-attr-modifier" | "define-options" | "define-slots" | "define-model" | "v-bind-same-name-shorthand")[];
|
|
10139
|
-
}];
|
|
10140
|
-
// ----- vue/no-unused-components -----
|
|
9702
|
+
}]; // ----- vue/no-unused-components -----
|
|
10141
9703
|
type VueNoUnusedComponents = [] | [{
|
|
10142
9704
|
ignoreWhenBindingPresent?: boolean;
|
|
10143
|
-
}];
|
|
10144
|
-
// ----- vue/no-unused-properties -----
|
|
9705
|
+
}]; // ----- vue/no-unused-properties -----
|
|
10145
9706
|
type VueNoUnusedProperties = [] | [{
|
|
10146
9707
|
groups?: ("props" | "data" | "asyncData" | "computed" | "methods" | "setup")[];
|
|
10147
9708
|
deepData?: boolean;
|
|
10148
9709
|
ignorePublicMembers?: boolean;
|
|
10149
9710
|
unreferencedOptions?: ("unknownMemberAsUnreferenced" | "returnAsUnreferenced")[];
|
|
10150
|
-
}];
|
|
10151
|
-
// ----- vue/no-unused-vars -----
|
|
9711
|
+
}]; // ----- vue/no-unused-vars -----
|
|
10152
9712
|
type VueNoUnusedVars = [] | [{
|
|
10153
9713
|
ignorePattern?: string;
|
|
10154
|
-
}];
|
|
10155
|
-
// ----- vue/no-use-v-if-with-v-for -----
|
|
9714
|
+
}]; // ----- vue/no-use-v-if-with-v-for -----
|
|
10156
9715
|
type VueNoUseVIfWithVFor = [] | [{
|
|
10157
9716
|
allowUsingIterationVar?: boolean;
|
|
10158
|
-
}];
|
|
10159
|
-
// ----- vue/no-useless-mustaches -----
|
|
9717
|
+
}]; // ----- vue/no-useless-mustaches -----
|
|
10160
9718
|
type VueNoUselessMustaches = [] | [{
|
|
10161
9719
|
ignoreIncludesComment?: boolean;
|
|
10162
9720
|
ignoreStringEscape?: boolean;
|
|
10163
|
-
}];
|
|
10164
|
-
// ----- vue/no-useless-v-bind -----
|
|
9721
|
+
}]; // ----- vue/no-useless-v-bind -----
|
|
10165
9722
|
type VueNoUselessVBind = [] | [{
|
|
10166
9723
|
ignoreIncludesComment?: boolean;
|
|
10167
9724
|
ignoreStringEscape?: boolean;
|
|
10168
|
-
}];
|
|
10169
|
-
// ----- vue/no-v-html -----
|
|
9725
|
+
}]; // ----- vue/no-v-html -----
|
|
10170
9726
|
type VueNoVHtml = [] | [{
|
|
10171
9727
|
ignorePattern?: string;
|
|
10172
|
-
}];
|
|
10173
|
-
// ----- vue/no-v-text-v-html-on-component -----
|
|
9728
|
+
}]; // ----- vue/no-v-text-v-html-on-component -----
|
|
10174
9729
|
type VueNoVTextVHtmlOnComponent = [] | [{
|
|
10175
9730
|
allow?: string[];
|
|
10176
9731
|
ignoreElementNamespaces?: boolean;
|
|
10177
|
-
}];
|
|
10178
|
-
// ----- vue/object-curly-newline -----
|
|
9732
|
+
}]; // ----- vue/object-curly-newline -----
|
|
10179
9733
|
type VueObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
10180
9734
|
multiline?: boolean;
|
|
10181
9735
|
minProperties?: number;
|
|
@@ -10201,18 +9755,15 @@ type VueObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
10201
9755
|
minProperties?: number;
|
|
10202
9756
|
consistent?: boolean;
|
|
10203
9757
|
});
|
|
10204
|
-
})];
|
|
10205
|
-
// ----- vue/object-curly-spacing -----
|
|
9758
|
+
})]; // ----- vue/object-curly-spacing -----
|
|
10206
9759
|
type VueObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10207
9760
|
arraysInObjects?: boolean;
|
|
10208
9761
|
objectsInObjects?: boolean;
|
|
10209
|
-
}];
|
|
10210
|
-
// ----- vue/object-property-newline -----
|
|
9762
|
+
}]; // ----- vue/object-property-newline -----
|
|
10211
9763
|
type VueObjectPropertyNewline = [] | [{
|
|
10212
9764
|
allowAllPropertiesOnSameLine?: boolean;
|
|
10213
9765
|
allowMultiplePropertiesPerLine?: boolean;
|
|
10214
|
-
}];
|
|
10215
|
-
// ----- vue/object-shorthand -----
|
|
9766
|
+
}]; // ----- vue/object-shorthand -----
|
|
10216
9767
|
type VueObjectShorthand = ([] | [("always" | "methods" | "properties" | "never" | "consistent" | "consistent-as-needed")] | [] | [("always" | "methods" | "properties")] | [("always" | "methods" | "properties"), {
|
|
10217
9768
|
avoidQuotes?: boolean;
|
|
10218
9769
|
}] | [] | [("always" | "methods")] | [("always" | "methods"), {
|
|
@@ -10220,26 +9771,21 @@ type VueObjectShorthand = ([] | [("always" | "methods" | "properties" | "never"
|
|
|
10220
9771
|
methodsIgnorePattern?: string;
|
|
10221
9772
|
avoidQuotes?: boolean;
|
|
10222
9773
|
avoidExplicitReturnArrows?: boolean;
|
|
10223
|
-
}]);
|
|
10224
|
-
// ----- vue/operator-linebreak -----
|
|
9774
|
+
}]); // ----- vue/operator-linebreak -----
|
|
10225
9775
|
type VueOperatorLinebreak = [] | [("after" | "before" | "none" | null)] | [("after" | "before" | "none" | null), {
|
|
10226
9776
|
overrides?: {
|
|
10227
9777
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined;
|
|
10228
9778
|
};
|
|
10229
|
-
}];
|
|
10230
|
-
// ----- vue/order-in-components -----
|
|
9779
|
+
}]; // ----- vue/order-in-components -----
|
|
10231
9780
|
type VueOrderInComponents = [] | [{
|
|
10232
9781
|
order?: unknown[];
|
|
10233
|
-
}];
|
|
10234
|
-
// ----- vue/padding-line-between-
|
|
10235
|
-
type VuePaddingLineBetweenBlocks = [] | [("never" | "always")];
|
|
10236
|
-
// ----- vue/padding-line-between-tags -----
|
|
9782
|
+
}]; // ----- vue/padding-line-between-blocks -----
|
|
9783
|
+
type VuePaddingLineBetweenBlocks = [] | [("never" | "always")]; // ----- vue/padding-line-between-tags -----
|
|
10237
9784
|
type VuePaddingLineBetweenTags = [] | [{
|
|
10238
9785
|
blankLine: ("always" | "never" | "consistent");
|
|
10239
9786
|
prev: string;
|
|
10240
9787
|
next: string;
|
|
10241
|
-
}[]];
|
|
10242
|
-
// ----- vue/padding-lines-in-component-definition -----
|
|
9788
|
+
}[]]; // ----- vue/padding-lines-in-component-definition -----
|
|
10243
9789
|
type VuePaddingLinesInComponentDefinition = [] | [(("always" | "never") | {
|
|
10244
9790
|
betweenOptions?: ("never" | "always" | "ignore");
|
|
10245
9791
|
withinOption?: (("never" | "always" | "ignore") | {
|
|
@@ -10249,54 +9795,43 @@ type VuePaddingLinesInComponentDefinition = [] | [(("always" | "never") | {
|
|
|
10249
9795
|
});
|
|
10250
9796
|
});
|
|
10251
9797
|
groupSingleLineProperties?: boolean;
|
|
10252
|
-
})];
|
|
10253
|
-
// ----- vue/prefer-true-attribute-shorthand -----
|
|
9798
|
+
})]; // ----- vue/prefer-true-attribute-shorthand -----
|
|
10254
9799
|
type VuePreferTrueAttributeShorthand = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10255
9800
|
except?: string[];
|
|
10256
|
-
}];
|
|
10257
|
-
// ----- vue/prop-name-casing -----
|
|
9801
|
+
}]; // ----- vue/prop-name-casing -----
|
|
10258
9802
|
type VuePropNameCasing = [] | [("camelCase" | "snake_case")] | [("camelCase" | "snake_case"), {
|
|
10259
9803
|
ignoreProps?: string[];
|
|
10260
|
-
}];
|
|
10261
|
-
// ----- vue/quote-props -----
|
|
9804
|
+
}]; // ----- vue/quote-props -----
|
|
10262
9805
|
type VueQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
10263
9806
|
keywords?: boolean;
|
|
10264
9807
|
unnecessary?: boolean;
|
|
10265
9808
|
numbers?: boolean;
|
|
10266
|
-
}]);
|
|
10267
|
-
// ----- vue/require-direct-export -----
|
|
9809
|
+
}]); // ----- vue/require-direct-export -----
|
|
10268
9810
|
type VueRequireDirectExport = [] | [{
|
|
10269
9811
|
disallowFunctionalComponentFunction?: boolean;
|
|
10270
|
-
}];
|
|
10271
|
-
// ----- vue/require-explicit-emits -----
|
|
9812
|
+
}]; // ----- vue/require-explicit-emits -----
|
|
10272
9813
|
type VueRequireExplicitEmits = [] | [{
|
|
10273
9814
|
allowProps?: boolean;
|
|
10274
|
-
}];
|
|
10275
|
-
// ----- vue/require-macro-variable-name -----
|
|
9815
|
+
}]; // ----- vue/require-macro-variable-name -----
|
|
10276
9816
|
type VueRequireMacroVariableName = [] | [{
|
|
10277
9817
|
defineProps?: string;
|
|
10278
9818
|
defineEmits?: string;
|
|
10279
9819
|
defineSlots?: string;
|
|
10280
9820
|
useSlots?: string;
|
|
10281
9821
|
useAttrs?: string;
|
|
10282
|
-
}];
|
|
10283
|
-
// ----- vue/require-prop-comment -----
|
|
9822
|
+
}]; // ----- vue/require-prop-comment -----
|
|
10284
9823
|
type VueRequirePropComment = [] | [{
|
|
10285
9824
|
type?: ("JSDoc" | "line" | "block" | "any");
|
|
10286
|
-
}];
|
|
10287
|
-
// ----- vue/require-toggle-inside-transition -----
|
|
9825
|
+
}]; // ----- vue/require-toggle-inside-transition -----
|
|
10288
9826
|
type VueRequireToggleInsideTransition = [] | [{
|
|
10289
9827
|
additionalDirectives?: string[];
|
|
10290
|
-
}];
|
|
10291
|
-
// ----- vue/restricted-component-names -----
|
|
9828
|
+
}]; // ----- vue/restricted-component-names -----
|
|
10292
9829
|
type VueRestrictedComponentNames = [] | [{
|
|
10293
9830
|
allow?: string[];
|
|
10294
|
-
}];
|
|
10295
|
-
// ----- vue/return-in-computed-property -----
|
|
9831
|
+
}]; // ----- vue/return-in-computed-property -----
|
|
10296
9832
|
type VueReturnInComputedProperty = [] | [{
|
|
10297
9833
|
treatUndefinedAsUnspecified?: boolean;
|
|
10298
|
-
}];
|
|
10299
|
-
// ----- vue/script-indent -----
|
|
9834
|
+
}]; // ----- vue/script-indent -----
|
|
10300
9835
|
type VueScriptIndent = [] | [(number | "tab")] | [(number | "tab"), {
|
|
10301
9836
|
baseIndent?: number;
|
|
10302
9837
|
switchCase?: number;
|
|
@@ -10305,51 +9840,40 @@ type VueScriptIndent = [] | [(number | "tab")] | [(number | "tab"), {
|
|
|
10305
9840
|
} & {
|
|
10306
9841
|
[k: string]: unknown | undefined;
|
|
10307
9842
|
})[];
|
|
10308
|
-
}];
|
|
10309
|
-
// ----- vue/singleline-html-element-content-newline -----
|
|
9843
|
+
}]; // ----- vue/singleline-html-element-content-newline -----
|
|
10310
9844
|
type VueSinglelineHtmlElementContentNewline = [] | [{
|
|
10311
9845
|
ignoreWhenNoAttributes?: boolean;
|
|
10312
9846
|
ignoreWhenEmpty?: boolean;
|
|
10313
9847
|
ignores?: string[];
|
|
10314
9848
|
externalIgnores?: string[];
|
|
10315
|
-
}];
|
|
10316
|
-
// ----- vue/
|
|
10317
|
-
type VueSlotNameCasing = [] | [("camelCase" | "kebab-case" | "singleword")];
|
|
10318
|
-
// ----- vue/sort-keys -----
|
|
9849
|
+
}]; // ----- vue/slot-name-casing -----
|
|
9850
|
+
type VueSlotNameCasing = [] | [("camelCase" | "kebab-case" | "singleword")]; // ----- vue/sort-keys -----
|
|
10319
9851
|
type VueSortKeys = [] | [("asc" | "desc")] | [("asc" | "desc"), {
|
|
10320
9852
|
caseSensitive?: boolean;
|
|
10321
9853
|
ignoreChildrenOf?: unknown[];
|
|
10322
9854
|
ignoreGrandchildrenOf?: unknown[];
|
|
10323
9855
|
minKeys?: number;
|
|
10324
9856
|
natural?: boolean;
|
|
10325
|
-
}];
|
|
10326
|
-
// ----- vue/space-in-parens -----
|
|
9857
|
+
}]; // ----- vue/space-in-parens -----
|
|
10327
9858
|
type VueSpaceInParens = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10328
9859
|
exceptions?: ("{}" | "[]" | "()" | "empty")[];
|
|
10329
|
-
}];
|
|
10330
|
-
// ----- vue/space-infix-ops -----
|
|
9860
|
+
}]; // ----- vue/space-infix-ops -----
|
|
10331
9861
|
type VueSpaceInfixOps = [] | [{
|
|
10332
9862
|
int32Hint?: boolean;
|
|
10333
|
-
}];
|
|
10334
|
-
// ----- vue/space-unary-ops -----
|
|
9863
|
+
}]; // ----- vue/space-unary-ops -----
|
|
10335
9864
|
type VueSpaceUnaryOps = [] | [{
|
|
10336
9865
|
words?: boolean;
|
|
10337
9866
|
nonwords?: boolean;
|
|
10338
9867
|
overrides?: {
|
|
10339
9868
|
[k: string]: boolean | undefined;
|
|
10340
9869
|
};
|
|
10341
|
-
}];
|
|
10342
|
-
// ----- vue/
|
|
10343
|
-
type
|
|
10344
|
-
// ----- vue/this-in-template -----
|
|
10345
|
-
type VueThisInTemplate = [] | [("always" | "never")];
|
|
10346
|
-
// ----- vue/v-bind-style -----
|
|
9870
|
+
}]; // ----- vue/template-curly-spacing -----
|
|
9871
|
+
type VueTemplateCurlySpacing = [] | [("always" | "never")]; // ----- vue/this-in-template -----
|
|
9872
|
+
type VueThisInTemplate = [] | [("always" | "never")]; // ----- vue/v-bind-style -----
|
|
10347
9873
|
type VueVBindStyle = [] | [("shorthand" | "longform")] | [("shorthand" | "longform"), {
|
|
10348
9874
|
sameNameShorthand?: ("always" | "never" | "ignore");
|
|
10349
|
-
}];
|
|
10350
|
-
// ----- vue/v-
|
|
10351
|
-
type VueVForDelimiterStyle = [] | [("in" | "of")];
|
|
10352
|
-
// ----- vue/v-on-event-hyphenation -----
|
|
9875
|
+
}]; // ----- vue/v-for-delimiter-style -----
|
|
9876
|
+
type VueVForDelimiterStyle = [] | [("in" | "of")]; // ----- vue/v-on-event-hyphenation -----
|
|
10353
9877
|
type VueVOnEventHyphenation = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10354
9878
|
autofix?: boolean;
|
|
10355
9879
|
ignore?: (string & {
|
|
@@ -10358,42 +9882,36 @@ type VueVOnEventHyphenation = [] | [("always" | "never")] | [("always" | "never"
|
|
|
10358
9882
|
[k: string]: unknown | undefined;
|
|
10359
9883
|
})[];
|
|
10360
9884
|
ignoreTags?: string[];
|
|
10361
|
-
}];
|
|
10362
|
-
// ----- vue/v-on-handler-style -----
|
|
9885
|
+
}]; // ----- vue/v-on-handler-style -----
|
|
10363
9886
|
type VueVOnHandlerStyle = [] | [(("inline" | "inline-function") | ["method", ("inline" | "inline-function")])] | [(("inline" | "inline-function") | ["method", ("inline" | "inline-function")]), {
|
|
10364
9887
|
ignoreIncludesComment?: boolean;
|
|
10365
|
-
}];
|
|
10366
|
-
// ----- vue/v-
|
|
10367
|
-
type VueVOnStyle = [] | [("shorthand" | "longform")];
|
|
10368
|
-
// ----- vue/v-slot-style -----
|
|
9888
|
+
}]; // ----- vue/v-on-style -----
|
|
9889
|
+
type VueVOnStyle = [] | [("shorthand" | "longform")]; // ----- vue/v-slot-style -----
|
|
10369
9890
|
type VueVSlotStyle = [] | [(("shorthand" | "longform") | {
|
|
10370
9891
|
atComponent?: ("shorthand" | "longform" | "v-slot");
|
|
10371
9892
|
default?: ("shorthand" | "longform" | "v-slot");
|
|
10372
9893
|
named?: ("shorthand" | "longform");
|
|
10373
|
-
})];
|
|
10374
|
-
|
|
9894
|
+
})]; // ----- vue/valid-v-for -----
|
|
9895
|
+
type VueValidVFor = [] | [{
|
|
9896
|
+
allowEmptyAlias?: boolean;
|
|
9897
|
+
}]; // ----- vue/valid-v-on -----
|
|
10375
9898
|
type VueValidVOn = [] | [{
|
|
10376
9899
|
modifiers?: unknown[];
|
|
10377
|
-
}];
|
|
10378
|
-
// ----- vue/valid-v-slot -----
|
|
9900
|
+
}]; // ----- vue/valid-v-slot -----
|
|
10379
9901
|
type VueValidVSlot = [] | [{
|
|
10380
9902
|
allowModifiers?: boolean;
|
|
10381
|
-
}];
|
|
10382
|
-
// ----- wrap-iife -----
|
|
9903
|
+
}]; // ----- wrap-iife -----
|
|
10383
9904
|
type WrapIife = [] | [("outside" | "inside" | "any")] | [("outside" | "inside" | "any"), {
|
|
10384
9905
|
functionPrototypeMethods?: boolean;
|
|
10385
|
-
}];
|
|
10386
|
-
// ----- yield-star-spacing -----
|
|
9906
|
+
}]; // ----- yield-star-spacing -----
|
|
10387
9907
|
type YieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
10388
9908
|
before?: boolean;
|
|
10389
9909
|
after?: boolean;
|
|
10390
|
-
})];
|
|
10391
|
-
// ----- yoda -----
|
|
9910
|
+
})]; // ----- yoda -----
|
|
10392
9911
|
type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10393
9912
|
exceptRange?: boolean;
|
|
10394
9913
|
onlyEquality?: boolean;
|
|
10395
|
-
}];
|
|
10396
|
-
// Names of all the configs
|
|
9914
|
+
}]; // Names of all the configs
|
|
10397
9915
|
type ConfigNames = 'rhapsodic/ignores' | 'rhapsodic/javascript/setup' | 'rhapsodic/javascript/rules' | 'rhapsodic/imports/rules' | 'rhapsodic/unicorn/rules' | 'rhapsodic/typescript/setup' | 'rhapsodic/typescript/parser' | 'rhapsodic/typescript/rules' | 'rhapsodic/stylistic/rules' | 'rhapsodic/vue/setup' | 'rhapsodic/vue/rules' | 'rhapsodic/disables/cjs';
|
|
10398
9916
|
//#endregion
|
|
10399
9917
|
//#region src/types.d.ts
|