Patrick McElhaney

Results 118 comments of Patrick McElhaney

I'm having the same problem. I added a test case #294 and I'm surprised that it passed.

Hmm, this minimal test case also works fine. ./src/my-element.ts` ```ts import { property } from "lit/decorators"; import { LitElement, html } from "lit"; class MyElement extends LitElement { @property({ attribute:...

Okay, it works, but it's broken when TypeScript > 4.7 is installed. Probably related to #272.

Four years later, here’s an alternative that’s much more powerful. https://counterfact.dev

[TypeScript ESLint 8.0.0](https://github.com/typescript-eslint/typescript-eslint/releases) has been released. https://github.com/Shopify/web-configs/issues/425 isn't closed but they did [migrate to flat config](https://github.com/Shopify/web-configs/releases/tag/%40shopify%2Feslint-plugin%4046.0.0).

Only one unit test is failing: ```ts it('returns an empty array for nodes that cannot have JsDoc', () => { assert.deepEqual(getJsDoc(getSourceFile('test/files/jsdoc/invalid.ts').statements[0]), []); }); ``` The invalid.ts file is: ```ts /**...

Another issue with TypeScript 5: https://github.com/ajafff/tsutils/issues/155

Here's a work-around until it's fixed: Install [patch-package](https://www.npmjs.com/package/patch-package), add `"postinstall": "patch-package"` to your npm scripts, and copy this code to a file named `./patches/tsutils+3.21.0.patch`. ```diff diff --git a/node_modules/tsutils/util/usage.js b/node_modules/tsutils/util/usage.js index...

Thanks, that will be great! Any framework is fine. Mocha, QUnit, Buster, Jasmine, whatever works for you. :)