Validate and format your TypeScript using Visual Studio styles.
npm install typescript-standard --save-dev
npm uninstall typescript-standard --save-dev
package.json
{
"scripts": {
"test": "node_modules/.bin/standard"
}
}
CLI at project root folder
./node_modules/.bin/standard
./node_modules/.bin/standard --pretty
or in your code
var engine = require('typescript-standard')
console.log(engine.lint());
typescript-standard-loader - Webpack@2+ loader
Here is a easier way to run local node_modules by adding the .bin folder into your $PATH variable
export PATH=$PATH:node_modules/.bin
- TypeScript Code Standard Validation (TSLint)
- 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 (Prettier)
- Remove unused dependencies
- Support for [email protected] and [email protected]
- Support for [email protected] and [email protected]
- Format ts files when you run
standard --pretty
- Bug fixing
- 100% typescript!!!
- Bug fixing
- Add
--pretty
and--verbose
output style from cli - Rewrite this project in typescript
- Add support for Typescript 2 'include' field
- Removed
semicolon
check because the program is not smart enough to handle all semicolon scenarios with uglifyjs
- Imported official typescript standard rules from Microsoft repository.
- The
file
andexclude
fromtsconfig.json
is supported.
BTW, this is my first typescript project and the reason behind this project is because I know I am going to build elegance typescript frameworks. I need a tool to make it happen.