New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gts

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gts - npm Package Versions

12356

2.0.0-alpha.5

Diff
google-wombot
published 2.0.0-alpha.5 •
google-wombot
published 2.0.0-alpha.4 •
google-wombot
published 2.0.0-alpha.3 •
google-wombot
published 2.0.0-alpha.2 •
google-wombot
published 2.0.0-alpha.1 •
google-wombot
published 1.1.2 •

Changelog

Source

2.0.0 (2020-04-02)

⚠ BREAKING CHANGES ⚠

This is a major rewrite of the tool. Based on community guidance, we've switched from using tslint to eslint. Please read all of the steps below to upgrade.

Configuring eslint

With the shift to eslint, gts now will format and lint JavaScript as well as TypeScript. Upgrading will require a number of manual steps. To format JavaScript and TypeScript, you can run:

$ npx gts fix

To specify only TypeScript:

$ npx gts fix '**/*.ts'
Delete tslint.json

This file is no longer used, and can lead to confusion.

Create a .eslintrc.json

Now that we're using eslint, you need to extend the eslint configuration baked into the module. Create a new file named .eslintrc.json, and paste the following:

{
  "extends": "./node_modules/gts"
}
Create a .eslintignore

The .eslintignore file lets you ignore specific directories. This tool now lints and formats JavaScript, so it's really important to ignore your build directory! Here is an example of a .eslintignore file:

**/node_modules
build/
Rule changes

The underlying linter was changed, so naturally there are going to be a variety of rule changes along the way. To see the full list, check out .eslintrc.json.

Require Node.js 10.x and up

Node.js 8.x is now end of life - this module now requires Ndoe.js 10.x and up.

Features

  • add the eol-last rule (#425) (50ebd4d)
  • allow eslintrc to run over tsx files (#469) (a21db94)
  • disable global rule for checking TODO comments (#459) (96aa84a)
  • override require-atomic-updates (#468) (8105c93)
  • prefer single quotes if possible (#475) (39a2705)
  • use eslint instead of tslint (#400) (b3096fb)

Bug Fixes

1.1.2 (2019-11-20)

Bug Fixes

  • deps: update to newest prettier (with support for optional chain) (#396) (ce8ad06)

1.1.1 (2019-11-11)

Bug Fixes

  • deps: update dependency chalk to v3 (#389) (1ce0f45)
  • deps: update dependency inquirer to v7 (#377) (bf2c349)
  • deps: update dependency rimraf to v3 (#374) (2058eaa)
  • deps: update dependency write-file-atomic to v3 (#353) (59e6aa8)
google-wombot
published 1.1.0 •
google-wombot
published 1.0.0 •
google-node-team
published 1.0.0-0 •
ofrobots
published 0.9.0 •