Comparing version 2.0.2 to 3.0.0-alpha.1
@@ -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); |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71017
895
2
+ Added@babel/code-frame@7.12.11(transitive)
+ Added@babel/highlight@7.25.9(transitive)
+ Added@eslint/eslintrc@0.4.3(transitive)
+ Added@humanwhocodes/config-array@0.5.0(transitive)
+ Added@humanwhocodes/object-schema@1.2.1(transitive)
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@typescript-eslint/eslint-plugin@4.33.0(transitive)
+ Added@typescript-eslint/experimental-utils@4.33.0(transitive)
+ Added@typescript-eslint/parser@4.33.0(transitive)
+ Added@typescript-eslint/scope-manager@4.33.0(transitive)
+ Added@typescript-eslint/types@4.33.0(transitive)
+ Added@typescript-eslint/typescript-estree@4.33.0(transitive)
+ Added@typescript-eslint/visitor-keys@4.33.0(transitive)
+ Addedajv@8.17.1(transitive)
+ Addedansi-colors@4.1.3(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addedastral-regex@2.0.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedenquirer@2.4.1(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedeslint@7.32.0(transitive)
+ Addedeslint-utils@3.0.0(transitive)
+ Addedeslint-visitor-keys@2.1.0(transitive)
+ Addedespree@7.3.1(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfast-uri@3.0.3(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfile-entry-cache@6.0.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedflat-cache@3.2.0(transitive)
+ Addedflatted@3.3.1(transitive)
+ Addedglobals@13.24.0(transitive)
+ Addedglobby@11.1.0(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlevn@0.4.1(transitive)
+ Addedlodash.merge@4.6.2(transitive)
+ Addedlodash.truncate@4.4.2(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedoptionator@0.9.4(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedprelude-ls@1.2.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedslice-ansi@4.0.0(transitive)
+ Addedtable@6.8.2(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtype-check@0.4.0(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedtypescript@5.6.3(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@types/eslint-visitor-keys@1.0.0(transitive)
- Removed@typescript-eslint/eslint-plugin@2.31.0(transitive)
- Removed@typescript-eslint/experimental-utils@2.31.0(transitive)
- Removed@typescript-eslint/parser@2.31.0(transitive)
- Removed@typescript-eslint/typescript-estree@2.31.0(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedastral-regex@1.0.0(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removedemoji-regex@7.0.3(transitive)
- Removedeslint@6.8.0(transitive)
- Removedeslint-utils@1.4.3(transitive)
- Removedespree@6.2.1(transitive)
- Removedfile-entry-cache@5.0.1(transitive)
- Removedflat-cache@2.0.1(transitive)
- Removedflatted@2.0.2(transitive)
- Removedglobals@12.4.0(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedlevn@0.3.0(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednice-try@1.0.5(transitive)
- Removedoptionator@0.8.3(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedprelude-ls@1.1.2(transitive)
- Removedregexpp@2.0.1(transitive)
- Removedrimraf@2.6.3(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedslice-ansi@2.1.0(transitive)
- Removedstring-width@3.1.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedtable@5.4.6(transitive)
- Removedtype-check@0.3.2(transitive)
- Removedtypescript@3.9.10(transitive)
- Removedwhich@1.3.1(transitive)
- Removedwrite@1.0.3(transitive)
Updatedchalk@^4.1.0
Updatedeslint@^7.7.0
Updatedexeca@^4.0.3
Updatedinquirer@^7.3.3
Updatedmeow@^7.1.0
Updatedprettier@^2.0.5
Updatedupdate-notifier@^4.1.1