Huge News!Announcing our $40M Series B led by Abstract Ventures.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 Compare versions

Comparing version 2.0.2 to 3.0.0-alpha.1

15

.eslintrc.json

@@ -20,3 +20,14 @@ {

"no-trailing-spaces": "error",
"quotes": ["warn", "single", { "avoidEscape": true }]
"quotes": ["warn", "single", { "avoidEscape": true }],
"no-restricted-properties": [
"error",
{
"object": "describe",
"property": "only"
},
{
"object": "it",
"property": "only"
}
]
},

@@ -36,2 +47,4 @@ "overrides": [

"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/camelcase": "off",

@@ -38,0 +51,0 @@ "node/no-missing-import": "off",

@@ -20,3 +20,14 @@ {

"no-trailing-spaces": "error",
"quotes": ["warn", "single", { "avoidEscape": true }]
"quotes": ["warn", "single", { "avoidEscape": true }],
"no-restricted-properties": [
"error",
{
"object": "describe",
"property": "only"
},
{
"object": "it",
"property": "only"
}
]
},

@@ -36,2 +47,4 @@ "overrides": [

"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/camelcase": "off",

@@ -38,0 +51,0 @@ "node/no-missing-import": "off",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.clean = void 0;
/**

@@ -4,0 +5,0 @@ * Copyright 2017 Google Inc. All Rights Reserved.

@@ -19,2 +19,3 @@ #!/usr/bin/env node

Object.defineProperty(exports, "__esModule", { value: true });
exports.run = exports.getNodeVersion = void 0;
const path = require("path");

@@ -21,0 +22,0 @@ const meow = require("meow");

@@ -8,3 +8,4 @@ import { Options } from './cli';

};
export declare const ESLINT_IGNORE = "build/\n";
export declare function installDefaultTemplate(options: Options): Promise<boolean>;
export declare function init(options: Options): Promise<boolean>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.init = exports.installDefaultTemplate = exports.ESLINT_IGNORE = exports.ESLINT_CONFIG = exports.addDependencies = exports.addScripts = void 0;
/**

@@ -141,2 +142,3 @@ * Copyright 2017 Google Inc. All Rights Reserved.

};
exports.ESLINT_IGNORE = 'build/\n';
async function generateConfigFile(options, filename, contents) {

@@ -174,2 +176,5 @@ let existing;

}
async function generateESLintIgnore(options) {
return generateConfigFile(options, './.eslintignore', exports.ESLINT_IGNORE);
}
async function generateTsConfig(options) {

@@ -186,3 +191,4 @@ const config = formatJson({

...require('gts/.prettierrc.json')
}`;
}
`;
return generateConfigFile(options, './.prettierrc.js', style);

@@ -244,2 +250,3 @@ }

await generateESLintConfig(options);
await generateESLintIgnore(options);
await generatePrettierConfig(options);

@@ -246,0 +253,0 @@ await installDefaultTemplate(options);

4

build/src/util.js

@@ -18,2 +18,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getTSConfig = exports.getPkgManagerCommand = exports.isYarnUsed = exports.nop = exports.readJsonp = exports.ncpp = exports.writeFileAtomicp = exports.rimrafp = exports.readFilep = void 0;
const fs = require("fs");

@@ -67,3 +68,4 @@ const path = require("path");

catch (err) {
throw new Error(`${filePath} Not Found`);
err.message = `Error: ${filePath}\n${err.message}`;
throw err;
}

@@ -70,0 +72,0 @@ }

{
"name": "gts",
"version": "2.0.2",
"version": "3.0.0-alpha.1",
"description": "Google TypeScript Style",

@@ -37,20 +37,25 @@ "repository": "google/gts",

},
"keywords": [],
"keywords": [
"typescript",
"linter",
"formatter",
"google"
],
"author": "Google Inc.",
"license": "Apache-2.0",
"dependencies": {
"@typescript-eslint/eslint-plugin": "2.31.0",
"@typescript-eslint/parser": "2.31.0",
"chalk": "^4.0.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"@typescript-eslint/eslint-plugin": "^4.0.0",
"@typescript-eslint/parser": "^4.0.0",
"chalk": "^4.1.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.2",
"execa": "^4.0.0",
"inquirer": "^7.1.0",
"meow": "^7.0.0",
"eslint-plugin-prettier": "^3.1.4",
"execa": "^4.0.3",
"inquirer": "^7.3.3",
"meow": "^7.1.0",
"ncp": "^2.0.0",
"prettier": "^2.0.4",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"update-notifier": "^4.1.0",
"update-notifier": "^4.1.1",
"write-file-atomic": "^3.0.3"

@@ -60,31 +65,31 @@ },

"@npm/types": "^1.0.1",
"@types/chai": "^4.2.11",
"@types/cross-spawn": "^6.0.1",
"@types/eslint": "^6.8.0",
"@types/fs-extra": "^8.1.0",
"@types/inquirer": "^6.5.0",
"@types/mocha": "^7.0.2",
"@types/ncp": "^2.0.3",
"@types/node": "^13.11.1",
"@types/prettier": "^2.0.0",
"@types/chai": "^4.2.12",
"@types/cross-spawn": "^6.0.2",
"@types/eslint": "^7.2.0",
"@types/fs-extra": "^9.0.1",
"@types/inquirer": "^7.3.1",
"@types/mocha": "^8.0.3",
"@types/ncp": "^2.0.4",
"@types/node": "^14.6.0",
"@types/prettier": "^2.0.2",
"@types/rimraf": "^3.0.0",
"@types/sinon": "^9.0.0",
"@types/sinon": "^9.0.4",
"@types/tmp": "^0.2.0",
"@types/update-notifier": "^4.1.0",
"@types/write-file-atomic": "^3.0.0",
"c8": "^7.1.0",
"@types/update-notifier": "^4.1.1",
"@types/write-file-atomic": "^3.0.1",
"c8": "^7.3.0",
"chai": "^4.2.0",
"codecov": "^3.6.5",
"cross-spawn": "^7.0.2",
"fs-extra": "^9.0.0",
"codecov": "^3.7.2",
"cross-spawn": "^7.0.3",
"fs-extra": "^9.0.1",
"inline-fixtures": "^1.1.0",
"js-green-licenses": "^2.0.0",
"mocha": "^7.1.1",
"sinon": "^9.0.2",
"js-green-licenses": "^2.0.1",
"mocha": "^8.1.1",
"sinon": "^9.0.3",
"tmp": "0.2.1",
"typescript": "^3.8.3"
"typescript": "^4.0.2"
},
"peerDependencies": {
"typescript": "^3.0.0"
"typescript": ">=3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc