Commit Graph

2476 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
ecac2cc66a slice multiple prefixes from resolved filenames
self-references sometimes result in doubled
'node_modules/@types/self-package-name' prefixes.
2023-04-10 12:53:30 -07:00
Nathan Shively-Sanders
a336a4ec64 Remove pathMapping check in definition-parser
Also all (?) the infrastructure needed to support it.
2023-04-10 11:03:33 -07:00
Nathan Shively-Sanders
3d5cd40eae Delete installDependencies entirely
It's only one line of code now
2023-04-10 10:50:41 -07:00
Nathan Shively-Sanders
da605a2a62 npm i -> pnpm i (compiles but hasn't run yet) 2023-04-10 10:47:42 -07:00
Nathan Shively-Sanders
ffc9fc4f3e Make generate-packages tests pass 2023-04-03 16:21:15 -07:00
Nathan Shively-Sanders
c30e50a932 *now* definitions-parser tests all pass 2023-04-03 16:10:04 -07:00
Nathan Shively-Sanders
3b866d1f70 definitions-parser tests pass 2023-04-03 13:01:14 -07:00
Nathan Shively-Sanders
b19ebf49e2 Restore code for finding global values in source
Everything builds now!
2023-04-03 09:18:48 -07:00
Nathan Shively-Sanders
55bde30076 Mostly done switching to package.json dep/devDeps
Deletes a whole bunch of stuff and simplifies or reworks others.

I noticed that we still want to walk the file looking for globals SO I
have to put back in huge chunks of code I took out. Creating a commit so
I can diff on github.
2023-04-03 08:54:28 -07:00
Nathan Shively-Sanders
9ffae5f6f6 allow all @types deps 2023-03-31 16:28:57 -07:00
Nathan Shively-Sanders
2a62b4b6b4 Fix used-files calculation and improve error output
Show all unused files at once, not just the first unused one.
2023-03-31 16:09:05 -07:00
Nathan Shively-Sanders
683cbf2420 Switch from no-outside-dependencies to import/no-extraneous-dependencies
It's already written!

Also make deepEqual traverse ojbects as well as arrays.
2023-03-31 15:23:09 -07:00
Nathan Shively-Sanders
2dbbcee762 update to ts@next to match DT 2023-03-31 09:45:29 -07:00
Nathan Shively-Sanders
85f0532ada check version in package.json 2023-03-31 09:12:10 -07:00
Nathan Shively-Sanders
689ccfcb17 WIP dtslint checks
I'm at the point of checking `version` and I think I need to copy code
from definition-parser maybe. Visions of semver parsing...
2023-03-30 15:51:03 -07:00
Nathan Shively-Sanders
b144b978c6 remove baseUrl/typeRoots
linting starts and then fails because tests can't resolve their types
packages
2023-03-28 16:18:47 -07:00
TypeScript Bot
2df7962a3c v0.0.159 v0.0.159 2023-03-28 16:02:41 +00:00
TypeScript Bot
7614f1cdf3 v0.0.159-next.1 v0.0.159-next.1 2023-03-28 15:48:50 +00:00
TypeScript Bot
7c0b2f2203 Format 2023-03-28 15:48:25 +00:00
Nathan Shively-Sanders
35746f1c63 fix no-import-of-default-export (#659)
* fix message of no-import-of-default-export

* run prettier

* only check .d.ts files
2023-03-28 08:43:35 -07:00
TypeScript Bot
6380f4681c v0.0.159-next.0 v0.0.159-next.0 2023-03-27 18:15:03 +00:00
Nathan Shively-Sanders
ec2109bf3b Remove no-import-default-of-export-equals from dtslint.json (#658)
I missed it in my earlier PR
2023-03-27 11:11:08 -07:00
TypeScript Bot
cb2436d5ce v0.0.158 v0.0.158 2023-03-27 17:16:15 +00:00
TypeScript Bot
e4c9437b79 v0.0.158-next.4 v0.0.158-next.4 2023-03-27 17:04:13 +00:00
Nathan Shively-Sanders
eba074f006 Port no import default of export equals (#657)
* Port no-import-default-of-export-equals

First draft and 2/3 of the original tests. The test of modules, the one
that matters, doesn't work with typescript-eslint's test infrastructure
though.

* Port no-import-default-of-export-equals

Also update TS to 5.0 and Jest to 29.

Associated minor changes to jest config (no more top-level ts-node) and
some tslint rules (switch to a combined decorator/modifier list, but
only on select nodes).

* yarn format

* Fix lint and update new jest baseline format

More like real JSON!

* also update dts-critic (??)
2023-03-27 10:00:11 -07:00
TypeScript Bot
cb0d73d177 v0.0.158-next.3 v0.0.158-next.3 2023-03-24 17:48:32 +00:00
Josh Goldberg
214c7bd196 Converted no-single-element-tuple-type from TSLint to ESLint (#653) 2023-03-24 10:44:43 -07:00
TypeScript Bot
f02f34cadd v0.0.158-next.2 v0.0.158-next.2 2023-03-24 17:20:21 +00:00
Josh Goldberg
f2d538de14 Converted no-self-import from TSLint to ESLint (#652)
* Converted no-self-import from TSLint to ESLint

* Update packages/dtslint/src/rules/no-self-import.ts
2023-03-24 10:16:09 -07:00
TypeScript Bot
d5429a4fdb v0.0.158-next.1 v0.0.158-next.1 2023-03-23 17:24:36 +00:00
TypeScript Bot
2f69ce7146 Format 2023-03-23 17:23:59 +00:00
Nathan Shively-Sanders
182e09d338 Port no-outside-dependencies (#650)
* Port no-outside-dependencies

I couldn't imagine how to write a test for this after discovering that
only single files worked for typed tests, so I just tested it manually.

* fix description

* use isMainFile instead of custom check
2023-03-23 10:20:08 -07:00
TypeScript Bot
4dace40c9d v0.0.158-next.0 v0.0.158-next.0 2023-03-22 22:45:50 +00:00
James Garbutt
17d56dc44c chore (definitions-parser): whitelist react-router (#649) 2023-03-22 15:42:02 -07:00
TypeScript Bot
1ec9262caa v0.0.157 v0.0.157 2023-03-22 21:48:21 +00:00
TypeScript Bot
bfbe9cee25 v0.0.157-next.0 v0.0.157-next.0 2023-03-22 21:44:14 +00:00
TypeScript Bot
b53060edd3 Format 2023-03-22 21:43:45 +00:00
Andrew Branch
7c82ab4ff2 Allow --module node16 (#647) 2023-03-22 14:39:56 -07:00
TypeScript Bot
d57e5435fe v0.0.156 v0.0.156 2023-03-22 18:17:19 +00:00
TypeScript Bot
8a6232e6ff v0.0.156-next.0 v0.0.156-next.0 2023-03-22 18:11:27 +00:00
TypeScript Bot
6b1e8a7b76 Format 2023-03-22 18:10:57 +00:00
Nathan Shively-Sanders
5d65907dbf Port no-declare-current-package tslint->eslint (#645)
* Port no-declare-current-package tslint->eslint

* Fix no-declare-current-packages tests
2023-03-22 11:07:36 -07:00
TypeScript Bot
87d6ebe276 v0.0.155 v0.0.155 2023-03-22 16:38:21 +00:00
TypeScript Bot
e0e6b8f111 v0.0.154-next.2 v0.0.154-next.2 2023-03-22 16:33:20 +00:00
Jake Bailey
4aee4a7331 Pass --legacy-peer-deps at npm install (#646) 2023-03-22 09:29:44 -07:00
TypeScript Bot
15d48f4866 v0.0.154-next.1 v0.0.154-next.1 v0.0.154 2023-03-21 00:42:41 +00:00
Manuel Thalmann
86d3c25205 Allow the use of glob in @types/-packages (#643) 2023-03-20 17:11:40 -07:00
TypeScript Bot
dd84954e61 v0.0.154-next.0 v0.0.154-next.0 2023-03-20 23:36:23 +00:00
TypeScript Bot
59764475b8 Format 2023-03-20 23:35:42 +00:00
Nathan Shively-Sanders
706a75630b Port redundant undefined (#642)
* First draft

It passes some basic tests!

* Remove unneeded comments

* Add explicit reference to tsestree/utils
2023-03-20 16:17:11 -07:00