• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ota-meshi / svelte-eslint-parser / 4581268530

01 Apr 2023 04:18AM UTC coverage: 90.693%. Remained the same
4581268530

push

github

GitHub
chore: release svelte-eslint-parser (#308)

880 of 1041 branches covered (84.53%)

Branch coverage included in aggregate %.

2053 of 2193 relevant lines covered (93.62%)

27060.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/src/parser/typescript/index.ts
1
import type { ESLintExtendedProgram } from "..";
435✔
2
import { parseScript } from "../script";
1✔
3
import { analyzeTypeScript } from "./analyze";
1✔
4
import type { TSESParseForESLintResult } from "./types";
5

6
/**
7
 * Parse for type script
8
 */
9
export function parseTypeScript(
10
  code: { script: string; render: string },
11
  attrs: Record<string, string | undefined>,
12
  parserOptions: any = {}
×
13
): ESLintExtendedProgram {
14
  const tsCtx = analyzeTypeScript(code, attrs, parserOptions);
432✔
15

16
  const result = parseScript(tsCtx.script, attrs, parserOptions);
432✔
17

18
  tsCtx.restoreContext.restore(result as unknown as TSESParseForESLintResult);
432✔
19

20
  return result;
432✔
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc