@rotki/eslint-config 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +42 -12
- package/dist/index.js +8320 -7833
- package/package.json +23 -23
package/dist/index.d.ts
CHANGED
|
@@ -2134,7 +2134,7 @@ interface RuleOptions {
|
|
|
2134
2134
|
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
2135
2135
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
2136
2136
|
*/
|
|
2137
|
-
'markdown/table-column-count'?: Linter.RuleEntry<
|
|
2137
|
+
'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>;
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Enforce a maximum number of classes per file
|
|
2140
2140
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -5714,6 +5714,16 @@ interface RuleOptions {
|
|
|
5714
5714
|
* @see https://eslint.vuejs.org/rules/no-mutating-props.html
|
|
5715
5715
|
*/
|
|
5716
5716
|
'vue/no-mutating-props'?: Linter.RuleEntry<VueNoMutatingProps>;
|
|
5717
|
+
/**
|
|
5718
|
+
* Disallow negated conditions in `<template>`
|
|
5719
|
+
* @see https://eslint.vuejs.org/rules/no-negated-condition.html
|
|
5720
|
+
*/
|
|
5721
|
+
'vue/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5722
|
+
/**
|
|
5723
|
+
* disallow negated conditions in v-if/v-else
|
|
5724
|
+
* @see https://eslint.vuejs.org/rules/no-negated-v-if-condition.html
|
|
5725
|
+
*/
|
|
5726
|
+
'vue/no-negated-v-if-condition'?: Linter.RuleEntry<[]>;
|
|
5717
5727
|
/**
|
|
5718
5728
|
* disallow parsing errors in `<template>`
|
|
5719
5729
|
* @see https://eslint.vuejs.org/rules/no-parsing-error.html
|
|
@@ -7680,11 +7690,12 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
7680
7690
|
}];
|
|
7681
7691
|
// ----- @stylistic/padding-line-between-statements -----
|
|
7682
7692
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
7683
|
-
type
|
|
7693
|
+
type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ...(_StylisticPaddingLineBetweenStatementsStatementType)[]]);
|
|
7694
|
+
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "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");
|
|
7684
7695
|
type StylisticPaddingLineBetweenStatements = {
|
|
7685
7696
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
|
|
7686
|
-
prev:
|
|
7687
|
-
next:
|
|
7697
|
+
prev: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
7698
|
+
next: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
7688
7699
|
}[];
|
|
7689
7700
|
// ----- @stylistic/quote-props -----
|
|
7690
7701
|
type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
@@ -8743,6 +8754,7 @@ type AccessorPairs = [] | [{
|
|
|
8743
8754
|
getWithoutSet?: boolean;
|
|
8744
8755
|
setWithoutGet?: boolean;
|
|
8745
8756
|
enforceForClassMembers?: boolean;
|
|
8757
|
+
enforceForTSTypes?: boolean;
|
|
8746
8758
|
}];
|
|
8747
8759
|
// ----- antfu/consistent-chaining -----
|
|
8748
8760
|
type AntfuConsistentChaining = [] | [{
|
|
@@ -8997,7 +9009,9 @@ type GetterReturn = [] | [{
|
|
|
8997
9009
|
allowImplicit?: boolean;
|
|
8998
9010
|
}];
|
|
8999
9011
|
// ----- grouped-accessor-pairs -----
|
|
9000
|
-
type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")]
|
|
9012
|
+
type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")] | [("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
|
|
9013
|
+
enforceForTSTypes?: boolean;
|
|
9014
|
+
}];
|
|
9001
9015
|
// ----- handle-callback-err -----
|
|
9002
9016
|
type HandleCallbackErr = [] | [string];
|
|
9003
9017
|
// ----- id-blacklist -----
|
|
@@ -9788,6 +9802,10 @@ type MarkdownNoUnusedDefinitions = [] | [{
|
|
|
9788
9802
|
allowDefinitions?: string[];
|
|
9789
9803
|
allowFootnoteDefinitions?: string[];
|
|
9790
9804
|
}];
|
|
9805
|
+
// ----- markdown/table-column-count -----
|
|
9806
|
+
type MarkdownTableColumnCount = [] | [{
|
|
9807
|
+
checkMissingCells?: boolean;
|
|
9808
|
+
}];
|
|
9791
9809
|
// ----- max-classes-per-file -----
|
|
9792
9810
|
type MaxClassesPerFile = [] | [(number | {
|
|
9793
9811
|
ignoreExpressions?: boolean;
|
|
@@ -10133,10 +10151,17 @@ type NoRestrictedExports = [] | [({
|
|
|
10133
10151
|
};
|
|
10134
10152
|
})];
|
|
10135
10153
|
// ----- no-restricted-globals -----
|
|
10136
|
-
type NoRestrictedGlobals = (string | {
|
|
10154
|
+
type NoRestrictedGlobals = ((string | {
|
|
10137
10155
|
name: string;
|
|
10138
10156
|
message?: string;
|
|
10139
|
-
})[]
|
|
10157
|
+
})[] | [] | [{
|
|
10158
|
+
globals: (string | {
|
|
10159
|
+
name: string;
|
|
10160
|
+
message?: string;
|
|
10161
|
+
})[];
|
|
10162
|
+
checkGlobalObject?: boolean;
|
|
10163
|
+
globalObjects?: string[];
|
|
10164
|
+
}]);
|
|
10140
10165
|
// ----- no-restricted-imports -----
|
|
10141
10166
|
type NoRestrictedImports = ((string | {
|
|
10142
10167
|
name: string;
|
|
@@ -10265,6 +10290,7 @@ type NoUnusedVars = [] | [(("all" | "local") | {
|
|
|
10265
10290
|
caughtErrorsIgnorePattern?: string;
|
|
10266
10291
|
destructuredArrayIgnorePattern?: string;
|
|
10267
10292
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
10293
|
+
ignoreUsingDeclarations?: boolean;
|
|
10268
10294
|
reportUsedIgnorePattern?: boolean;
|
|
10269
10295
|
})];
|
|
10270
10296
|
// ----- no-use-before-define -----
|
|
@@ -10630,6 +10656,8 @@ type OneVar = [] | [(("always" | "never" | "consecutive") | {
|
|
|
10630
10656
|
var?: ("always" | "never" | "consecutive");
|
|
10631
10657
|
let?: ("always" | "never" | "consecutive");
|
|
10632
10658
|
const?: ("always" | "never" | "consecutive");
|
|
10659
|
+
using?: ("always" | "never" | "consecutive");
|
|
10660
|
+
awaitUsing?: ("always" | "never" | "consecutive");
|
|
10633
10661
|
} | {
|
|
10634
10662
|
initialized?: ("always" | "never" | "consecutive");
|
|
10635
10663
|
uninitialized?: ("always" | "never" | "consecutive");
|
|
@@ -13741,6 +13769,7 @@ type VueNoDeprecatedRouterLinkTagProp = [] | [{
|
|
|
13741
13769
|
// ----- vue/no-deprecated-slot-attribute -----
|
|
13742
13770
|
type VueNoDeprecatedSlotAttribute = [] | [{
|
|
13743
13771
|
ignore?: string[];
|
|
13772
|
+
ignoreParents?: string[];
|
|
13744
13773
|
}];
|
|
13745
13774
|
// ----- vue/no-dupe-keys -----
|
|
13746
13775
|
type VueNoDupeKeys = [] | [{
|
|
@@ -14548,13 +14577,17 @@ interface VendoredPrettierOptionsRequired {
|
|
|
14548
14577
|
//#region src/types.d.ts
|
|
14549
14578
|
type Awaitable<T> = T | Promise<T>;
|
|
14550
14579
|
interface Rules extends RuleOptions {}
|
|
14551
|
-
type TypedFlatConfigItem = Omit<Linter.Config
|
|
14580
|
+
type TypedFlatConfigItem = Omit<Linter.Config, 'plugins' | 'rules'> & {
|
|
14552
14581
|
/**
|
|
14553
14582
|
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
14554
14583
|
*
|
|
14555
14584
|
* @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
14556
14585
|
*/
|
|
14557
14586
|
plugins?: Record<string, any>;
|
|
14587
|
+
/**
|
|
14588
|
+
* An object containing the configured rules. When `files` or `ignores` are specified, these rule configurations are only available to the matching files.
|
|
14589
|
+
*/
|
|
14590
|
+
rules?: Linter.RulesRecord & Rules;
|
|
14558
14591
|
};
|
|
14559
14592
|
type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides) | (OptionsTypeScriptParserOptions & OptionsOverrides);
|
|
14560
14593
|
interface OptionsFormatters {
|
|
@@ -14848,7 +14881,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
14848
14881
|
* Requires installing:
|
|
14849
14882
|
* - `@rotki/eslint-plugin`
|
|
14850
14883
|
*
|
|
14851
|
-
*
|
|
14852
14884
|
* @default false
|
|
14853
14885
|
*/
|
|
14854
14886
|
rotki?: boolean | OptionsOverrides;
|
|
@@ -14857,7 +14889,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
14857
14889
|
* Requires installing:
|
|
14858
14890
|
* - `@intlify/eslint-plugin-vue-i18n`
|
|
14859
14891
|
*
|
|
14860
|
-
*
|
|
14861
14892
|
* @default false
|
|
14862
14893
|
*/
|
|
14863
14894
|
vueI18n?: boolean | OptionsVueI18n;
|
|
@@ -14866,7 +14897,6 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
14866
14897
|
*
|
|
14867
14898
|
* Requires installing
|
|
14868
14899
|
* - `eslint-plugin-storybook
|
|
14869
|
-
*
|
|
14870
14900
|
*/
|
|
14871
14901
|
storybook?: boolean | OptionsOverrides;
|
|
14872
14902
|
/**
|
|
@@ -14895,7 +14925,7 @@ declare const defaultPluginRenaming: {
|
|
|
14895
14925
|
declare function rotki(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'files'>, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
14896
14926
|
type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
14897
14927
|
declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
|
|
14898
|
-
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K):
|
|
14928
|
+
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): TypedFlatConfigItem['rules'];
|
|
14899
14929
|
//#endregion
|
|
14900
14930
|
//#region src/configs/comments.d.ts
|
|
14901
14931
|
declare function comments(): Promise<TypedFlatConfigItem[]>;
|