tsgolint is an experimental proof-of-concept typescript-go powered JS/TS linter written in Go.
Important
tsgolint is in the early stages of development. Expect breaking changes to happen.
- Primitive linter engine
- Lint rules tester
- Source code fixer
- 40 type-aware typescript-eslint's rules
- Basic
tsgolintCLI
tsgolint is 20-40 times faster than ESLint + typescript-eslint.
Most of the speedup is due to the following facts:
- Native speed parsing and type-checking (thanks to typescript-go)
- No more TS AST -> ESTree AST conversions. TS AST is directly used in rules.
- Parallel parsing, type checking and linting. tsgolint uses all available CPU cores.
See benchmarks for more info.
- Non-type-aware rules
- Editor extension
- Rich CLI features
- Config file
- Plugin system
git submodule update --init
cd typescript-go
git am --3way --no-gpg-sign ../patches/*.patch
cd ..
cd goja
git am --3way --no-gpg-sign ../goja-patches/*.patch
cd ..
go build -o tsgolint ./cmd/tsgolint