⬅️ Back to Table of Contents
📄 types.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
8 |
🔄 Re-exports |
1 |
📐 Interfaces |
2 |
📑 Type Aliases |
3 |
📚 Table of Contents
🛠️ File Location:
📂 packages/website/src/components/linter/types.ts
📦 Imports
Name |
Source |
analyze |
@typescript-eslint/scope-manager |
ScopeManager |
@typescript-eslint/scope-manager |
astConverter |
@typescript-eslint/typescript-estree/use-at-your-own-risk |
TSESTree |
@typescript-eslint/utils |
ClassicConfig |
@typescript-eslint/utils/ts-eslint |
Linter |
@typescript-eslint/utils/ts-eslint |
SourceCode |
@typescript-eslint/utils/ts-eslint |
esquery |
esquery |
Re-exports
Type |
Source |
Exported Names |
named |
@typescript-eslint/typescript-estree/use-at-your-own-risk |
ParseSettings |
Interfaces
UpdateModel
Interface Code
export interface UpdateModel {
storedAST?: TSESTree.Program;
storedScope?: ScopeManager;
storedTsAST?: ts.Node;
typeChecker?: ts.TypeChecker;
}
Properties
Name |
Type |
Optional |
Description |
storedAST |
TSESTree.Program |
✓ |
|
storedScope |
ScopeManager |
✓ |
|
storedTsAST |
ts.Node |
✓ |
|
typeChecker |
ts.TypeChecker |
✓ |
|
WebLinterModule
Interface Code
export interface WebLinterModule {
analyze: typeof analyze;
astConverter: typeof astConverter;
configs: Record<string, ClassicConfig.Config>;
createLinter: () => Linter;
esquery: typeof esquery;
visitorKeys: SourceCode.VisitorKeys;
}
Properties
Name |
Type |
Optional |
Description |
analyze |
typeof analyze |
✗ |
|
astConverter |
typeof astConverter |
✗ |
|
configs |
Record<string, ClassicConfig.Config> |
✗ |
|
createLinter |
() => Linter |
✗ |
|
esquery |
typeof esquery |
✗ |
|
visitorKeys |
SourceCode.VisitorKeys |
✗ |
|
Type Aliases
PlaygroundSystem
type PlaygroundSystem = {
removeFile: (fileName: string) => void;
searchFiles: (path: string) => string[];
} & Required<Pick<ts.System, 'deleteFile' | 'watchFile'>> &
ts.System;
LinterOnLint
type LinterOnLint = (
fileName: string,
messages: Linter.LintMessage[],
) => void;
LinterOnParse
type LinterOnParse = (fileName: string, model: UpdateModel) => void;