-
Notifications
You must be signed in to change notification settings - Fork 86
Need tslint
to be updated in package.json
#257
Comments
dtslint is primarily for use as Definitely Typed infrastructure (or if you're building a DT-like type repository). If you are writing unit tests for types you should be using tsd instead of dtslint. Here's where Definitely Typed is:
If you're building a DT-like repository, I would be interested in hearing how your needs are different from DT's. If you're writing unit tests, I'd be interested in hearing what features tsd lacks compared to dtslint. |
I wanted to use dtslint over tsd in order to also test rules and not only expectS for my unit testing. |
I noticed a couple unused devDependencies in package.json (@type/mx and @type/parsimmon if I remember correctly) Do you want me to create a PR which drop these?) |
Interesting, which rules do you want to use? I thought most of them were DT-specific. I would be happy to see a PR for dropping unused [dev]dependencies. |
@sandersn I don't need any specific rule per say. My use case is packages whose source code isn't (and likely never will) in typescript, but ships with handcrafted .d.ts. I see two advantages in having DT rules checked on such .dts
Check PR #261 for unused dependencies |
@sandersn I'll close this issue for now. I'll try to get the chance of progressing with the new eslint/typescript settings and plugins. And maybe I will be able to contribute a PR. |
The ability to write tests against |
Using
dtslint
0.9.8 for typing unit tests, I get a bunch of rules error in the form:--localTs
pointing to Typescript 3.6.4 does not help.--expectOnly
allows the tests to run, but without enforcing any linting rulestslint.json
is somewhat more acceptable (though I must disable 11 rules which cannot be enforced (member-access
,no-empty-interface
,no-unnecessary-class
,interface-name
,function-constructor
,label-position
,no-duplicate-variable
,no-eval
,no-object-literal-type-assertion
,radix
andprefer-object-spread
)I resorted to (dirtily) patch
node_module/dtslint/package.json
and upgradetslint
to version 5.20.0... which solved the issue.node_module/dtslint/package.json
allowtslint
to update by specifying^5.14.0
instead of the current5.14.0
?--localTs
to specify a local version oftslint
is to be used?The text was updated successfully, but these errors were encountered: