在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):google/gts开源软件地址(OpenSource Url):https://github.com/google/gts开源编程语言(OpenSource Language):TypeScript 89.5%开源软件介绍(OpenSource Introduction):gts
gts is Google's TypeScript style guide, and the configuration for our formatter, linter, and automatic code fixer. No lint rules to edit, no configuration to update, no more bike shedding over syntax. To borrow from standardjs:
Under the covers, we use eslint to enforce the style guide and provide automated fixes, and prettier to re-format code. Getting StartedThe easiest way to get started is to run: npx gts init How it worksWhen you run the
Individual filesThe commands above will all run in the scope of the current folder. Some commands can be run on individual files: gts lint index.ts
gts lint one.ts two.ts three.ts
gts lint *.ts Working with eslintUnder the covers, we use eslint to enforce the style guide and provide automated fixes, and prettier to re-format code. To use the shared ---
extends:
- './node_modules/gts' If you don't want to use the
This opens the ability to use the vast BadgeShow your love for [![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts) Supported Node.js VersionsOur client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js. LicenseMade with
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论