Skip to content

Commit afe5642

Browse files
committed
refactor(types): rename ProjectContext to LinterContext
1 parent ca7748c commit afe5642

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/core/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export * from './lib/watch';
33

44
import type {
55
Config,
6-
ProjectContext,
6+
LinterContext,
77
Reporter,
88
Rule,
99
RuleContext,
@@ -26,7 +26,7 @@ export type FileLintCache = [
2626
export type Linter = ReturnType<typeof createLinter>;
2727

2828
export function createLinter(
29-
ctx: ProjectContext,
29+
ctx: LinterContext,
3030
rootDir: string,
3131
config: Config | Config[],
3232
handleError: (diag: ts.DiagnosticWithLocation, err: Error, stackOffset: number) => void,

packages/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
SourceFile,
99
} from 'typescript';
1010

11-
export interface ProjectContext {
11+
export interface LinterContext {
1212
typescript: typeof import('typescript');
1313
languageServiceHost: LanguageServiceHost;
1414
languageService: LanguageService;
@@ -22,7 +22,7 @@ export interface Config {
2222
}
2323

2424
export interface Plugin {
25-
(ctx: ProjectContext): PluginInstance;
25+
(ctx: LinterContext): PluginInstance;
2626
}
2727

2828
export interface PluginInstance {

packages/typescript-plugin/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Config, ProjectContext } from '@tsslint/config';
1+
import type { Config, LinterContext } from '@tsslint/config';
22
import type * as ts from 'typescript';
33

44
import core = require('@tsslint/core');
@@ -147,7 +147,7 @@ function decorateLanguageService(
147147
return;
148148
}
149149

150-
const projectContext: ProjectContext = {
150+
const projectContext: LinterContext = {
151151
languageServiceHost: info.languageServiceHost,
152152
languageService: info.languageService,
153153
typescript: ts,

0 commit comments

Comments
 (0)