File: typescript.go

package info (click to toggle)
golang-github-reviewdog-errorformat 0.0~git20220309.b075c45-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 900 kB
  • sloc: python: 59; xml: 13; javascript: 4; sh: 4; haskell: 3; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package fmts

func init() {
	const lang = "typescript"

	register(&Fmt{
		Name: "tsc",
		Errorformat: []string{
			`%E%f %#(%l,%c): error TS%n: %m`,
			`%E%f %#(%l,%c): error %m`, // fallback
			`%E%f %#(%l,%c): %m`,       // fallback
			`%Eerror %m`,
			`%C%\s%+%m`,
			`%-G%.%#`,
		},
		Description: "TypeScript compiler",
		URL:         "https://www.typescriptlang.org/",
		Language:    lang,
	})

	register(&Fmt{
		Name: "tslint",
		Errorformat: []string{
			`%f[%l, %c]: %m`, // --format=prose
		},
		Description: "An extensible linter for the TypeScript language",
		URL:         "https://github.com/palantir/tslint",
		Language:    lang,
	})

}