⬅️ Back to Table of Contents
📄 types.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
1 |
📐 Interfaces |
4 |
📑 Type Aliases |
9 |
📚 Table of Contents
🛠️ File Location:
📂 packages/website/src/components/types.ts
📦 Imports
Name |
Source |
TSESLint |
@typescript-eslint/utils |
Interfaces
RuleDetails
Interface Code
export interface RuleDetails {
description?: string;
name: string;
url?: string;
}
Properties
Name |
Type |
Optional |
Description |
description |
string |
✓ |
|
name |
string |
✗ |
|
url |
string |
✓ |
|
ConfigModel
Interface Code
export interface ConfigModel {
code: string;
eslintrc: string;
esQuery?: {
filter?: string;
selector: ESQuery.Selector;
};
fileType?: ConfigFileType;
scroll?: boolean;
showAST?: ConfigShowAst;
showTokens?: boolean;
sourceType?: SourceType;
ts: string;
tsconfig: string;
}
Properties
Name |
Type |
Optional |
Description |
code |
string |
✗ |
|
eslintrc |
string |
✗ |
|
esQuery |
`{ |
|
|
filter?: string; |
|
|
|
selector: ESQuery.Selector; |
|
|
|
}` |
✓ |
|
|
fileType |
ConfigFileType |
✓ |
|
scroll |
boolean |
✓ |
|
showAST |
ConfigShowAst |
✓ |
|
showTokens |
boolean |
✓ |
|
sourceType |
SourceType |
✓ |
|
ts |
string |
✗ |
|
tsconfig |
string |
✗ |
|
ErrorItem
Interface Code
export interface ErrorItem {
fixer?: { fix(): void; message: string };
location: string;
message: string;
severity: number;
suggestions: { fix(): void; message: string }[];
}
Properties
Name |
Type |
Optional |
Description |
fixer |
{ fix(): void; message: string } |
✓ |
|
location |
string |
✗ |
|
message |
string |
✗ |
|
severity |
number |
✗ |
|
suggestions |
{ fix(): void; message: string }[] |
✗ |
|
ErrorGroup
Interface Code
export interface ErrorGroup {
group: string;
items: ErrorItem[];
uri?: string;
}
Properties
Name |
Type |
Optional |
Description |
group |
string |
✗ |
|
items |
ErrorItem[] |
✗ |
|
uri |
string |
✓ |
|
Type Aliases
CompilerFlags
type CompilerFlags = Record<string, unknown>;
SourceType
type SourceType = TSESLint.SourceType;
RulesRecord
type RulesRecord = TSESLint.Linter.RulesRecord;
TabType
type TabType = 'code' | 'eslintrc' | 'tsconfig';
ConfigFileType
type ConfigFileType = `${ts.Extension}`;
ConfigShowAst
type ConfigShowAst = 'es' | 'scope' | 'ts' | 'types' | false;
SelectedRange
type SelectedRange = [number, number];
EslintRC
type EslintRC = { rules: RulesRecord } & Record<string, unknown>;
TSConfig
type TSConfig = {
compilerOptions: CompilerFlags;
} & Record<string, unknown>;