Commit Graph

2483 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
1749d27ebc Package publication works now.
Only a few fixes needed this time!
2023-05-12 14:41:35 -07:00
Nathan Shively-Sanders
7bca052a32 Switch to more semver
Still not 100% semver, but the common paths now use it.
2023-04-19 15:44:07 -07:00
Nathan Shively-Sanders
dfa99bd36c 1. Remove npm consistency checks in dtslint-runner. They are unused.
2. Simplify and reduce JSON parsing in dtslint-runner. Pass around
AllPackages object instead of writing it to disk and reading it over and
over.
3. Sort AllPackages object before returning it in addition to before
writing it to disk.
2023-04-17 11:53:02 -07:00
Nathan Shively-Sanders
05fcf435a7 Switch to reporting errors at end, not throwing one at a time 2023-04-17 11:06:13 -07:00
Nathan Shively-Sanders
2c80d9803c Require either contributor url XOR githubUsername
Plus update typescript again to match DT
2023-04-17 09:15:43 -07:00
Nathan Shively-Sanders
72c06336e7 Switch from index.d.ts header to package.json
Lots of code churn and probable bugs, but no real functionality change
right now. In the future this makes it much easier to mimic real ES
module layouts.
2023-04-14 16:36:08 -07:00
Nathan Shively-Sanders
39d5fe7d16 add debug entrypoint for dtslint-runner 2023-04-13 09:54:23 -07:00
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