Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ad4d7c

Browse files
committed
feat: bump minimum required TS version (typescript-eslint#2004)
1 parent 264b017 commit 7ad4d7c

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
sourceType: 'module',
2222
project: ['./tsconfig.eslint.json', './packages/*/tsconfig.json'],
2323
tsconfigRootDir: __dirname,
24+
warnOnUnsupportedTypeScriptVersion: false,
2425
},
2526
rules: {
2627
//

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,13 @@ The latest version under the `canary` tag **(latest commit to master)** is:
234234

235235
## Supported TypeScript Version
236236

237-
We will always endeavor to support the latest stable version of TypeScript. Sometimes, but not always, changes in TypeScript will not require breaking changes in this project, and so we are able to support more than one version of TypeScript. In some cases, we may even be able to support additional pre-releases (i.e. betas and release candidates) of TypeScript, but only if doing so does not require us to compromise on support for the latest stable version.
237+
**The version range of TypeScript currently supported by this parser is `>=3.3.1 <3.8.0`.**
238+
239+
These versions are what we test against.
238240

239-
**The version range of TypeScript currently supported by this parser is `>=3.2.1 <3.8.0`.**
241+
We will always endeavor to support the latest stable version of TypeScript. Sometimes, but not always, changes in TypeScript will not require breaking changes in this project, and so we are able to support more than one version of TypeScript. In some cases, we may even be able to support additional pre-releases (i.e. betas and release candidates) of TypeScript, but only if doing so does not require us to compromise on support for the latest stable version.
240242

241-
This is reflected in the `devDependency` requirement within the package.json file, and it is what the tests will be run against. We have an open `peerDependency` requirement in order to allow for experimentation on newer/beta versions of TypeScript.
243+
Note that our packages have an open `peerDependency` requirement in order to allow for experimentation on newer/beta versions of TypeScript.
242244

243245
If you use a non-supported version of TypeScript, the parser will log a warning to the console. If you want to disable this warning, you can configure this in your `parserOptions`. See: [`@typescript-eslint/parser`](./packages/parser/) and [`@typescript-eslint/typescript-estree`](./packages/typescript-estree/).
244246

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"lint:markdown:fix": "lint:markdown --fix",
3333
"lint:markdown": "markdownlint '**/*.md' --config=.markdownlint.json --ignore-path=.markdownlintignore",
3434
"lint": "eslint . --ext .js,.ts",
35-
"postinstall": "yarn lerna-init && yarn build",
35+
"postinstall": "yarn lerna:init && yarn build",
3636
"pre-commit": "yarn lint-staged",
3737
"pre-push": "yarn check:format",
3838
"test": "lerna run test --concurrency 1",
@@ -79,9 +79,9 @@
7979
"ts-jest": "^25.5.1",
8080
"ts-node": "^8.10.1",
8181
"tslint": "^6.1.2",
82-
"typescript": ">=3.2.1 <4.0.0"
82+
"typescript": ">=3.3.1 <4.0.0"
8383
},
8484
"resolutions": {
85-
"typescript": "^3.8.3"
85+
"typescript": "3.9.2"
8686
}
8787
}

packages/typescript-estree/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,7 @@ Types for the AST produced by the parse functions.
249249

250250
## Supported TypeScript Version
251251

252-
We will always endeavor to support the latest stable version of TypeScript.
253-
254-
The version of TypeScript currently supported by this parser is `~3.2.1`. This is reflected in the `devDependency` requirement within the package.json file, and it is what the tests will be run against. We have an open `peerDependency` requirement in order to allow for experimentation on newer/beta versions of TypeScript.
252+
See the [Supported TypeScript Version](../../README.md#supported-typescript-version) section in the project root.
255253

256254
If you use a non-supported version of TypeScript, the parser will log a warning to the console.
257255

packages/typescript-estree/src/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ const log = debug('typescript-eslint:typescript-estree:parser');
2020
* This needs to be kept in sync with the top-level README.md in the
2121
* typescript-eslint monorepo
2222
*/
23-
const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.2.1 <3.8.0';
23+
const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <3.8.0';
2424
/*
2525
* The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
2626
* List them all separately here, so we can automatically create the full string
2727
*/
28-
const SUPPORTED_PRERELEASE_RANGES = ['>3.7.0-dev.0', '3.7.1-rc'];
28+
const SUPPORTED_PRERELEASE_RANGES: string[] = [];
2929
const ACTIVE_TYPESCRIPT_VERSION = ts.version;
3030
const isRunningSupportedTypeScriptVersion = semver.satisfies(
3131
ACTIVE_TYPESCRIPT_VERSION,

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8451,7 +8451,7 @@ typedarray@^0.0.6:
84518451
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
84528452
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
84538453

8454-
typescript@*, "typescript@>=3.2.1 <4.0.0", typescript@^3.8.3:
8454+
typescript@*, [email protected], "typescript@>=3.3.1 <4.0.0":
84558455
version "3.9.2"
84568456
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.2.tgz#64e9c8e9be6ea583c54607677dd4680a1cf35db9"
84578457
integrity sha512-q2ktq4n/uLuNNShyayit+DTobV2ApPEo/6so68JaD5ojvc/6GClBipedB9zNWYxRSAlZXAe405Rlijzl6qDiSw==

0 commit comments

Comments
 (0)