UNPKG

typescript-eslint-parser-for-extra-files

Version:

An experimental ESLint custom parser for Vue, Svelte, and Astro for use with TypeScript. It provides type information in combination with each framework's ESLint custom parser.

16 lines (13 loc) 446 B
import * as tsEslintParser from "@typescript-eslint/parser"; import { ParserOptions } from "@typescript-eslint/parser"; //#region src/meta.d.ts declare const meta: { name: string; version: string; }; declare const name: string; //#endregion //#region src/index.d.ts declare function parseForESLint(code: string, options?: ParserOptions): ReturnType<typeof tsEslintParser.parseForESLint>; //#endregion export { meta, name, parseForESLint };