Skip to content

WIP: Convert to TypeScript#994

Open
gitKrystan wants to merge 34 commits intoemberjs:mainfrom
gitKrystan:ts
Open

WIP: Convert to TypeScript#994
gitKrystan wants to merge 34 commits intoemberjs:mainfrom
gitKrystan:ts

Conversation

@gitKrystan
Copy link
Copy Markdown
Contributor

@gitKrystan gitKrystan commented Dec 10, 2022

A better fix for #957

Requires:
ember-cli/ember-cli-test-loader#77 (optional)
emberjs/ember-test-helpers#1319 (merged, NEEDS RELEASE)
@types/qunit changes: DefinitelyTyped/DefinitelyTyped#63805 (DONE: merged, released)
#1017 (DONE: merged)

Comment thread .eslintrc.js
},

// ts files
{
Copy link
Copy Markdown
Contributor Author

@gitKrystan gitKrystan Dec 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this if you don't like UBER-STRICTNESS, but I find it useful during conversion at least

Comment thread addon-test-support/adapter.ts Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread tsconfig.json
"addon-test-support/**/*"
],

// type checking
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so strict lolol

@@ -0,0 +1,17 @@
declare module 'ember-cli-test-loader/test-support/index' {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we port these to the library in question? Yaks on yaks on yaks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can either merge this as is or release ember-cli/ember-cli-test-loader#77 and switch to using that.

Comment thread .eslintignore
.*/
.eslintcache
/.yalc*
/yalc.lock
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can revert once emberjs/ember-test-helpers#1319 is released

Comment thread .gitignore
/testem.log
/yarn-error.log
/.yalc*
/yalc.lock
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can revert once emberjs/ember-test-helpers#1319 is released

Comment thread .prettierignore
.eslintcache
.lint-todo/
/.yalc*
/yalc.lock
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can revert once emberjs/ember-test-helpers#1319 is released

Comment thread package.json Outdated
"@babel/eslint-parser": "^7.19.1",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.9.3",
"@ember/test-helpers": "file:.yalc/@ember/test-helpers",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME once emberjs/ember-test-helpers#1319 is released

Comment thread tsconfig.json
@@ -0,0 +1,37 @@
{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review closely bc I've been known to muck these things up :-P

Comment thread package.json
},
"engines": {
"node": "14.* || 16.* || >= 18"
"node": "16.* || >= 18"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for latest @ember/test-helpers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant