tb-linter

A customized linter for Teambition Standards.

Usage no npm install needed!

<script type="module">
  import tbLinter from 'https://cdn.skypack.dev/tb-linter';
</script>

README

TB-Linter: listen to me, or persuade me now

Installation

$ npm i tb-linter -g

CLI Usage

$ tb-linter <source> [options]

Options:

  -h, --help        output usage information
  -V, --version     output the version number

  -l, --lang [l-l]  filter the linters by languages
  -f, --fix         automatically fix warnings and errors

Example:

 $ tb-linter src # Minimalist
 $ tb-linter src/styles -l stylus-less
 $ tb-linter src/scripts -l javascript -f # Re-write

Supported Languages

  • JavaScript (ES6)
  • TypeScript
  • Stylus

Including Linters

  • standard - JavaScript Standard Style.
  • tslint - An extensible linter for the TypeScript language.
  • stylint - Improve your Stylus code with Stylint.

License

This work is licensed under the MIT license.