From 0d2b6780cc0728f2e5754026c76dba7575ecd36e Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 5 Nov 2018 01:08:11 -0600 Subject: [PATCH] Removed references to npm-*.*.* and releases branches from docs (#626) I'll also update the Releases wiki page to no longer suggest them. Fixes #610 --- README.md | 5 ----- build-tasks/validate-documentation.js | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/README.md b/README.md index f1c4cd088..4d7eaa888 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,6 @@ A set of [TSLint](https://github.com/palantir/tslint) rules used on some Microso npm install tslint-microsoft-contrib --save-dev ``` -Alternately, you can download the files directly from GitHub: see [npm-5.2.1](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-5.2.1). - -...or use the [`releases`](https://github.com/Microsoft/tslint-microsoft-contrib/tree/releases) branch, which is available online. -You can use that build by setting your npm version of `tslint-microsoft-contrib` to `git://github.com/Microsoft/tslint-microsoft-contrib.git#releases`. - ## TSLint and corresponding tslint-microsoft-contrib version | TSLint version | tslint-microsoft-contrib version | diff --git a/build-tasks/validate-documentation.js b/build-tasks/validate-documentation.js index f2023ba20..e96ec844d 100644 --- a/build-tasks/validate-documentation.js +++ b/build-tasks/validate-documentation.js @@ -24,16 +24,6 @@ getAllFormatterNames().forEach(formatterName => { } }); -if (readmeText.indexOf('[npm-' + packageJson.version + ']') === -1) { - validationErrors.push( - 'Version not documented in README.md correctly.\n' + - 'package.json declares: ' + - packageJson.version + - '\n' + - 'README.md declares something different.' - ); -} - if (validationErrors.length > 0) { console.log(yellowBright(validationErrors.join('\n'))); process.exit(1);