import * as vscode from 'vscode' ; import { expose } from './linter.impl' ; import { ResourceLimitsLinter } from './resourcelimits' ; export interface Linter { name ( ) : string ; lint ( document ) : Promise < vscode . Diagnostic [ ] > ; } export const linters = [ new ResourceLimitsLinter ( ) ] . map ( expose ) ;