Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support TypeScript 5.1 #7088

Merged
merged 30 commits into from Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
16d750f
feat: support TypeScript 5.1
JoshuaKGoldberg Jun 6, 2023
45e19f8
Re-apply patch-package typescript
JoshuaKGoldberg Jun 6, 2023
07a8a85
jsx: preserve in ast-spec
JoshuaKGoldberg Jun 7, 2023
a000e00
Added component-dashed fixture
JoshuaKGoldberg Jun 7, 2023
65ae4f9
Rename to avoid global naming conflict
JoshuaKGoldberg Jun 7, 2023
676e900
chore: only run website tests on non-forks
JamesHenry Jun 7, 2023
8bf3877
chore: only run website tests on non-forks
JamesHenry Jun 7, 2023
16553c6
Updated ast-spec snapshots
JoshuaKGoldberg Jun 7, 2023
4bd4879
Let's try --runInBand
JoshuaKGoldberg Jun 7, 2023
6931b54
How about some logging
JoshuaKGoldberg Jun 7, 2023
ea0e298
--verbose
JoshuaKGoldberg Jun 7, 2023
6a7c991
Skip parse.moduleResolver.+ tests in Node 14
JoshuaKGoldberg Jun 7, 2023
018e10f
map of undefined
JoshuaKGoldberg Jun 8, 2023
50a51ae
more logging on process version
JoshuaKGoldberg Jun 8, 2023
5bfbdac
Remove jest.config.js shenanigans
JoshuaKGoldberg Jun 8, 2023
377d69f
Remove --frozen-lockfile for now
JoshuaKGoldberg Jun 8, 2023
1d0484f
Mention ts version in jest.config.js
JoshuaKGoldberg Jun 8, 2023
f97cf33
Split placeholder-error in twain
JoshuaKGoldberg Jun 8, 2023
0b4eb19
Try a .skip
JoshuaKGoldberg Jun 8, 2023
ad1541d
Revert "Try a .skip"
JoshuaKGoldberg Jun 8, 2023
c6f949b
Heck, let's try Node 20
JoshuaKGoldberg Jun 8, 2023
564f73d
Revert "Heck, let's try Node 20"
JoshuaKGoldberg Jun 8, 2023
f54f303
skipLibCheck and strict
JoshuaKGoldberg Jun 9, 2023
8dba084
Undid some changes, for 5.1.3 again
JoshuaKGoldberg Jun 9, 2023
a2b5fcd
Used new resolution courtesy of Jake
JoshuaKGoldberg Jun 26, 2023
f79242b
Merge branch 'main'
JoshuaKGoldberg Jun 26, 2023
cb4b668
Corrected TypeScript patching and resolution
JoshuaKGoldberg Jun 26, 2023
f978c76
Fix packages/website/tsconfig.json module
JoshuaKGoldberg Jun 26, 2023
10bdc43
5.1.6
JoshuaKGoldberg Jun 30, 2023
3a01637
Recreated patch-package typescript
JoshuaKGoldberg Jun 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -177,6 +177,8 @@ jobs:
retention-days: 1

website_tests:
# The NETLIFY_TOKEN secret will not be available on forks
if: github.repository_owner == 'typescript-eslint'
permissions:
contents: read # to fetch code (actions/checkout)

Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Expand Up @@ -17,6 +17,10 @@ packages/ast-spec/src/element/AccessorProperty/fixtures
# prettier doesn't yet support `const` modifiers for type parameters
packages/ast-spec/src/special/TSTypeParameter/fixtures

# prettier doesn't yet support JSX namespaced attributes
packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/fixture.tsx
packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx

# Ignore CHANGELOG.md files to avoid issues with automated release job
CHANGELOG.md

Expand Down
2 changes: 1 addition & 1 deletion docs/users/Dependency_Versions.mdx
Expand Up @@ -16,7 +16,7 @@ Support for specific Current status releases are considered periodically.

## TypeScript

> The version range of TypeScript currently supported is `>=3.3.1 <5.1.0`.
> The version range of TypeScript currently supported is `>=3.3.1 <5.2.0`.

These versions are what we test against.

Expand Down
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -68,7 +68,6 @@
"@types/is-glob": "^4.0.2",
"@types/jest": "29.4.4",
"@types/jest-specific-snapshot": "^0.5.5",
"@types/lodash": "^4.14.182",
bradzacher marked this conversation as resolved.
Show resolved Hide resolved
"@types/marked": "^4.0.3",
"@types/ncp": "^2.0.5",
"@types/node": "^18.11.9",
Expand Down Expand Up @@ -112,10 +111,10 @@
"ts-node": "10.7.0",
"tslint": "^6.1.3",
"tsx": "^3.12.1",
"typescript": ">=3.3.1 <5.1.0"
"typescript": "5.1.6"
},
"resolutions": {
"typescript": "~5.0.2",
"typescript": "5.1.6",
"@types/node": "^18.11.9",
"@jest/create-cache-key-function": "^29",
"@jest/reporters": "^29",
Expand Down
@@ -0,0 +1,7 @@
namespace JSX {
export interface IntrinsicElements {
'foo-bar:baz-bam': any;
}
}

const componentDashed = <foo-bar:baz-bam />;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.