# typescript-standard

> Zero-configuration TypeScript Standard Validator & Formatter

Latest version **0.3.36** (published 2018-03-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install typescript-standard
pnpm add typescript-standard
yarn add typescript-standard
bun add typescript-standard
```

Provides the command `standard`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.36 |
| Published | 2018-03-07 |
| First published | 2016-09-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 3 |
| Unpacked size | 54.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Ling Zhang |
| Maintainers | e2tox |
| Keywords | format, pretty, tslint, typescript, standard, fmt, ts |

## Links

- npm: https://www.npmjs.com/package/typescript-standard
- Repository: https://github.com/e2tox/typescript-standard
- Issues: https://github.com/e2tox/typescript-standard/issues
- npm.io page: https://npm.io/package/typescript-standard

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) ^7.1.1
- [tslint](https://npm.io/package/tslint.md) ^5.9.1
- [typescript](https://npm.io/package/typescript.md) ^2.7.2

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.3.36 (latest) — 2018-03-07
- 0.3.35 — 2018-03-07
- 0.3.34 — 2018-03-07
- 0.3.33 — 2018-03-07
- 0.3.32 — 2018-03-06
- 0.3.30 — 2017-04-04
- 0.3.22 — 2017-04-04
- 0.3.19 — 2017-04-04
- 0.3.16 — 2017-04-04
- 0.3.14 — 2016-11-21
- 0.3.12 — 2016-11-21
- 0.3.10 — 2016-11-01
- 0.3.8 — 2016-10-31
- 0.3.6 — 2016-10-20
- 0.3.5 — 2016-10-18
- … 29 more at https://npm.io/package/typescript-standard/versions

## README

# Zero-configuration TypeScript Standard Validator & Formatter

## Installation

```sh
npm install typescript-standard --save-dev
```

## Uninstall

```sh
npm uninstall typescript-standard --save-dev
```

## Usage

package.json

```json
{
  "scripts": {
    "test": "node_modules/.bin/standard"
  }
}

```

CLI at project root folder

```sh
./node_modules/.bin/standard
./node_modules/.bin/standard --pretty
```

or in your code

```node
var engine = require('typescript-standard')
console.log(engine.lint());
```

## Extras

[typescript-standard-loader](https://www.npmjs.com/package/typescript-standard-loader) - [Webpack@2+](https://www.npmjs.com/package/webpack) loader

## Tips

Here is a easier way to run local node_modules by adding the .bin folder into your $PATH variable

```sh
export PATH=$PATH:node_modules/.bin
```

## Roadmap
  * [x] TypeScript Code Standard Validation (TSLint)
  * [x] 0.3.x TypeScript Code Pretty Printer (tsc)
  * [ ] 0.4.x TypeScript Code Import Formatter (ts-format-imports)
  * [ ] 0.5.x TypeScript Code Standard Autofix (TSLint? maybe)

## Updates

### 0.3.36
  - Remove unused dependencies

### 0.3.32
  - Support for typescript@2.7.2 and tslint@5.9.1

### 0.3.30
  - Support for typescript@2.2.2 and tslint@5.0.0

### 0.3.2
  - Format ts files when you run `standard --pretty`

### 0.2.12
  - Bug fixing

### 0.2.6
  - 100% typescript!!!

### 0.2.5
  - Bug fixing

### 0.2.1
  - Add `--pretty` and `--verbose` output style from cli
  - Rewrite this project in typescript

### 0.2.0

  - Add support for Typescript 2 'include' field
  - Removed `semicolon` check because the program is not smart enough to handle all semicolon scenarios with uglifyjs

### 0.1.1

  - Imported official typescript standard rules from Microsoft repository.
  - The `file` and `exclude` from `tsconfig.json` is supported.

---
_Source: https://npm.io/package/typescript-standard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
