├── .changeset ├── README.md └── config.json ├── .eslintignore ├── .eslintrc.json ├── .gitattributes ├── .github ├── codeql │ └── codeql-configuration.yml ├── dependabot.yml └── workflows │ ├── check-parse-results.yml │ ├── ci.yml │ ├── codeql.yml │ ├── daily.yml │ ├── deploy.yml │ ├── keepalive.yml │ ├── publish-packages.yml │ ├── publish-registry.yml │ ├── update-ts-version-tags.yml │ └── version-or-publish.yml ├── .gitignore ├── .knip.jsonc ├── .npmrc ├── .prettierignore ├── .prettierrc.json ├── .vscode ├── extensions.json ├── launch.json └── settings.template.json ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── jest.config.js ├── package.json ├── packages ├── definitions-parser │ ├── .gitignore │ ├── .npmignore │ ├── .vscode │ │ └── launch.json │ ├── CHANGELOG.md │ ├── README.md │ ├── allowedPackageJsonDependencies.txt │ ├── package.json │ ├── src │ │ ├── clean.ts │ │ ├── data-file.ts │ │ ├── get-affected-packages.ts │ │ ├── get-definitely-typed.ts │ │ ├── git.ts │ │ ├── index.ts │ │ ├── lib │ │ │ ├── definition-parser.ts │ │ │ └── settings.ts │ │ ├── mocks.ts │ │ └── packages.ts │ ├── test │ │ ├── definition-parser.test.ts │ │ ├── fixtures │ │ │ ├── allows-references-to-old-versions-of-self │ │ │ │ └── types │ │ │ │ │ └── fail │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── tsconfig.json │ │ │ └── doesnt-omit-dependencies-if-only-some-deep-modules-are-declared │ │ │ │ └── types │ │ │ │ └── styled-components-react-native │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ ├── get-affected-packages.test.ts │ │ ├── get-definitely-typed.test.ts │ │ ├── git.test.ts │ │ ├── packages.test.ts │ │ ├── tsconfig.json │ │ └── utils.ts │ └── tsconfig.json ├── dts-critic │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.test.ts │ ├── index.ts │ ├── package.json │ ├── testsource │ │ ├── dts-critic.d.ts │ │ ├── dts-critic.js │ │ ├── example │ │ │ ├── index.d.ts │ │ │ └── package.json │ │ ├── missingDefault.d.ts │ │ ├── missingDefault.js │ │ ├── missingDtsProperty.d.ts │ │ ├── missingDtsProperty.js │ │ ├── missingDtsSignature.d.ts │ │ ├── missingDtsSignature.js │ │ ├── missingExportEquals.d.ts │ │ ├── missingExportEquals.js │ │ ├── missingJsProperty.d.ts │ │ ├── missingJsProperty.js │ │ ├── missingJsSignatureExportEquals.d.ts │ │ ├── missingJsSignatureExportEquals.js │ │ ├── missingJsSignatureNoExportEquals.d.ts │ │ ├── missingJsSignatureNoExportEquals.js │ │ ├── no-matching-package │ │ │ ├── package.json │ │ │ └── wenceslas.d.ts │ │ ├── noErrors.d.ts │ │ ├── noErrors.js │ │ ├── package.json │ │ ├── typescript │ │ │ ├── package.json │ │ │ └── typescript.d.ts │ │ ├── webpackPropertyNames.d.ts │ │ └── webpackPropertyNames.js │ └── tsconfig.json ├── dts-gen │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ │ ├── definitely-typed.ts │ │ ├── index.ts │ │ ├── names.ts │ │ └── run.ts │ ├── templates │ │ ├── global-modifying-module.d.ts │ │ ├── global-plugin.d.ts │ │ ├── global.d.ts │ │ ├── module-class.d.ts │ │ ├── module-function.d.ts │ │ ├── module-plugin.d.ts │ │ └── module.d.ts │ ├── test │ │ ├── __snapshots__ │ │ │ └── index.test.ts.snap │ │ ├── index.test.ts │ │ └── tsconfig.json │ └── tsconfig.json ├── dtslint-runner │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── expectedFailures.txt │ ├── package.json │ ├── src │ │ ├── check-parse-results.ts │ │ ├── index.ts │ │ ├── main.ts │ │ ├── post-results.ts │ │ ├── prepareAffectedPackages.ts │ │ ├── prepareAllPackages.ts │ │ └── types.ts │ └── tsconfig.json ├── dtslint │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── CODEOWNERS │ ├── LICENSE │ ├── README.md │ ├── expectedNpmVersionFailures.txt │ ├── package.json │ ├── src │ │ ├── .vscode │ │ │ └── launch.json │ │ ├── checks.ts │ │ ├── createProgram.ts │ │ ├── index.ts │ │ ├── lint.ts │ │ ├── typescript-installer.ts │ │ └── util.ts │ ├── test │ │ ├── index.test.ts │ │ └── tsconfig.json │ └── tsconfig.json ├── eslint-plugin │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── docs │ │ └── rules │ │ │ ├── dt-header.md │ │ │ ├── export-just-namespace.md │ │ │ ├── no-any-union.md │ │ │ ├── no-bad-reference.md │ │ │ ├── no-const-enum.md │ │ │ ├── no-dead-reference.md │ │ │ ├── no-declare-current-package.md │ │ │ ├── no-import-default-of-export-equals.md │ │ │ ├── no-outside-dependencies.md │ │ │ ├── no-self-import.md │ │ │ ├── no-single-element-tuple-type.md │ │ │ ├── no-type-only-packages.md │ │ │ ├── no-unnecessary-generics.md │ │ │ ├── no-useless-files.md │ │ │ ├── prefer-declare-function.md │ │ │ └── redundant-undefined.md │ ├── package.json │ ├── src │ │ ├── configs │ │ │ └── all.ts │ │ ├── index.ts │ │ ├── rules │ │ │ ├── expect.ts │ │ │ ├── export-just-namespace.ts │ │ │ ├── index.ts │ │ │ ├── no-any-union.ts │ │ │ ├── no-bad-reference.ts │ │ │ ├── no-const-enum.ts │ │ │ ├── no-dead-reference.ts │ │ │ ├── no-declare-current-package.ts │ │ │ ├── no-import-default-of-export-equals.ts │ │ │ ├── no-import-of-dev-dependencies.ts │ │ │ ├── no-old-dt-header.ts │ │ │ ├── no-relative-import-in-test.ts │ │ │ ├── no-self-import.ts │ │ │ ├── no-single-declare-module.ts │ │ │ ├── no-single-element-tuple-type.ts │ │ │ ├── no-type-only-packages.ts │ │ │ ├── no-unnecessary-generics.ts │ │ │ ├── no-useless-files.ts │ │ │ ├── prefer-declare-function.ts │ │ │ ├── redundant-undefined.ts │ │ │ └── strict-export-declare-modifiers.ts │ │ ├── suggestions.ts │ │ └── util.ts │ ├── test │ │ ├── __file_snapshots__ │ │ │ └── types │ │ │ │ ├── expect-diagnostics-editor │ │ │ │ ├── expect-diagnostics-tests.ts.lint │ │ │ │ └── index.d.ts.lint │ │ │ │ ├── expect-diagnostics-versioned │ │ │ │ ├── expect-diagnostics-tests.ts.lint │ │ │ │ └── index.d.ts.lint │ │ │ │ ├── expect-error-range │ │ │ │ ├── expect-error-range-tests.ts.lint │ │ │ │ └── index.d.ts.lint │ │ │ │ ├── expect-tsconfigs │ │ │ │ ├── expect-dom-tests.ts.lint │ │ │ │ ├── expect-tests.ts.lint │ │ │ │ └── index.d.ts.lint │ │ │ │ ├── expect │ │ │ │ ├── expect-tests.ts.lint │ │ │ │ └── index.d.ts.lint │ │ │ │ ├── export-just-namespace │ │ │ │ ├── bad1.d.ts.lint │ │ │ │ ├── bad2.d.ts.lint │ │ │ │ ├── bad3.d.ts.lint │ │ │ │ ├── export-just-namespace-tests.ts.lint │ │ │ │ ├── good1.d.ts.lint │ │ │ │ ├── good2.d.ts.lint │ │ │ │ ├── good3.d.ts.lint │ │ │ │ ├── good4.d.ts.lint │ │ │ │ ├── good5.d.ts.lint │ │ │ │ ├── good6.d.ts.lint │ │ │ │ ├── good7.d.ts.lint │ │ │ │ ├── good8.d.ts.lint │ │ │ │ └── good9.d.ts.lint │ │ │ │ ├── foo │ │ │ │ ├── foo-tests.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── v1 │ │ │ │ │ ├── foo-tests.ts.lint │ │ │ │ │ └── index.d.ts.lint │ │ │ │ ├── no-any-union │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-any-union-tests.ts.lint │ │ │ │ ├── no-bad-reference │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── no-bad-reference-tests.ts.lint │ │ │ │ ├── v0.1 │ │ │ │ │ ├── index.d.ts.lint │ │ │ │ │ └── no-bad-reference-tests.ts.lint │ │ │ │ └── v11 │ │ │ │ │ ├── index.d.ts.lint │ │ │ │ │ └── no-bad-reference-tests.ts.lint │ │ │ │ ├── no-const-enum │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-const-enum-tests.ts.lint │ │ │ │ ├── no-dead-reference │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── bad2.d.ts.lint │ │ │ │ ├── bad3.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-dead-reference-tests.ts.lint │ │ │ │ ├── no-declare-current-package-other │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-declare-current-package-other-tests.ts.lint │ │ │ │ ├── no-declare-current-package │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── no-declare-current-package-tests.ts.lint │ │ │ │ └── test │ │ │ │ │ └── deep │ │ │ │ │ └── import.d.ts.lint │ │ │ │ ├── no-import-default-of-export-equals │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-import-default-of-export-equals-tests.ts.lint │ │ │ │ ├── no-import-of-dev-dependencies │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-import-of-dev-dependencies-tests.ts.lint │ │ │ │ ├── no-old-dt-header │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── index2.d.ts.lint │ │ │ │ ├── no-old-dt-header-tests.ts.lint │ │ │ │ ├── ok1.ts.lint │ │ │ │ ├── ok2.d.ts.lint │ │ │ │ ├── ok3.d.ts.lint │ │ │ │ └── ok4.d.ts.lint │ │ │ │ ├── no-relative-import-in-test │ │ │ │ ├── abc.d.ts.lint │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── no-relative-import-in-test-tests.ts.lint │ │ │ │ ├── no-relative-import-in-test-tests2.ts.lint │ │ │ │ ├── no-relative-import-in-test-tests3.ts.lint │ │ │ │ └── no-relative-import-in-test │ │ │ │ │ └── abc.d.ts.lint │ │ │ │ ├── no-relative-references │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── no-relative-references-tests.ts.lint │ │ │ │ ├── other │ │ │ │ │ └── other.d.ts.lint │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts.lint │ │ │ │ │ ├── no-relative-references-tests.ts.lint │ │ │ │ │ └── other │ │ │ │ │ └── other.d.ts.lint │ │ │ │ ├── no-self-import │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-self-import-tests.ts.lint │ │ │ │ ├── no-single-declare-module │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── index2.d.ts.lint │ │ │ │ ├── index3.d.ts.lint │ │ │ │ └── no-single-declare-module-tests.ts.lint │ │ │ │ ├── no-single-element-tuple-type │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-single-element-tuple-type-tests.ts.lint │ │ │ │ ├── no-type-only-packages-empty │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-empty-tests.ts.lint │ │ │ │ ├── no-type-only-packages-enum │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-enum-tests.ts.lint │ │ │ │ ├── no-type-only-packages-export-equals-node │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-export-equals-node-tests.ts.lint │ │ │ │ ├── no-type-only-packages-export-equals-node2 │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-export-equals-node2-tests.ts.lint │ │ │ │ ├── no-type-only-packages-export-equals-type │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-export-equals-type-tests.ts.lint │ │ │ │ ├── no-type-only-packages-export-equals │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-export-equals-tests.ts.lint │ │ │ │ ├── no-type-only-packages-extend-window │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-extend-window-tests.ts.lint │ │ │ │ ├── no-type-only-packages-namespace │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-namespace-tests.ts.lint │ │ │ │ ├── no-type-only-packages-reexport-all │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-reexport-all-tests.ts.lint │ │ │ │ ├── no-type-only-packages-reexport │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-reexport-tests.ts.lint │ │ │ │ ├── no-type-only-packages │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-type-only-packages-tests.ts.lint │ │ │ │ ├── no-unnecessary-generics │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── no-unnecessary-generics-tests.ts.lint │ │ │ │ ├── no-useless-files │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── bad2.d.ts.lint │ │ │ │ ├── bad3.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── index2.d.ts.lint │ │ │ │ ├── index3.d.ts.lint │ │ │ │ └── no-useless-files-tests.ts.lint │ │ │ │ ├── other │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── other-tests.ts.lint │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts.lint │ │ │ │ │ └── other-tests.ts.lint │ │ │ │ ├── prefer-declare-function │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── prefer-declare-function-tests.ts.lint │ │ │ │ ├── redundant-undefined │ │ │ │ ├── bad.d.ts.lint │ │ │ │ ├── index.d.ts.lint │ │ │ │ └── redundant-undefined-tests.ts.lint │ │ │ │ ├── scoped__foo │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── scoped__foo-tests.ts.lint │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts.lint │ │ │ │ │ └── scoped__foo-tests.ts.lint │ │ │ │ ├── scoped__no-declare-current-package │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── no-declare-current-package-tests.ts.lint │ │ │ │ └── test │ │ │ │ │ └── deep │ │ │ │ │ └── import.d.ts.lint │ │ │ │ ├── scoped__no-relative-references │ │ │ │ ├── index.d.ts.lint │ │ │ │ ├── no-relative-references-tests.ts.lint │ │ │ │ ├── other │ │ │ │ │ └── other.d.ts.lint │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts.lint │ │ │ │ │ ├── no-relative-references-tests.ts.lint │ │ │ │ │ └── other │ │ │ │ │ └── other.d.ts.lint │ │ │ │ └── strict-export-declare-modifiers │ │ │ │ ├── bad1.d.ts.lint │ │ │ │ ├── bad2.d.ts.lint │ │ │ │ ├── bad3.d.ts.lint │ │ │ │ ├── bad4.d.ts.lint │ │ │ │ ├── bad5.d.ts.lint │ │ │ │ ├── bad6.d.ts.lint │ │ │ │ ├── bad7.d.ts.lint │ │ │ │ ├── good1.ts.lint │ │ │ │ ├── good10.d.ts.lint │ │ │ │ ├── good2.d.ts.lint │ │ │ │ ├── good3.d.ts.lint │ │ │ │ ├── good4.d.ts.lint │ │ │ │ ├── good5.d.ts.lint │ │ │ │ ├── good6.ts.lint │ │ │ │ ├── good7.d.ts.lint │ │ │ │ ├── good8.d.ts.lint │ │ │ │ ├── good9.d.ts.lint │ │ │ │ └── strict-export-declare-modifiers-tests.ts.lint │ │ ├── __snapshots__ │ │ │ └── plugin.test.ts.snap │ │ ├── eslint.test.ts │ │ ├── fixtures │ │ │ ├── .eslintrc.cjs │ │ │ ├── notNeededPackages.json │ │ │ ├── package.json │ │ │ └── types │ │ │ │ ├── expect-diagnostics-editor │ │ │ │ ├── expect-diagnostics-tests.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── expect-diagnostics-versioned │ │ │ │ ├── .eslintrc.js │ │ │ │ ├── expect-diagnostics-tests.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── expect-error-range │ │ │ │ ├── .eslintrc.js │ │ │ │ ├── expect-error-range-tests.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── expect-tsconfigs │ │ │ │ ├── expect-dom-tests.ts │ │ │ │ ├── expect-tests.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── tsconfig.dom.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── tsconfig.no-dom.json │ │ │ │ ├── expect │ │ │ │ ├── expect-tests.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── export-just-namespace │ │ │ │ ├── bad1.d.ts │ │ │ │ ├── bad2.d.ts │ │ │ │ ├── bad3.d.ts │ │ │ │ ├── export-just-namespace-tests.ts │ │ │ │ ├── good1.d.ts │ │ │ │ ├── good2.d.ts │ │ │ │ ├── good3.d.ts │ │ │ │ ├── good4.d.ts │ │ │ │ ├── good5.d.ts │ │ │ │ ├── good6.d.ts │ │ │ │ ├── good7.d.ts │ │ │ │ ├── good8.d.ts │ │ │ │ ├── good9.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── foo │ │ │ │ ├── foo-tests.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── v1 │ │ │ │ │ ├── foo-tests.ts │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-any-union │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-any-union-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-bad-reference │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-bad-reference-tests.ts │ │ │ │ ├── package.json │ │ │ │ ├── tsconfig.json │ │ │ │ ├── v0.1 │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── no-bad-reference-tests.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── tsconfig.json │ │ │ │ └── v11 │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── no-bad-reference-tests.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-const-enum │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-const-enum-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-dead-reference │ │ │ │ ├── bad.d.ts │ │ │ │ ├── bad2.d.ts │ │ │ │ ├── bad3.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-dead-reference-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-declare-current-package-other │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-declare-current-package-other-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-declare-current-package │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-declare-current-package-tests.ts │ │ │ │ ├── package.json │ │ │ │ ├── test │ │ │ │ │ └── deep │ │ │ │ │ │ └── import.d.ts │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-import-default-of-export-equals │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-import-default-of-export-equals-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-import-of-dev-dependencies │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-import-of-dev-dependencies-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-old-dt-header │ │ │ │ ├── index.d.ts │ │ │ │ ├── index2.d.ts │ │ │ │ ├── no-old-dt-header-tests.ts │ │ │ │ ├── ok1.ts │ │ │ │ ├── ok2.d.ts │ │ │ │ ├── ok3.d.ts │ │ │ │ ├── ok4.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-relative-import-in-test │ │ │ │ ├── abc.d.ts │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-relative-import-in-test-tests.ts │ │ │ │ ├── no-relative-import-in-test-tests2.ts │ │ │ │ ├── no-relative-import-in-test-tests3.ts │ │ │ │ ├── no-relative-import-in-test │ │ │ │ │ └── abc.d.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-relative-references │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-relative-references-tests.ts │ │ │ │ ├── other │ │ │ │ │ └── other.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── no-relative-references-tests.ts │ │ │ │ │ ├── other │ │ │ │ │ └── other.d.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-self-import │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-self-import-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-single-declare-module │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── index2.d.ts │ │ │ │ ├── index3.d.ts │ │ │ │ ├── no-single-declare-module-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-single-element-tuple-type │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-single-element-tuple-type-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-empty │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-empty-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-enum │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-enum-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-export-equals-node │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-export-equals-node-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-export-equals-node2 │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-export-equals-node2-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-export-equals-type │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-export-equals-type-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-export-equals │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-export-equals-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-extend-window │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-extend-window-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-namespace │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-namespace-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-reexport-all │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-reexport-all-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages-reexport │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-reexport-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-type-only-packages │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-type-only-packages-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-unnecessary-generics │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-unnecessary-generics-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── no-useless-files │ │ │ │ ├── bad.d.ts │ │ │ │ ├── bad2.d.ts │ │ │ │ ├── bad3.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── index2.d.ts │ │ │ │ ├── index3.d.ts │ │ │ │ ├── no-useless-files-tests.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ │ ├── other │ │ │ │ ├── index.d.ts │ │ │ │ ├── other-tests.ts │ │ │ │ ├── package.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── other-tests.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── tsconfig.json │ │ │ │ ├── prefer-declare-function │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── prefer-declare-function-tests.ts │ │ │ │ └── tsconfig.json │ │ │ │ ├── redundant-undefined │ │ │ │ ├── bad.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── redundant-undefined-tests.ts │ │ │ │ └── tsconfig.json │ │ │ │ ├── scoped__foo │ │ │ │ ├── index.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── scoped__foo-tests.ts │ │ │ │ ├── tsconfig.json │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── package.json │ │ │ │ │ ├── scoped__foo-tests.ts │ │ │ │ │ └── tsconfig.json │ │ │ │ ├── scoped__no-declare-current-package │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-declare-current-package-tests.ts │ │ │ │ ├── package.json │ │ │ │ ├── test │ │ │ │ │ └── deep │ │ │ │ │ │ └── import.d.ts │ │ │ │ └── tsconfig.json │ │ │ │ ├── scoped__no-relative-references │ │ │ │ ├── index.d.ts │ │ │ │ ├── no-relative-references-tests.ts │ │ │ │ ├── other │ │ │ │ │ └── other.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── tsconfig.json │ │ │ │ └── v1 │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── no-relative-references-tests.ts │ │ │ │ │ ├── other │ │ │ │ │ └── other.d.ts │ │ │ │ │ ├── package.json │ │ │ │ │ └── tsconfig.json │ │ │ │ └── strict-export-declare-modifiers │ │ │ │ ├── bad1.d.ts │ │ │ │ ├── bad2.d.ts │ │ │ │ ├── bad3.d.ts │ │ │ │ ├── bad4.d.ts │ │ │ │ ├── bad5.d.ts │ │ │ │ ├── bad6.d.ts │ │ │ │ ├── bad7.d.ts │ │ │ │ ├── good1.ts │ │ │ │ ├── good10.d.ts │ │ │ │ ├── good2.d.ts │ │ │ │ ├── good3.d.ts │ │ │ │ ├── good4.d.ts │ │ │ │ ├── good5.d.ts │ │ │ │ ├── good6.ts │ │ │ │ ├── good7.d.ts │ │ │ │ ├── good8.d.ts │ │ │ │ ├── good9.d.ts │ │ │ │ ├── package.json │ │ │ │ ├── strict-export-declare-modifiers-tests.ts │ │ │ │ └── tsconfig.json │ │ ├── plugin.test.ts │ │ ├── tsconfig.json │ │ ├── types │ │ │ ├── dts-critic │ │ │ │ ├── index.d.ts │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ └── wenceslas │ │ │ │ ├── index.d.ts │ │ │ │ └── package.json │ │ ├── util.test.ts │ │ └── util.ts │ └── tsconfig.json ├── header-parser │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ ├── test │ │ ├── index.test.ts │ │ └── tsconfig.json │ └── tsconfig.json ├── mergebot │ ├── .eslintignore │ ├── README.md │ ├── apollo.config.js │ ├── docs │ │ ├── dt-mergebot-lifecycle.svg │ │ ├── how-it-works.md │ │ └── policy.md │ ├── host.json │ ├── local.settings.json │ ├── package.json │ ├── src │ │ ├── _tests │ │ │ ├── cachedQueries.d.ts │ │ │ ├── cachedQueries.js │ │ │ ├── discussions.test.ts │ │ │ ├── fixturedActions.test.ts │ │ │ ├── fixtures │ │ │ │ ├── 38979 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43136 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _notes.txt │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43144 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _notes.txt │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43151 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _notes.txt │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43160 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _notes.txt │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43175 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _notes.txt │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43235 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _notes.txt │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43314 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43695 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43960 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44105 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44256 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44267 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44282 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44288 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44290 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44299 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44316 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44343 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44402 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44411 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44437 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44439 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44631 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44857 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45137 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45627 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45836 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45884 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45888 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45890 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45946 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45982 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 45999 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46008 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46019 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46120 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46191 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46196 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46279 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46804 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 46879 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 47017 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48216 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48236 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48708 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48945 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 49417 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 49548 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 49575 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 49841 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 50429 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 50443 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 51338 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 52579 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 52848 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 53121 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 55035 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 55210 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 55508 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 55512 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 55741 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 58632 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 58764 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 59628 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 66742 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 66757 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 66979 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 67090 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 68381 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 68386 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 68510 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 68511 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 68512 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 68772 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 68908 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 69589 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 69997 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 70024 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 70150 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 70218 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 70222 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 70242 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 70751 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 71725 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 71790 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 72083 │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43695-duplicate-comment │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43695-post-review │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 43960-post-close │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44299-with-files │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44343-pending-travis │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44343-pre-travis │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44424-1-travis-instantly-finished │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44424-2-after-travis-second │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44989-14days │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44989-32days │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44989-3days │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 44989-7days │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 47017-blessed-and-one-owner │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 47017-blessed-and-two-owner │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 47017-blessed │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48652-merge-offer │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48652-prereq │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48652-retract-merge-offer-and-prerequest │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ ├── 48652-retract-merge-offer │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ │ └── 52579-edits-infra │ │ │ │ │ ├── _downloads.json │ │ │ │ │ ├── _files.json │ │ │ │ │ ├── _response.json │ │ │ │ │ ├── derived.json │ │ │ │ │ ├── mutations.json │ │ │ │ │ └── result.json │ │ │ └── testEnvironment.js │ │ ├── basic.ts │ │ ├── commands │ │ │ ├── create-fixture.ts │ │ │ ├── update-all-fixtures.ts │ │ │ └── update-test-data.ts │ │ ├── comments.ts │ │ ├── compute-pr-actions.ts │ │ ├── discussions.ts │ │ ├── emoji.ts │ │ ├── execute-pr-actions.ts │ │ ├── functions │ │ │ ├── api.ts │ │ │ ├── discussions-trigger.ts │ │ │ ├── httpTrigger.ts │ │ │ ├── index.ts │ │ │ └── pr-trigger.ts │ │ ├── graphql-client.ts │ │ ├── pr-info.ts │ │ ├── queries │ │ │ ├── SHA1-to-PR-query.ts │ │ │ ├── all-open-prs-query.ts │ │ │ ├── card-id-to-pr-query.ts │ │ │ ├── file-query.ts │ │ │ ├── label-columns-queries.ts │ │ │ ├── pr-query.ts │ │ │ ├── projectboard-cards.ts │ │ │ └── schema │ │ │ │ ├── CardIdToPr.ts │ │ │ │ ├── GetAllOpenPRs.ts │ │ │ │ ├── GetFileContent.ts │ │ │ │ ├── GetLabels.ts │ │ │ │ ├── GetPRForSHA1.ts │ │ │ │ ├── GetProjectBoardCards.ts │ │ │ │ ├── GetProjectColumns.ts │ │ │ │ ├── PR.ts │ │ │ │ ├── PRFiles.ts │ │ │ │ └── graphql-global-types.ts │ │ ├── run.ts │ │ ├── scripts │ │ │ └── updateJSONFixtures.mjs │ │ ├── side-effects │ │ │ └── merge-codeowner-prs.ts │ │ ├── types │ │ │ └── discussions.d.ts │ │ ├── urls.ts │ │ └── util │ │ │ ├── cachedQueries.ts │ │ │ ├── comment.ts │ │ │ ├── fetchFile.ts │ │ │ ├── io.ts │ │ │ ├── npm.ts │ │ │ ├── reply.ts │ │ │ ├── util.ts │ │ │ └── verify.ts │ └── tsconfig.json ├── publisher │ ├── .editorconfig │ ├── .gitignore │ ├── .vscode │ │ └── launch.json │ ├── CODEOWNERS │ ├── DEBUGGING.md │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── src │ │ ├── calculate-versions.ts │ │ ├── clean.ts │ │ ├── full.ts │ │ ├── generate-packages.ts │ │ ├── get-definitely-typed.ts │ │ ├── index.ts │ │ ├── lib │ │ │ ├── common.ts │ │ │ ├── npm.ts │ │ │ ├── package-publisher.ts │ │ │ ├── secrets.ts │ │ │ ├── settings.ts │ │ │ └── versions.ts │ │ ├── main.ts │ │ ├── publish-packages.ts │ │ ├── publish-registry.ts │ │ ├── run.ts │ │ └── util │ │ │ └── util.ts │ ├── test │ │ ├── __snapshots__ │ │ │ └── generate-packages.test.ts.snap │ │ ├── generate-packages.test.ts │ │ ├── isAlreadyDeprecated.test.ts │ │ ├── tsconfig.json │ │ └── utils.ts │ └── tsconfig.json ├── retag │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── typescript-packages │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ ├── test │ │ ├── index.test.ts │ │ └── tsconfig.json │ └── tsconfig.json ├── typescript-versions │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ │ └── index.ts │ ├── test │ │ ├── index.test.ts │ │ └── tsconfig.json │ └── tsconfig.json └── utils │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src │ ├── assertions.ts │ ├── async.ts │ ├── collections.ts │ ├── fs.ts │ ├── index.ts │ ├── io.ts │ ├── lib │ │ └── settings.ts │ ├── logging.ts │ ├── miscellany.ts │ ├── npm.ts │ ├── process.ts │ └── progress.ts │ ├── test │ ├── assertions.test.ts │ ├── data │ │ └── pack │ │ │ └── test.txt │ ├── io.test.ts │ └── tsconfig.json │ └── tsconfig.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── tsconfig.base.json ├── tsconfig.json └── tsconfig.test.json /.changeset/README.md: -------------------------------------------------------------------------------- 1 | # Changesets 2 | 3 | Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 | with multi-package repos, or single-package repos to help you version and publish your code. You can 5 | find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 | 7 | We have a quick list of common questions to get you started engaging with this project in 8 | [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) 9 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "fixed": [], 6 | "linked": [], 7 | "access": "public", 8 | "baseBranch": "main", 9 | "updateInternalDependencies": "patch", 10 | "ignore": [], 11 | "privatePackages": { 12 | "tag": false, 13 | "version": false 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | *.d.ts 2 | **/dist/** 3 | node_modules 4 | packages/publisher/output 5 | **/testsource/** 6 | **/fixtures/** 7 | packages/eslint-plugin/test/fixtures 8 | packages/mergebot/src/queries/schema 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | -------------------------------------------------------------------------------- /.github/codeql/codeql-configuration.yml: -------------------------------------------------------------------------------- 1 | name: CodeQL Configuration 2 | 3 | paths-ignore: 4 | - '*.d.ts' 5 | - 'packages/publisher/output' 6 | - '**/testsource/**' 7 | - '**/fixtures/**' 8 | - 'packages/eslint-plugin/test/fixtures' 9 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: 'github-actions' 9 | directory: '/' 10 | schedule: 11 | interval: 'weekly' 12 | groups: 13 | github-actions: 14 | patterns: 15 | - '*' 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | *.log 4 | dist 5 | *.tsbuildinfo 6 | *.lerna_backup 7 | packages/utils/cache 8 | .pnpm-store 9 | 10 | 11 | **/.vscode/* 12 | !**/.vscode/tasks.json 13 | !**/.vscode/settings.template.json 14 | !**/.vscode/launch.json 15 | !**/.vscode/extensions.json 16 | 17 | /cache 18 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | prefer-workspace-packages=true 2 | engine-strict=false 3 | disallow-workspace-cycles=true 4 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | packages/publisher/output 4 | 5 | packages/dts-critic/testsource 6 | **/fixtures/** 7 | 8 | *.json 9 | *.yml 10 | *.yaml 11 | *.md 12 | 13 | packages/mergebot/src/queries/schema 14 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 120, 3 | "tabWidth": 2 4 | } -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. 3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp 4 | 5 | // List of extensions which should be recommended for users of this workspace. 6 | "recommendations": [ 7 | "esbenp.prettier-vscode", 8 | "ms-azuretools.vscode-azurefunctions" 9 | ], 10 | // List of extensions recommended by VS Code that should not be recommended for users of this workspace. 11 | "unwantedRecommendations": [ 12 | 13 | ] 14 | } -------------------------------------------------------------------------------- /.vscode/settings.template.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.defaultFormatter": "esbenp.prettier-vscode", 3 | } -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @sandersn @jakebailey @andrewbranch 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Microsoft Open Source Code of Conduct 2 | 3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 4 | 5 | Resources: 6 | 7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) 8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) 9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns 10 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: "ts-jest", 3 | testEnvironment: "node", 4 | modulePathIgnorePatterns: ["packages\\/publisher\\/output", "testsource", "fixtures"], 5 | testMatch: ["/packages/*/test/**/*.test.ts", "/packages/dts-critic/index.test.ts", "/packages/mergebot/src/_tests/*.test.ts"], 6 | transform: { 7 | "^.+\\.tsx?$": [ 8 | "ts-jest", 9 | { 10 | tsconfig: "/tsconfig.test.json", 11 | diagnostics: false, 12 | }, 13 | ], 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /packages/definitions-parser/.gitignore: -------------------------------------------------------------------------------- 1 | cache/ 2 | data/ 3 | logs/ 4 | output/ 5 | validateOutput/ -------------------------------------------------------------------------------- /packages/definitions-parser/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | data 5 | .DS_Store 6 | .vscode 7 | *.tsbuildinfo 8 | tsconfig.json 9 | -------------------------------------------------------------------------------- /packages/definitions-parser/src/clean.ts: -------------------------------------------------------------------------------- 1 | import fs from "fs"; 2 | import { dataDirPath } from "./lib/settings"; 3 | 4 | export function clean() { 5 | fs.rmSync(dataDirPath, { recursive: true, force: true }); 6 | } 7 | -------------------------------------------------------------------------------- /packages/definitions-parser/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./clean"; 2 | export * from "./data-file"; 3 | export * from "./get-affected-packages"; 4 | export * from "./get-definitely-typed"; 5 | export * from "./git"; 6 | export * from "./mocks"; 7 | export * from "./packages"; 8 | export { getAllowedPackageJsonDependencies, sourceBranch } from "./lib/settings"; 9 | -------------------------------------------------------------------------------- /packages/definitions-parser/test/fixtures/allows-references-to-old-versions-of-self/types/fail/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/definitions-parser/test/fixtures/allows-references-to-old-versions-of-self/types/fail/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "@types/fail", 4 | "version": "1.0.9999", 5 | "projects": [ 6 | "https://youtube.com/typeref-fails" 7 | ], 8 | "devDependencies": { 9 | "@types/fail": "workspace:." 10 | }, 11 | "owners": [ 12 | { 13 | "name": "Type Ref Fails", 14 | "url": "https://youtube.com/typeref-fails" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /packages/definitions-parser/test/fixtures/allows-references-to-old-versions-of-self/types/fail/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": ["es6"], 5 | "noImplicitAny": true, 6 | "noImplicitThis": true, 7 | "strictFunctionTypes": true, 8 | "strictNullChecks": true, 9 | "baseUrl": "../", 10 | "typeRoots": ["../"], 11 | "types": [], 12 | "noEmit": true, 13 | "forceConsistentCasingInFileNames": true 14 | }, 15 | "files": ["index.d.ts"] 16 | } 17 | -------------------------------------------------------------------------------- /packages/definitions-parser/test/fixtures/doesnt-omit-dependencies-if-only-some-deep-modules-are-declared/types/styled-components-react-native/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module "styled-components/native" { 2 | import {} from "styled-components"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/definitions-parser/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." }, 10 | { "path": "../../utils" } 11 | ], 12 | "exclude": ["fixtures"] 13 | } 14 | -------------------------------------------------------------------------------- /packages/definitions-parser/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src", 6 | "types": ["node"], 7 | }, 8 | "include": ["src"], 9 | "references": [ 10 | { "path": "../utils" }, 11 | { "path": "../header-parser" } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /packages/dts-critic/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | testsource 4 | index.test.ts 5 | logs 6 | .DS_Store 7 | .vscode 8 | *.tsbuildinfo 9 | tsconfig.json 10 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/dts-critic.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for package dts-critic 2.0 2 | // Project: https://github.com/microsoft/TypeScript 3 | // Definitions by: TypeScript Bot 4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped 5 | 6 | declare function _default(): void; 7 | 8 | export = _default; 9 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/dts-critic.js: -------------------------------------------------------------------------------- 1 | module.exports = function() {}; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/example/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/dts-critic/testsource/example/index.d.ts -------------------------------------------------------------------------------- /packages/dts-critic/testsource/example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "@types/example", 4 | "nonNpm": true, 5 | "nonNpmDescription": "example", 6 | "version": "1.0.9999", 7 | "projects": [ 8 | "https://github.com/microsoft/TypeScript" 9 | ], 10 | "devDependencies": { 11 | "@types/example": "workspace:." 12 | }, 13 | "owners": [ 14 | { 15 | "name": "Typescript Bot", 16 | "githubUsername": "typescript-bot" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingDefault.d.ts: -------------------------------------------------------------------------------- 1 | export default function (): void; 2 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingDefault.js: -------------------------------------------------------------------------------- 1 | module.exports = function() {}; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingDtsProperty.d.ts: -------------------------------------------------------------------------------- 1 | export const a: () => void; 2 | export const b: number; 3 | export const foo: string; 4 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingDtsProperty.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | a: () => {}, 3 | b: 0, 4 | }; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingDtsSignature.d.ts: -------------------------------------------------------------------------------- 1 | interface Exports { 2 | (): void; 3 | foo: () => {}; 4 | } 5 | 6 | declare const exp: Exports; 7 | export = exp; 8 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingDtsSignature.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | foo: () => {}, 3 | }; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingExportEquals.d.ts: -------------------------------------------------------------------------------- 1 | export function foo(a: number): number; 2 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingExportEquals.js: -------------------------------------------------------------------------------- 1 | function foo(a) { 2 | return a; 3 | } 4 | 5 | module.exports = foo; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingJsProperty.d.ts: -------------------------------------------------------------------------------- 1 | export const a: () => void; 2 | export const b: number; 3 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingJsProperty.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | a: () => {}, 3 | b: 0, 4 | foo: "missing", 5 | }; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingJsSignatureExportEquals.d.ts: -------------------------------------------------------------------------------- 1 | interface Foo { 2 | bar: () => void; 3 | } 4 | declare const foo: Foo; 5 | 6 | export = foo; 7 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingJsSignatureExportEquals.js: -------------------------------------------------------------------------------- 1 | module.exports = class Foo { 2 | bar() {} 3 | }; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingJsSignatureNoExportEquals.d.ts: -------------------------------------------------------------------------------- 1 | export default function (): void; 2 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/missingJsSignatureNoExportEquals.js: -------------------------------------------------------------------------------- 1 | module.exports = () => {}; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/no-matching-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "@types/wenceslas", 4 | "version": "0.0.9999", 5 | "projects": [ 6 | "https://github.com/microsoft/TypeScript" 7 | ], 8 | "devDependencies": { 9 | "@types/wenceslas": "workspace:." 10 | }, 11 | "owners": [ 12 | { 13 | "name": "Typescript Bot", 14 | "githubUsername": "typescript-bot" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/no-matching-package/wenceslas.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/dts-critic/testsource/no-matching-package/wenceslas.d.ts -------------------------------------------------------------------------------- /packages/dts-critic/testsource/noErrors.d.ts: -------------------------------------------------------------------------------- 1 | export const a: number; 2 | export const b: string; 3 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/noErrors.js: -------------------------------------------------------------------------------- 1 | exports.a = 42; 2 | exports.b = "forty-two"; -------------------------------------------------------------------------------- /packages/dts-critic/testsource/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "@types/dts-critic", 4 | "version": "1.0.9999", 5 | "projects": [ 6 | "https://github.com/microsoft/TypeScript" 7 | ], 8 | "devDependencies": { 9 | "@types/dts-critic": "workspace:." 10 | }, 11 | "owners": [ 12 | { 13 | "name": "Typescript Bot", 14 | "githubUsername": "typescript-bot" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "@types/typescript", 4 | "version": "1200000.5.9999", 5 | "projects": [ 6 | "https://github.com/microsoft/TypeScript" 7 | ], 8 | "devDependencies": { 9 | "@types/typescript": "workspace:." 10 | }, 11 | "owners": [ 12 | { 13 | "name": "Typescript Bot", 14 | "githubUsername": "typescript-bot" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/typescript/typescript.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/dts-critic/testsource/typescript/typescript.d.ts -------------------------------------------------------------------------------- /packages/dts-critic/testsource/webpackPropertyNames.d.ts: -------------------------------------------------------------------------------- 1 | export var normal: string; 2 | -------------------------------------------------------------------------------- /packages/dts-critic/testsource/webpackPropertyNames.js: -------------------------------------------------------------------------------- 1 | var $export = {}; 2 | // type bitmap 3 | $export.F = 1; // forced 4 | $export.G = 2; // global 5 | $export.S = 4; // static 6 | $export.P = 8; // proto 7 | $export.B = 16; // bind 8 | $export.W = 32; // wrap 9 | $export.U = 64; // safe 10 | $export.R = 128; // real proto method for `library` 11 | $export.normal = "hi"; 12 | module.exports = $export; 13 | -------------------------------------------------------------------------------- /packages/dts-critic/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "allowJs": true, 5 | "checkJs": true, 6 | "resolveJsonModule": true, 7 | "outDir": "dist", 8 | "declaration": true, 9 | "types": ["jest", "node"] 10 | }, 11 | "exclude": [ 12 | "dist/*", 13 | "sources/*", 14 | "testsource/*", 15 | ], 16 | "references": [ 17 | { "path": "../header-parser" } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/dts-gen/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/dts-gen/src/names.ts: -------------------------------------------------------------------------------- 1 | export function getDTName(s: string) { 2 | if (s.indexOf("@") === 0 && s.indexOf("/") !== -1) { 3 | // we have a scoped module, e.g. @bla/foo 4 | // which should be converted to bla__foo 5 | s = s.substr(1).replace("/", "__"); 6 | } 7 | return s; 8 | } 9 | -------------------------------------------------------------------------------- /packages/dts-gen/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." } 10 | ], 11 | "exclude": ["fixtures"] 12 | } 13 | -------------------------------------------------------------------------------- /packages/dts-gen/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "dist", 6 | "lib": ["es2022", "dom"] 7 | }, 8 | "include": ["src"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/dtslint-runner/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/dtslint-runner/expectedFailures.txt: -------------------------------------------------------------------------------- 1 | bookshelf 2 | graphql-resolvers 3 | -------------------------------------------------------------------------------- /packages/dtslint-runner/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src" 6 | }, 7 | "include": ["src"], 8 | "references": [ 9 | { "path": "../definitions-parser" }, 10 | { "path": "../utils" } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /packages/dtslint/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | typescript-installs 4 | -------------------------------------------------------------------------------- /packages/dtslint/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/dtslint/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @sandersn -------------------------------------------------------------------------------- /packages/dtslint/src/typescript-installer.ts: -------------------------------------------------------------------------------- 1 | import { TypeScriptVersion } from "@definitelytyped/typescript-versions"; 2 | import * as typeScriptPackages from "@definitelytyped/typescript-packages"; 3 | 4 | export type TsVersion = TypeScriptVersion | "local"; 5 | 6 | export function typeScriptPath(version: TsVersion, tsLocal: string | undefined): string { 7 | if (version === "local") { 8 | return tsLocal! + "/typescript.js"; 9 | } 10 | return typeScriptPackages.resolve(version); 11 | } 12 | -------------------------------------------------------------------------------- /packages/dtslint/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." }, 10 | { "path": "../../utils" } 11 | ], 12 | "exclude": ["expect"] 13 | } 14 | -------------------------------------------------------------------------------- /packages/dtslint/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src" 6 | }, 7 | "include": ["src", "src/rules"], 8 | "references": [ 9 | { "path": "../dts-critic" }, 10 | { "path": "../header-parser" }, 11 | { "path": "../typescript-versions" }, 12 | { "path": "../utils" } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /packages/eslint-plugin/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/README.md: -------------------------------------------------------------------------------- 1 | # `@definitelytyped/eslint-plugin` 2 | 3 | ESLint rules for DefinitelyTyped. 4 | 5 | The `@definitelytyped:all` preset enables all rules. 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/export-just-namespace.md: -------------------------------------------------------------------------------- 1 | # export-just-namespace 2 | 3 | Declaring a namespace is unnecessary if that is the module's only content; just use ES6 export syntax instead. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | namespace MyLib { 9 | export function f(): number; 10 | } 11 | export = MyLib; 12 | ``` 13 | 14 | **Good**: 15 | 16 | ```ts 17 | export function f(): number; 18 | ``` 19 | 20 | **Also good**: 21 | 22 | ```ts 23 | namespace MyLib { 24 | export function f(): number; 25 | } 26 | function MyLib(): number; 27 | export = MyLib; 28 | ``` 29 | 30 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/no-const-enum.md: -------------------------------------------------------------------------------- 1 | # no-const-enum 2 | 3 | Avoid using `const enum`s. These can't be used by JavaScript users or by TypeScript users with [`--isolatedModules`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) enabled. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | const enum Bit { Off, On } 9 | export function f(b: Bit): void; 10 | ``` 11 | 12 | **Good**: 13 | 14 | ```ts 15 | export function f(b: 0 | 1): void; 16 | ``` 17 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/no-dead-reference.md: -------------------------------------------------------------------------------- 1 | # no-dead-reference 2 | 3 | A `` comment should go at the top of a file -- otherwise it is just a normal comment. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | console.log("Hello world!"); 9 | /// 10 | ``` 11 | 12 | **Good**: 13 | 14 | ```ts 15 | /// 16 | console.log("Hello world!"); 17 | ``` 18 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/no-outside-dependencies.md: -------------------------------------------------------------------------------- 1 | # no-outside-dependencies 2 | 3 | Don't import from `DefinitelyTyped/node_modules`. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | import * as x from "x"; 9 | // where 'x' is defined only in `DefinitelyTyped/node_modules` 10 | ``` 11 | 12 | **Good**: 13 | 14 | Add a `package.json`: 15 | 16 | ```ts 17 | { 18 | "private": true, 19 | "dependencies": { 20 | "x": "^1.2.3" 21 | } 22 | } 23 | ``` 24 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/no-self-import.md: -------------------------------------------------------------------------------- 1 | # no-self-import 2 | 3 | A package should not import components of itself using a globally-qualified name; it should use relative imports instead. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | import foo from "this-package/foo.d.ts"; 9 | ``` 10 | 11 | **Good**: 12 | 13 | ```ts 14 | import foo from "./foo.d.ts"; 15 | ``` 16 | 17 | **Bad**: 18 | 19 | ```ts 20 | import myself from "this-package"; 21 | ``` 22 | 23 | **Good**: 24 | 25 | ```ts 26 | import myself from "."; 27 | ``` 28 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/no-single-element-tuple-type.md: -------------------------------------------------------------------------------- 1 | # no-single-element-tuple-type 2 | 3 | Some users mistakenly write `[T]` when then intend to write an array type `T[]`. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | export const x: [T]; 9 | ``` 10 | 11 | **Good**: 12 | 13 | ```ts 14 | export const x: T[]; 15 | ``` 16 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/no-useless-files.md: -------------------------------------------------------------------------------- 1 | # no-useless-files 2 | 3 | Don't include empty files. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | ``` 9 | 10 | **Good**: 11 | 12 | ```ts 13 | export function something(): void; 14 | ``` 15 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/prefer-declare-function.md: -------------------------------------------------------------------------------- 1 | # prefer-declare-function 2 | 3 | Prefer to declare a function using the `function` keyword instead of a variable of function type. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | export const f: () => number; 9 | ``` 10 | 11 | **Good**: 12 | 13 | ```ts 14 | export function f(): number; 15 | ``` 16 | -------------------------------------------------------------------------------- /packages/eslint-plugin/docs/rules/redundant-undefined.md: -------------------------------------------------------------------------------- 1 | # redundant-undefined 2 | 3 | Avoid explicitly specifying `undefined` as a type for a parameter which is already optional. 4 | 5 | **Bad**: 6 | 7 | ```ts 8 | function f(s?: string | undefined): void {} 9 | ``` 10 | 11 | **Good**: 12 | 13 | ```ts 14 | function f(s?: string): void {} 15 | ``` 16 | -------------------------------------------------------------------------------- /packages/eslint-plugin/src/index.ts: -------------------------------------------------------------------------------- 1 | import { ESLint } from "eslint"; 2 | import { all } from "./configs/all"; 3 | import { rules } from "./rules/index"; 4 | 5 | const packageJson = require("../package.json"); 6 | 7 | const plugin = { 8 | meta: { 9 | name: packageJson.name, 10 | version: packageJson.version, 11 | }, 12 | configs: { 13 | all, 14 | }, 15 | rules: rules as any, 16 | } satisfies ESLint.Plugin; 17 | 18 | export = plugin; 19 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/expect-diagnostics-editor/expect-diagnostics-tests.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/expect-diagnostics-editor/expect-diagnostics-tests.ts ==== 4 | 5 | // eslint-disable-next-line @definitelytyped/no-relative-import-in-test 6 | import * as expect from "."; 7 | 8 | // No diagnostic; we did not set versionsToTest and so are in an editor. 9 | const blah: string = expect.foo; 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/expect-diagnostics-editor/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/expect-diagnostics-editor/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | 7 | // No diagnostic; we did not set versionsToTest and so are in an editor. 8 | export const badSet: Array; 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/expect-error-range/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/expect-error-range/index.d.ts ==== 4 | 5 | export const value: number; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/expect/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/expect/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | 7 | export const aUnion: string | number | undefined; 8 | 9 | export function complicatedUnion(x: T, y: T): { 10 | prop1: "a" | "b" | "c"; 11 | prop2: readonly (string | number)[]; 12 | prop3: ReadonlyArray; 13 | }; 14 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/bad1.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/export-just-namespace/bad1.d.ts 2 | 1:1 error Instead of `export =`-ing a namespace, use the body of the namespace as the module body @definitelytyped/export-just-namespace 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/export-just-namespace/bad1.d.ts ==== 7 | 8 | export = Stuff; 9 | ~~~~~~~~~~~~~~~ 10 | !!! @definitelytyped/export-just-namespace: Instead of `export =`-ing a namespace, use the body of the namespace as the module body. 11 | namespace Stuff {} 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/bad2.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/export-just-namespace/bad2.d.ts 2 | 2:1 error Instead of `export =`-ing a namespace, use the body of the namespace as the module body @definitelytyped/export-just-namespace 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/export-just-namespace/bad2.d.ts ==== 7 | 8 | namespace Stuff {} 9 | export = Stuff; 10 | ~~~~~~~~~~~~~~~ 11 | !!! @definitelytyped/export-just-namespace: Instead of `export =`-ing a namespace, use the body of the namespace as the module body. 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/export-just-namespace-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/export-just-namespace/export-just-namespace-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/export-just-namespace/export-just-namespace-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good1.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good1.d.ts ==== 4 | 5 | export const value = 3; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good2.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good2.d.ts ==== 4 | 5 | export default class Hello {} 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good3.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good3.d.ts ==== 4 | 5 | import * as fs from "fs"; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good4.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good4.d.ts ==== 4 | 5 | const value = 123; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good5.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good5.d.ts ==== 4 | 5 | export = stuff; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good6.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good6.d.ts ==== 4 | 5 | export = createStuff(); 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good7.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good7.d.ts ==== 4 | 5 | class Stuff {} 6 | namespace Stuff {} 7 | export = Stuff; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/export-just-namespace/good8.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/export-just-namespace/good8.d.ts ==== 4 | 5 | export = First 6 | namespace First {} 7 | declare function First() 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/foo/foo-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/foo/foo-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/foo/foo-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/foo/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/foo/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/foo/v1/foo-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/foo/v1/foo-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/foo/v1/foo-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/foo/v1/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/foo/v1/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-any-union/bad.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-any-union/bad.d.ts 2 | 1:17 error Including `any` in a union will override all other members of the union @definitelytyped/no-any-union 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-any-union/bad.d.ts ==== 7 | 8 | export const y: string | any; 9 | ~~~~~~~~~~~~ 10 | !!! @definitelytyped/no-any-union: Including `any` in a union will override all other members of the union. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-any-union/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-any-union/index.d.ts ==== 4 | 5 | export const x: any; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-any-union/no-any-union-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-any-union/no-any-union-tests.ts 2 | 1:17 error Including `any` in a union will override all other members of the union @definitelytyped/no-any-union 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-any-union/no-any-union-tests.ts ==== 7 | 8 | export const z: string | any; 9 | ~~~~~~~~~~~~ 10 | !!! @definitelytyped/no-any-union: Including `any` in a union will override all other members of the union. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-bad-reference/v0.1/no-bad-reference-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-bad-reference/v0.1/no-bad-reference-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-bad-reference/v0.1/no-bad-reference-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-bad-reference/v11/no-bad-reference-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-bad-reference/v11/no-bad-reference-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-bad-reference/v11/no-bad-reference-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-const-enum/bad.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-const-enum/bad.d.ts 2 | 1:1 error Use of `const enum` is forbidden @definitelytyped/no-const-enum 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-const-enum/bad.d.ts ==== 7 | 8 | const enum E { } 9 | ~~~~~~~~~~~~~~~~ 10 | !!! @definitelytyped/no-const-enum: Use of `const enum` is forbidden. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-const-enum/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-const-enum/index.d.ts ==== 4 | 5 | enum F {} 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-const-enum/no-const-enum-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-const-enum/no-const-enum-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-const-enum/no-const-enum-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-dead-reference/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-dead-reference/index.d.ts ==== 4 | 5 | /// 6 | export class K {} 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-dead-reference/no-dead-reference-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-dead-reference/no-dead-reference-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-dead-reference/no-dead-reference-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-declare-current-package-other/no-declare-current-package-other-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-declare-current-package-other/no-declare-current-package-other-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-declare-current-package-other/no-declare-current-package-other-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-declare-current-package/no-declare-current-package-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-declare-current-package/no-declare-current-package-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-declare-current-package/no-declare-current-package-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-import-default-of-export-equals/no-import-default-of-export-equals-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-import-default-of-export-equals/no-import-default-of-export-equals-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-import-default-of-export-equals/no-import-default-of-export-equals-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-old-dt-header/no-old-dt-header-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-old-dt-header/no-old-dt-header-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-old-dt-header/no-old-dt-header-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-old-dt-header/ok1.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-old-dt-header/ok1.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-old-dt-header/ok1.ts ==== 7 | 8 | // Type definitions for AFRAME 1.2 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | // Definitions by: Paul Shannon 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-old-dt-header/ok2.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-old-dt-header/ok2.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-old-dt-header/ok2.d.ts ==== 7 | 8 | // Type definitions for AFRAME 1.2 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-old-dt-header/ok3.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-old-dt-header/ok3.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-old-dt-header/ok3.d.ts ==== 7 | 8 | // Definitions by: Paul Shannon 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-old-dt-header/ok4.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-old-dt-header/ok4.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-old-dt-header/ok4.d.ts ==== 7 | 8 | // A line before the old header 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | // Type definitions for AFRAME 1.2 12 | // Definitions by: Paul Shannon 13 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-relative-import-in-test/abc.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-relative-import-in-test/abc.d.ts ==== 4 | 5 | export const value = 0; 6 | export default value; 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-relative-import-in-test/bad.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-relative-import-in-test/bad.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-relative-import-in-test/bad.d.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-relative-import-in-test/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-relative-import-in-test/index.d.ts ==== 4 | 5 | export function getFoo(): "foo"; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-relative-import-in-test/no-relative-import-in-test-tests2.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-relative-import-in-test/no-relative-import-in-test-tests2.ts ==== 4 | 5 | import ts from "does-not-exist"; 6 | import ts2 from "typescript"; 7 | import other from "./does-not-exit"; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-relative-import-in-test/no-relative-import-in-test/abc.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-relative-import-in-test/no-relative-import-in-test/abc.d.ts ==== 4 | 5 | export const value = 0; 6 | export default value; 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-relative-references/no-relative-references-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-relative-references/no-relative-references-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-relative-references/no-relative-references-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-relative-references/v1/no-relative-references-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-relative-references/v1/no-relative-references-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-relative-references/v1/no-relative-references-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-single-declare-module/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-single-declare-module/index.d.ts 2 | 1:1 error Packages should contain value components, not just types @definitelytyped/no-type-only-packages 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-single-declare-module/index.d.ts ==== 7 | 8 | import x from "x"; 9 | ~ 10 | !!! @definitelytyped/no-type-only-packages: Packages should contain value components, not just types. 11 | declare module "foo" {} 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-single-declare-module/index2.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-single-declare-module/index2.d.ts ==== 4 | 5 | declare module "foo" {} 6 | declare module "bar" {} 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-single-declare-module/index3.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-single-declare-module/index3.d.ts ==== 4 | 5 | declare module "*.svg" {} 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-single-declare-module/no-single-declare-module-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-single-declare-module/no-single-declare-module-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-single-declare-module/no-single-declare-module-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-single-element-tuple-type/bad.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-single-element-tuple-type/bad.d.ts 2 | 1:16 error Type [T] is a single-element tuple type. You probably meant T[] @definitelytyped/no-single-element-tuple-type 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-single-element-tuple-type/bad.d.ts ==== 7 | 8 | type Test = [T]; 9 | ~~~ 10 | !!! @definitelytyped/no-single-element-tuple-type: Type [T] is a single-element tuple type. You probably meant T[]. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-single-element-tuple-type/no-single-element-tuple-type-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-single-element-tuple-type/no-single-element-tuple-type-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-single-element-tuple-type/no-single-element-tuple-type-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-empty/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-empty/index.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-empty/index.d.ts ==== 7 | 8 | // This package is empty. 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-empty/no-type-only-packages-empty-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-empty/no-type-only-packages-empty-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-empty/no-type-only-packages-empty-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-enum/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-enum/index.d.ts ==== 4 | 5 | export enum Foo { 6 | A, 7 | B, 8 | C, 9 | } 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-enum/no-type-only-packages-enum-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-enum/no-type-only-packages-enum-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-enum/no-type-only-packages-enum-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-export-equals-node/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-export-equals-node/index.d.ts ==== 4 | 5 | /// 6 | 7 | import { inherits } from "util"; 8 | export = inherits; 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-export-equals-node/no-type-only-packages-export-equals-node-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-export-equals-node/no-type-only-packages-export-equals-node-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-export-equals-node/no-type-only-packages-export-equals-node-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-export-equals-node2/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-export-equals-node2/index.d.ts ==== 4 | 5 | /// 6 | 7 | import { once } from "events"; 8 | 9 | /*~ This declaration specifies that the function 10 | *~ is the exported object from the file 11 | */ 12 | export = once; 13 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-export-equals-node2/no-type-only-packages-export-equals-node2-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-export-equals-node2/no-type-only-packages-export-equals-node2-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-export-equals-node2/no-type-only-packages-export-equals-node2-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-export-equals-type/no-type-only-packages-export-equals-type-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-export-equals-type/no-type-only-packages-export-equals-type-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-export-equals-type/no-type-only-packages-export-equals-type-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-export-equals/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-export-equals/index.d.ts ==== 4 | 5 | import { SyntaxKind } from "typescript"; 6 | export = SyntaxKind; 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-export-equals/no-type-only-packages-export-equals-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-export-equals/no-type-only-packages-export-equals-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-export-equals/no-type-only-packages-export-equals-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-extend-window/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-extend-window/index.d.ts ==== 4 | 5 | declare global { 6 | interface Window { 7 | someNewProp: string; 8 | } 9 | } 10 | 11 | export {}; 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-extend-window/no-type-only-packages-extend-window-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-extend-window/no-type-only-packages-extend-window-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-extend-window/no-type-only-packages-extend-window-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-namespace/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-namespace/index.d.ts ==== 4 | 5 | export namespace convertString { 6 | function stringToBytes(str: string): number[]; 7 | function bytesToString(bytes: number[]): string; 8 | 9 | namespace UTF8 { 10 | function stringToBytes(str: string): number[]; 11 | function bytesToString(bytes: number[]): string; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-namespace/no-type-only-packages-namespace-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-namespace/no-type-only-packages-namespace-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-namespace/no-type-only-packages-namespace-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-reexport-all/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-reexport-all/index.d.ts ==== 4 | 5 | export * from "eslint"; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-reexport-all/no-type-only-packages-reexport-all-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-reexport-all/no-type-only-packages-reexport-all-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-reexport-all/no-type-only-packages-reexport-all-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-reexport/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-type-only-packages-reexport/index.d.ts ==== 4 | 5 | import { SyntaxKind } from "typescript"; 6 | 7 | export { SyntaxKind }; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages-reexport/no-type-only-packages-reexport-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages-reexport/no-type-only-packages-reexport-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages-reexport/no-type-only-packages-reexport-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-type-only-packages/no-type-only-packages-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-type-only-packages/no-type-only-packages-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-type-only-packages/no-type-only-packages-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-unnecessary-generics/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-unnecessary-generics/index.d.ts ==== 4 | 5 | declare function example1(a: string): string; 6 | declare function example2(a: T): T; 7 | declare function example3(a: T[]): T; 8 | declare function example4(a: Set): T; 9 | declare function example5(a: Set, b: T[]): void; 10 | declare function example6(a: Map): void; 11 | declare function example7(t: T, u: U): U; 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-useless-files/bad.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-useless-files/bad.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-useless-files/bad.d.ts ==== 7 | 8 | // I am useless 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-useless-files/bad2.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-useless-files/bad2.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-useless-files/bad2.d.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-useless-files/bad3.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-useless-files/bad3.d.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-useless-files/bad3.d.ts ==== 7 | 8 | /// 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-useless-files/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-useless-files/index.d.ts ==== 4 | 5 | export default "I am useful"; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-useless-files/index2.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-useless-files/index2.d.ts ==== 4 | 5 | /// 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-useless-files/index3.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/no-useless-files/index3.d.ts ==== 4 | 5 | /// 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/no-useless-files/no-useless-files-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/no-useless-files/no-useless-files-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/no-useless-files/no-useless-files-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/other/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/other/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/other/other-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/other/other-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/other/other-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/other/v1/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/other/v1/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/other/v1/other-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/other/v1/other-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/other/v1/other-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/prefer-declare-function/prefer-declare-function-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/prefer-declare-function/prefer-declare-function-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/prefer-declare-function/prefer-declare-function-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/redundant-undefined/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/redundant-undefined/index.d.ts ==== 4 | 5 | interface I { 6 | ok?: string | undefined; 7 | s?: string; 8 | almost?: number | string; 9 | } 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/redundant-undefined/redundant-undefined-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/redundant-undefined/redundant-undefined-tests.ts 2 | 1:17 error Including `any` in a union will override all other members of the union @definitelytyped/no-any-union 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/redundant-undefined/redundant-undefined-tests.ts ==== 7 | 8 | export const z: string | any; 9 | ~~~~~~~~~~~~ 10 | !!! @definitelytyped/no-any-union: Including `any` in a union will override all other members of the union. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/scoped__foo/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/scoped__foo/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/scoped__foo/scoped__foo-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/scoped__foo/scoped__foo-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/scoped__foo/scoped__foo-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/scoped__foo/v1/index.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/scoped__foo/v1/index.d.ts ==== 4 | 5 | export const foo = 1234; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/scoped__foo/v1/scoped__foo-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/scoped__foo/v1/scoped__foo-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/scoped__foo/v1/scoped__foo-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/scoped__no-declare-current-package/no-declare-current-package-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/scoped__no-declare-current-package/no-declare-current-package-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/scoped__no-declare-current-package/no-declare-current-package-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/scoped__no-relative-references/no-relative-references-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/scoped__no-relative-references/no-relative-references-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/scoped__no-relative-references/no-relative-references-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/scoped__no-relative-references/v1/no-relative-references-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/scoped__no-relative-references/v1/no-relative-references-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/scoped__no-relative-references/v1/no-relative-references-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/bad1.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/strict-export-declare-modifiers/bad1.d.ts 2 | 1:1 error 'declare' keyword is redundant here @definitelytyped/strict-export-declare-modifiers 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/strict-export-declare-modifiers/bad1.d.ts ==== 7 | 8 | declare interface I { i: any } 9 | ~~~~~~~ 10 | !!! @definitelytyped/strict-export-declare-modifiers: 'declare' keyword is redundant here. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/bad3.d.ts.lint: -------------------------------------------------------------------------------- 1 | types/strict-export-declare-modifiers/bad3.d.ts 2 | 1:8 error 'declare' keyword is redundant here @definitelytyped/strict-export-declare-modifiers 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/strict-export-declare-modifiers/bad3.d.ts ==== 7 | 8 | export declare function f(): void; 9 | ~~~~~~~ 10 | !!! @definitelytyped/strict-export-declare-modifiers: 'declare' keyword is redundant here. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good1.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good1.ts ==== 4 | 5 | export declare class C {} 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good10.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good10.d.ts ==== 4 | 5 | import * as good1 from './good1'; 6 | 7 | export namespace Foo { 8 | export import C = good1.C; 9 | 10 | const foo: number; 11 | } 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good2.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good2.d.ts ==== 4 | 5 | export function f() {} 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good3.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good3.d.ts ==== 4 | 5 | declare function g(): void; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good4.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good4.d.ts ==== 4 | 5 | declare namespace N {} 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good5.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good5.d.ts ==== 4 | 5 | interface J { j: any } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good6.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good6.ts ==== 4 | 5 | namespace N { 6 | export const x: number; 7 | } 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good7.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good7.d.ts ==== 4 | 5 | declare class Foo2 {} 6 | export { Foo2 as Bar2 } 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good8.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good8.d.ts ==== 4 | 5 | import * as foo from "foo"; 6 | import foo = require("foo"); 7 | export { foo }; 8 | export { foo } from "foo"; 9 | export as namespace Foo; 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/good9.d.ts.lint: -------------------------------------------------------------------------------- 1 | No errors 2 | 3 | ==== types/strict-export-declare-modifiers/good9.d.ts ==== 4 | 5 | import * as bar from "bar"; 6 | import bar = require("bar"); 7 | export as namespace Bar; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/__file_snapshots__/types/strict-export-declare-modifiers/strict-export-declare-modifiers-tests.ts.lint: -------------------------------------------------------------------------------- 1 | types/strict-export-declare-modifiers/strict-export-declare-modifiers-tests.ts 2 | 1:1 error File has no content @definitelytyped/no-useless-files 3 | 4 | ✖ 1 problem (1 error, 0 warnings) 5 | 6 | ==== types/strict-export-declare-modifiers/strict-export-declare-modifiers-tests.ts ==== 7 | 8 | 9 | ~ 10 | !!! @definitelytyped/no-useless-files: File has no content. 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: ["plugin:@definitelytyped/all"], 4 | }; 5 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/notNeededPackages.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "definitely-typed", 3 | "private": "true" 4 | } 5 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-diagnostics-editor/expect-diagnostics-tests.ts: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @definitelytyped/no-relative-import-in-test 2 | import * as expect from "."; 3 | 4 | // No diagnostic; we did not set versionsToTest and so are in an editor. 5 | const blah: string = expect.foo; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-diagnostics-editor/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | 3 | // No diagnostic; we did not set versionsToTest and so are in an editor. 4 | export const badSet: Array; 5 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-diagnostics-editor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/expect-diagnostics", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-diagnostics-versioned/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | settings: { 3 | dt: { 4 | versionsToTest: [{ versionName: "x.y", path: "typescript" }] 5 | } 6 | }, 7 | }; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-diagnostics-versioned/expect-diagnostics-tests.ts: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @definitelytyped/no-relative-import-in-test 2 | import * as expect from "."; 3 | 4 | // This should cause a diagnostic. 5 | const blah: string = expect.foo; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-diagnostics-versioned/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | 3 | // This should cause a diagnostic. 4 | export const badSet: Array; 5 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-diagnostics-versioned/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/expect-diagnostics", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-error-range/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | settings: { 3 | dt: { 4 | versionsToTest: [ 5 | { versionName: "5.4", path: "typescript-5.4" }, 6 | { versionName: "5.5", path: "typescript-5.5" } 7 | ] 8 | } 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-error-range/index.d.ts: -------------------------------------------------------------------------------- 1 | export const value: number; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-error-range/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/expect-error-range", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-tsconfigs/expect-dom-tests.ts: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @definitelytyped/no-relative-import-in-test 2 | import * as expect from "./"; 3 | 4 | const element: HTMLElement = expect.element; 5 | 6 | const weakSet: WeakSet<{}> = expect.weakSet; 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-tsconfigs/expect-tests.ts: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @definitelytyped/no-relative-import-in-test 2 | import * as expect from "./"; 3 | 4 | const element: HTMLElement = expect.element; 5 | 6 | const weakSet: WeakSet<{}> = expect.weakSet; 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-tsconfigs/index.d.ts: -------------------------------------------------------------------------------- 1 | export const element: HTMLElement; 2 | 3 | export const weakSet: WeakSet<{}>; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-tsconfigs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/expect", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "tsconfigs": ["tsconfig.dom.json", "tsconfig.no-dom.json"] 6 | } 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-tsconfigs/tsconfig.dom.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es5", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "expect-dom-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect-tsconfigs/tsconfig.no-dom.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6" 6 | ], 7 | "noImplicitAny": true, 8 | "noImplicitThis": true, 9 | "strictFunctionTypes": true, 10 | "strictNullChecks": true, 11 | "types": [], 12 | "noEmit": true, 13 | "forceConsistentCasingInFileNames": true 14 | }, 15 | "files": [ 16 | "index.d.ts", 17 | "expect-tests.ts" 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | 3 | export const aUnion: string | number | undefined; 4 | 5 | export function complicatedUnion(x: T, y: T): { 6 | prop1: "a" | "b" | "c"; 7 | prop2: readonly (string | number)[]; 8 | prop3: ReadonlyArray; 9 | }; 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/expect", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/expect/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "expect-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/bad1.d.ts: -------------------------------------------------------------------------------- 1 | export = Stuff; 2 | namespace Stuff {} 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/bad2.d.ts: -------------------------------------------------------------------------------- 1 | namespace Stuff {} 2 | export = Stuff; 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/bad3.d.ts: -------------------------------------------------------------------------------- 1 | namespace Stuff {} 2 | const other = "code"; 3 | export = Stuff; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/export-just-namespace-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/export-just-namespace/export-just-namespace-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good1.d.ts: -------------------------------------------------------------------------------- 1 | export const value = 3; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good2.d.ts: -------------------------------------------------------------------------------- 1 | export default class Hello {} 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good3.d.ts: -------------------------------------------------------------------------------- 1 | import * as fs from "fs"; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good4.d.ts: -------------------------------------------------------------------------------- 1 | const value = 123; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good5.d.ts: -------------------------------------------------------------------------------- 1 | export = stuff; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good6.d.ts: -------------------------------------------------------------------------------- 1 | export = createStuff(); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good7.d.ts: -------------------------------------------------------------------------------- 1 | class Stuff {} 2 | namespace Stuff {} 3 | export = Stuff; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good8.d.ts: -------------------------------------------------------------------------------- 1 | export = First 2 | namespace First {} 3 | declare function First() 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/good9.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace Second {} 2 | export = Second 3 | declare function Second(s: U): S 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/export-just-namespace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/export-just-namespace", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/export-just-namespace": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/foo-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/foo/foo-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/foo", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "foo-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/v1/foo-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/foo/v1/foo-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/v1/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/foo", 3 | "version": "1.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/foo/v1/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "foo-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-any-union/bad.d.ts: -------------------------------------------------------------------------------- 1 | export const y: string | any; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-any-union/index.d.ts: -------------------------------------------------------------------------------- 1 | export const x: any; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-any-union/no-any-union-tests.ts: -------------------------------------------------------------------------------- 1 | export const z: string | any; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-any-union/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-any-union", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-self-union": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-bad-reference/no-bad-reference-tests.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-bad-reference/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-bad-references", 3 | "version": "12.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-bad-reference/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "no-bad-reference-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-bad-reference/v0.1/no-bad-reference-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-bad-reference/v0.1/no-bad-reference-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-bad-reference/v0.1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-bad-references", 3 | "version": "0.1.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-bad-reference/v11/no-bad-reference-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-bad-reference/v11/no-bad-reference-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-bad-reference/v11/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-bad-references", 3 | "version": "11.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-const-enum/bad.d.ts: -------------------------------------------------------------------------------- 1 | const enum E { } 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-const-enum/index.d.ts: -------------------------------------------------------------------------------- 1 | enum F {} 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-const-enum/no-const-enum-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-const-enum/no-const-enum-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-const-enum/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-const-enum", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-self-union": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-dead-reference/bad.d.ts: -------------------------------------------------------------------------------- 1 | export class C { } 2 | /// 3 | 4 | 5 | 6 | /// 7 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-dead-reference/bad2.d.ts: -------------------------------------------------------------------------------- 1 | export class C { } 2 | /// 3 | /// 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-dead-reference/bad3.d.ts: -------------------------------------------------------------------------------- 1 | export class C { } 2 | /// 3 | export class D { } 4 | /// 5 | export class E { } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-dead-reference/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | export class K {} 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-dead-reference/no-dead-reference-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-dead-reference/no-dead-reference-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-dead-reference/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-dead-reference", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-self-union": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-declare-current-package-other/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module "no-declare-current-package" { } 2 | declare module "@scoped/no-declare-current-package" { } 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-declare-current-package-other/no-declare-current-package-other-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-declare-current-package-other/no-declare-current-package-other-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-declare-current-package-other/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-declare-current-package-other", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-declare-current-package-other": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-declare-current-package/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module "no-declare-current-package" { } 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-declare-current-package/no-declare-current-package-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-declare-current-package/no-declare-current-package-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-declare-current-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-declare-current-package", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-declare-current-package": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-declare-current-package/test/deep/import.d.ts: -------------------------------------------------------------------------------- 1 | declare module "no-declare-current-package/deep/import" { } 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-import-default-of-export-equals/bad.d.ts: -------------------------------------------------------------------------------- 1 | declare module "a" { 2 | interface I { i: any } 3 | export = I; 4 | } 5 | 6 | declare module "b" { 7 | import a from "a"; 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-import-default-of-export-equals/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module "agood" { 2 | interface I { i: any } 3 | export default I; 4 | } 5 | 6 | declare module "bgood" { 7 | import a from "agood"; 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-import-default-of-export-equals/no-import-default-of-export-equals-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-import-default-of-export-equals/no-import-default-of-export-equals-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-import-default-of-export-equals/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-import-default-of-export-equals", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-import-default-of-export-equals": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-import-of-dev-dependencies/bad.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | import devdep from "devdep"; 5 | import * as otherdevdep from "otherdevdep"; 6 | 7 | import devdep2 = require("devdep"); 8 | import otherdevdep2 = require("otherdevdep"); 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-import-of-dev-dependencies/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | import other from "other"; 4 | import self from "no-import-of-dev-dependencies"; 5 | 6 | import other2 = require("other"); 7 | import self2 = require("no-import-of-dev-dependencies"); 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-import-of-dev-dependencies/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-import-of-dev-dependencies", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "dependencies": { 6 | "@types/foo": "*", 7 | "other": "*" 8 | }, 9 | "devDependencies": { 10 | "@types/devdep": "*", 11 | "@types/no-import-of-dev-dependencies": "workspace:.", 12 | "otherdevdep": "*" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-old-dt-header/index2.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for AFRAME 1.2 2 | // Definitions by: Paul Shannon 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-old-dt-header/no-old-dt-header-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-old-dt-header/no-old-dt-header-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-old-dt-header/ok1.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for AFRAME 1.2 2 | // Definitions by: Paul Shannon 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-old-dt-header/ok2.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for AFRAME 1.2 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-old-dt-header/ok3.d.ts: -------------------------------------------------------------------------------- 1 | // Definitions by: Paul Shannon 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-old-dt-header/ok4.d.ts: -------------------------------------------------------------------------------- 1 | // A line before the old header 2 | // Type definitions for AFRAME 1.2 3 | // Definitions by: Paul Shannon 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-old-dt-header/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-const-enum", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-self-union": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/abc.d.ts: -------------------------------------------------------------------------------- 1 | export const value = 0; 2 | export default value; 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/bad.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/bad.d.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/index.d.ts: -------------------------------------------------------------------------------- 1 | export function getFoo(): "foo"; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test-tests.ts: -------------------------------------------------------------------------------- 1 | import abc from "./no-relative-import-in-test/abc.d.ts"; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test-tests2.ts: -------------------------------------------------------------------------------- 1 | import ts from "does-not-exist"; 2 | import ts2 from "typescript"; 3 | import other from "./does-not-exit"; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test-tests3.ts: -------------------------------------------------------------------------------- 1 | import util = require('./'); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test/abc.d.ts: -------------------------------------------------------------------------------- 1 | export const value = 0; 2 | export default value; 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-import-in-test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-relative-import-in-test", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-relative-import-in-test": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-references/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | import * as foo from "../foo"; 6 | import * as foo2 from "./v1"; 7 | import * as foo3 from "../foo/v1"; 8 | 9 | declare module "no-relative-references" { 10 | import A = require("no-relative-references/blah"); // Okay; relative 11 | import B = require("no-relative-references/v1"); // Bad; versioned subdir 12 | } 13 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-references/no-relative-references-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-relative-references/no-relative-references-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-references/other/other.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | import * as foo from "../../foo"; 6 | import * as foo2 from "../v1"; 7 | import * as foo3 from "../../foo/v1"; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-references/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-relative-references", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-references/v1/no-relative-references-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-relative-references/v1/no-relative-references-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-references/v1/other/other.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | import * as foo from "../../../foo"; 6 | import * as foo2 from "../../v1"; 7 | import * as foo3 from "../../../foo/v1"; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-relative-references/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-relative-references", 3 | "version": "1.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-self-import/index.d.ts: -------------------------------------------------------------------------------- 1 | import other from "other-package"; 2 | 3 | import other from "other-package/this-package"; 4 | 5 | import old from "./v1gardenpath" 6 | 7 | import old from "./v1verb/other" 8 | 9 | import otherRequired = require("other-package"); 10 | 11 | import otherRequired = require("other-package/this-package"); 12 | 13 | import oldRequired = require("./v1gardenpath"); 14 | 15 | import oldRequired = require("./v1verb/other"); 16 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-self-import/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-self-import", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "dependencies": { 6 | "other-package": "*" 7 | }, 8 | "devDependencies": { 9 | "@types/no-self-import": "workspace:." 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-declare-module/bad.d.ts: -------------------------------------------------------------------------------- 1 | declare module "foo" {} 2 | 3 | // Other global declarations don't affect this. They should go in "declare global". 4 | interface I { i: any } 5 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-declare-module/index.d.ts: -------------------------------------------------------------------------------- 1 | import x from "x"; 2 | declare module "foo" {} 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-declare-module/index2.d.ts: -------------------------------------------------------------------------------- 1 | declare module "foo" {} 2 | declare module "bar" {} 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-declare-module/index3.d.ts: -------------------------------------------------------------------------------- 1 | declare module "*.svg" {} 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-declare-module/no-single-declare-module-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-single-declare-module/no-single-declare-module-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-declare-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-const-enum", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-self-union": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-element-tuple-type/bad.d.ts: -------------------------------------------------------------------------------- 1 | type Test = [T]; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-element-tuple-type/index.d.ts: -------------------------------------------------------------------------------- 1 | type Test = number[]; 2 | type Test2 = T; 3 | type Test3 = T[]; 4 | type Test4 = [T, number]; 5 | type Test5 = [T, T]; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-element-tuple-type/no-single-element-tuple-type-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-single-element-tuple-type/no-single-element-tuple-type-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-single-element-tuple-type/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-single-element-tuple-type", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-single-element-tuple-type": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-empty/index.d.ts: -------------------------------------------------------------------------------- 1 | // This package is empty. 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-empty/no-type-only-packages-empty-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-empty/no-type-only-packages-empty-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-empty/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-empty", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-enum/index.d.ts: -------------------------------------------------------------------------------- 1 | export enum Foo { 2 | A, 3 | B, 4 | C, 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-enum/no-type-only-packages-enum-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-enum/no-type-only-packages-enum-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-enum/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-enum", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | import { inherits } from "util"; 4 | export = inherits; 5 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node/no-type-only-packages-export-equals-node-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node/no-type-only-packages-export-equals-node-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-enum", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node2/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | import { once } from "events"; 4 | 5 | /*~ This declaration specifies that the function 6 | *~ is the exported object from the file 7 | */ 8 | export = once; 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node2/no-type-only-packages-export-equals-node2-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node2/no-type-only-packages-export-equals-node2-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-node2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-export-equals-node2", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-type/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Symbol } from "typescript"; 2 | 3 | // Type only 4 | export = Symbol; 5 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-type/no-type-only-packages-export-equals-type-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-type/no-type-only-packages-export-equals-type-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals-type/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-export-equals-type", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals/index.d.ts: -------------------------------------------------------------------------------- 1 | import { SyntaxKind } from "typescript"; 2 | export = SyntaxKind; 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals/no-type-only-packages-export-equals-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals/no-type-only-packages-export-equals-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-export-equals/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-export-equals", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-extend-window/index.d.ts: -------------------------------------------------------------------------------- 1 | declare global { 2 | interface Window { 3 | someNewProp: string; 4 | } 5 | } 6 | 7 | export {}; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-extend-window/no-type-only-packages-extend-window-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-extend-window/no-type-only-packages-extend-window-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-extend-window/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-reexport", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-namespace/index.d.ts: -------------------------------------------------------------------------------- 1 | export namespace convertString { 2 | function stringToBytes(str: string): number[]; 3 | function bytesToString(bytes: number[]): string; 4 | 5 | namespace UTF8 { 6 | function stringToBytes(str: string): number[]; 7 | function bytesToString(bytes: number[]): string; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-namespace/no-type-only-packages-namespace-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-namespace/no-type-only-packages-namespace-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-namespace/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-namespace", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport-all/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from "eslint"; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport-all/no-type-only-packages-reexport-all-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport-all/no-type-only-packages-reexport-all-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport-all/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-reexport-all", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport/index.d.ts: -------------------------------------------------------------------------------- 1 | import { SyntaxKind } from "typescript"; 2 | 3 | export { SyntaxKind }; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport/no-type-only-packages-reexport-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport/no-type-only-packages-reexport-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages-reexport/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages-reexport", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages/index.d.ts: -------------------------------------------------------------------------------- 1 | export interface Blah { 2 | foo: string; 3 | } 4 | 5 | export namespace Something { 6 | export interface Blah2 { 7 | foo: string; 8 | } 9 | } 10 | 11 | export type NotAValue = Something.Blah2; 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages/no-type-only-packages-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-type-only-packages/no-type-only-packages-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-type-only-packages/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-type-only-packages", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-unnecessary-generics/bad.d.ts: -------------------------------------------------------------------------------- 1 | type Fn = () => T; 2 | type Ctr = new() => T; 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-unnecessary-generics/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function example1(a: string): string; 2 | declare function example2(a: T): T; 3 | declare function example3(a: T[]): T; 4 | declare function example4(a: Set): T; 5 | declare function example5(a: Set, b: T[]): void; 6 | declare function example6(a: Map): void; 7 | declare function example7(t: T, u: U): U; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-unnecessary-generics/no-unnecessary-generics-tests.ts: -------------------------------------------------------------------------------- 1 | const f1 = (): T => {}; 2 | class C { 3 | constructor(x: T) {} 4 | } 5 | function f2(): T { } 6 | function f3(x: { T: number }): void; 7 | function f4(u: U): U; 8 | const f5 = function(): T {}; 9 | interface I { 10 | (value: T): void; 11 | } 12 | interface I { 13 | m(x: T): void; 14 | } 15 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-unnecessary-generics/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-unnecessary-generics", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-unnecessary-generics": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/bad.d.ts: -------------------------------------------------------------------------------- 1 | // I am useless 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/bad2.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-useless-files/bad2.d.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/bad3.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/index.d.ts: -------------------------------------------------------------------------------- 1 | export default "I am useful"; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/index2.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/index3.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/no-useless-files-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/no-useless-files/no-useless-files-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/no-useless-files/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-useless-files", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-useless-files": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/other-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/other/other-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/other", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "other-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/v1/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/v1/other-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/other/v1/other-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/other", 3 | "version": "1.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/other/v1/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "other-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/prefer-declare-function/bad.d.ts: -------------------------------------------------------------------------------- 1 | export const example: () => void; 2 | 3 | namespace N { 4 | export const example: () => void; 5 | } 6 | 7 | namespace N2 { 8 | const example: () => void; 9 | } 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/prefer-declare-function/index.d.ts: -------------------------------------------------------------------------------- 1 | function example(): void 2 | export const example2: () => void; 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/prefer-declare-function/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/prefer-declare-function", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/prefer-declare-function": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/prefer-declare-function/prefer-declare-function-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/prefer-declare-function/prefer-declare-function-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/redundant-undefined/bad.d.ts: -------------------------------------------------------------------------------- 1 | export function f(s?: string | undefined): void; 2 | 3 | export function f2([a, b]?: [number, number] | undefined): void; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/redundant-undefined/index.d.ts: -------------------------------------------------------------------------------- 1 | interface I { 2 | ok?: string | undefined; 3 | s?: string; 4 | almost?: number | string; 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/redundant-undefined/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/no-any-union", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/no-self-union": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/redundant-undefined/redundant-undefined-tests.ts: -------------------------------------------------------------------------------- 1 | export const z: string | any; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/scoped__foo", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/scoped__foo-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/scoped__foo/scoped__foo-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "scoped__foo-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/v1/index.d.ts: -------------------------------------------------------------------------------- 1 | export const foo = 1234; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/scoped__foo", 3 | "version": "1.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/v1/scoped__foo-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/scoped__foo/v1/scoped__foo-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__foo/v1/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictFunctionTypes": true, 11 | "strictNullChecks": true, 12 | "types": [], 13 | "noEmit": true, 14 | "forceConsistentCasingInFileNames": true 15 | }, 16 | "files": [ 17 | "index.d.ts", 18 | "scoped__foo-tests.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-declare-current-package/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module "@scoped/no-declare-current-package" { } 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-declare-current-package/no-declare-current-package-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/scoped__no-declare-current-package/no-declare-current-package-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-declare-current-package/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/scoped__no-declare-current-package", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/scoped__no-declare-current-package": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-declare-current-package/test/deep/import.d.ts: -------------------------------------------------------------------------------- 1 | declare module "@scoped/no-declare-current-package/deep/import" { } 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | import * as foo from "../foo"; 6 | import * as foo2 from "./v1"; 7 | import * as foo3 from "../foo/v1"; 8 | 9 | declare module "@scoped/no-relative-references" { 10 | import A = require("@scoped/no-relative-references/blah"); // Okay; relative 11 | import B = require("@scoped/no-relative-references/v1"); // Bad; versioned subdir 12 | } 13 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/no-relative-references-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/no-relative-references-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/other/other.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | import * as foo from "../../foo"; 6 | import * as foo2 from "../v1"; 7 | import * as foo3 from "../../foo/v1"; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/scoped__no-relative-references", 3 | "version": "2.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/v1/no-relative-references-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/v1/no-relative-references-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/v1/other/other.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | /// 4 | 5 | import * as foo from "../../../foo"; 6 | import * as foo2 from "../../v1"; 7 | import * as foo3 from "../../../foo/v1"; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/scoped__no-relative-references/v1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/scoped__no-relative-references", 3 | "version": "1.0.9999", 4 | "owners": [] 5 | } 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/bad1.d.ts: -------------------------------------------------------------------------------- 1 | declare interface I { i: any } 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/bad2.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace M { 2 | export const x: number; 3 | } 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/bad3.d.ts: -------------------------------------------------------------------------------- 1 | export declare function f(): void; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/bad4.d.ts: -------------------------------------------------------------------------------- 1 | export namespace M { 2 | export function f(): void; 3 | } 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/bad5.d.ts: -------------------------------------------------------------------------------- 1 | interface I { i: any } 2 | export namespace M {} 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/bad6.d.ts: -------------------------------------------------------------------------------- 1 | declare function g(): void; 2 | export namespace M {} 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/bad7.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace N {} 2 | export namespace M {} 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good1.ts: -------------------------------------------------------------------------------- 1 | export declare class C {} 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good10.d.ts: -------------------------------------------------------------------------------- 1 | import * as good1 from './good1'; 2 | 3 | export namespace Foo { 4 | export import C = good1.C; 5 | 6 | const foo: number; 7 | } 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good2.d.ts: -------------------------------------------------------------------------------- 1 | export function f() {} 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good3.d.ts: -------------------------------------------------------------------------------- 1 | declare function g(): void; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good4.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace N {} 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good5.d.ts: -------------------------------------------------------------------------------- 1 | interface J { j: any } 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good6.ts: -------------------------------------------------------------------------------- 1 | namespace N { 2 | export const x: number; 3 | } 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good7.d.ts: -------------------------------------------------------------------------------- 1 | declare class Foo2 {} 2 | export { Foo2 as Bar2 } 3 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good8.d.ts: -------------------------------------------------------------------------------- 1 | import * as foo from "foo"; 2 | import foo = require("foo"); 3 | export { foo }; 4 | export { foo } from "foo"; 5 | export as namespace Foo; 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/good9.d.ts: -------------------------------------------------------------------------------- 1 | import * as bar from "bar"; 2 | import bar = require("bar"); 3 | export as namespace Bar; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@types/strict-export-declare-modifiers", 3 | "version": "2.0.9999", 4 | "owners": [], 5 | "devDependencies": { 6 | "@types/strict-export-declare-modifiers": "workspace:." 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/strict-export-declare-modifiers-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/fixtures/types/strict-export-declare-modifiers/strict-export-declare-modifiers-tests.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/plugin.test.ts: -------------------------------------------------------------------------------- 1 | import plugin = require("../src/index"); 2 | 3 | describe("plugin", () => { 4 | it("should have the expected exports", () => { 5 | expect({ 6 | ...plugin, 7 | meta: { 8 | ...plugin.meta, 9 | version: "version", 10 | }, 11 | rules: Object.keys(plugin.rules), 12 | }).toMatchSnapshot(); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." }, 10 | { "path": "../../utils" } 11 | ], 12 | "exclude": ["fixtures"] 13 | } 14 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/types/dts-critic/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function _default(): void; 2 | 3 | declare namespace _default { 4 | export function findDtsName(dtsPath: string): string; 5 | export function checkNames(names: string[]): unknown; 6 | export function checkSource(text: string): unknown; 7 | export function findNames(): string[]; 8 | export function retrieveNpmHomepageOrFail(): string[]; 9 | } 10 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/types/dts-critic/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | findDtsName: {}, 3 | checkNames: {}, 4 | checkSource: {}, 5 | findNames: {}, 6 | retrieveNpmHomepageOrFail: {} 7 | }; 8 | -------------------------------------------------------------------------------- /packages/eslint-plugin/test/types/dts-critic/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "@types/dts-critic": "workspace:." 4 | }, 5 | "private": true, 6 | "projects": [ 7 | "https://typescriptlang.org" 8 | ], 9 | "version": "1.0.9999", 10 | "name": "@types/dts-critic", 11 | "owners": [ 12 | { 13 | "githubUsername": "ghost", 14 | "name": "Not Default" 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /packages/eslint-plugin/test/types/wenceslas/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/DefinitelyTyped-tools/cde517717ce719f4a9555819bd5da4f80e273537/packages/eslint-plugin/test/types/wenceslas/index.d.ts -------------------------------------------------------------------------------- /packages/eslint-plugin/test/types/wenceslas/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "@types/wenceslas": "workspace:." 4 | }, 5 | "private": true, 6 | "projects": [ 7 | "https://typescriptlang.org" 8 | ], 9 | "version": "0.9.9999", 10 | "name": "@types/wenceslas", 11 | "owners": [ 12 | { 13 | "githubUsername": "ghost", 14 | "name": "Not Default" 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /packages/eslint-plugin/test/util.ts: -------------------------------------------------------------------------------- 1 | import path from "path"; 2 | 3 | export const fixtureRoot = path.join(__dirname, "fixtures"); 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "module": "nodenext", 5 | "moduleResolution": "nodenext", 6 | "outDir": "dist", 7 | "rootDir": "src" 8 | }, 9 | "include": ["src", "src/rules"], 10 | "references": [ 11 | { "path": "../header-parser" }, 12 | { "path": "../dts-critic" } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /packages/header-parser/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/header-parser/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." } 10 | ] 11 | } -------------------------------------------------------------------------------- /packages/header-parser/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src" 6 | }, 7 | "include": ["src"], 8 | "references": [ 9 | { "path": "../utils" } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/mergebot/.eslintignore: -------------------------------------------------------------------------------- 1 | /dist/ 2 | /src/queries/schema/ 3 | -------------------------------------------------------------------------------- /packages/mergebot/local.settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "IsEncrypted": false, 3 | "Values": { 4 | "FUNCTIONS_WORKER_RUNTIME": "node", 5 | "AzureWebJobsFeatureFlags": "EnableWorkerIndexing", 6 | "AzureWebJobsStorage": "" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/cachedQueries.d.ts: -------------------------------------------------------------------------------- 1 | import * as cachedQueries from "../util/cachedQueries"; 2 | 3 | type CachedQueries = { 4 | [key in keyof typeof cachedQueries]: Awaited>; 5 | }; 6 | 7 | declare const _default: CachedQueries; 8 | export = cachedQueries; 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/38979/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "es-abstract": 8537567 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43136/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "estree": 8537567 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43136/_notes.txt: -------------------------------------------------------------------------------- 1 | This should be a "wait" - while the reviewer did approve, there was a new commit since then 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43144/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mailcheck": 10455 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43144/_notes.txt: -------------------------------------------------------------------------------- 1 | This is a PR which is ready to go 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43151/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "gaze": 197887 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43151/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "bb6d3150b485cd203d265e06ca910262256e523e:types/gaze/index.d.ts": "// Type definitions for gaze 1.1\n// Project: https://github.com/shama/gaze\n// Definitions by: Adam Zerella \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\ntype Mode = 'auto' | 'watch' | 'poll';\n\ninterface Options {\n /**\n * Interval to pass to fs.watchFile.\n */\n interval?: number;" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43151/_notes.txt: -------------------------------------------------------------------------------- 1 | This PR is a new package, which required a DT maintainer to validate 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43160/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "dagre": 119291 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43160/_notes.txt: -------------------------------------------------------------------------------- 1 | This PR is red, but got an accept - the output is wrong here because the PR was accepted - only CI failed 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43175/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "chrome": 298025 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43175/_notes.txt: -------------------------------------------------------------------------------- 1 | This is a PR which is mostly ready, but requires a human to say yes 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43235/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "arcgis-js-api": 30242 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43235/_notes.txt: -------------------------------------------------------------------------------- 1 | Looks good, waiting on feedback from a reviewer 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43314/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "carbon__icon-helpers": 1036 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43314/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "432f23fe1b87b12fe58bb1a8958f77ee3242741e:types/carbon__icon-helpers/index.d.ts": "// Type definitions for @carbon/icon-helpers 10.6\n// Project: https://github.com/carbon-design-system/carbon/blob/master/packages/icon-helpers\n// Definitions by: Eric Liu \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.8\n\nexport interface Path {\n elem: 'path';\n attrs: { d: string };\n}" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43695-duplicate-comment/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "accedo__accedo-one": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43695-duplicate-comment/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "3e836178b736e5512361ffda46e84a5c668d7a90:types/accedo__accedo-one/index.d.ts": "// Type definitions for @accedo/accedo-one 4.0\n// Project: https://www.accedo.tv/one\n// Definitions by: Alexander P. Cerutti \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\n/**\n * @example" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43695-post-review/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "accedo__accedo-one": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43695-post-review/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "90c94f91120c026f5f8bcc586426e8590b7b4048:types/accedo__accedo-one/index.d.ts": "// Type definitions for @accedo/accedo-one 4.0\n// Project: https://www.accedo.tv/one\n// Definitions by: Alexander P. Cerutti \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\n/**\n * @example" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43695/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "accedo__accedo-one": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43695/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "a5285cda2722912a390770722a334e6d6e43d1ab:types/accedo__accedo-one/index.d.ts": "// Type definitions for @accedo/accedo-one 4.0\n// Project: https://www.accedo.tv/one\n// Definitions by: Alexander P. Cerutti \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// Minimum TypeScript Version: 3.1\n\n/**\n * @example" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43960-post-close/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43960-post-close/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-30T19:01:56.000Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43960-post-close/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: DeleteProjectV2ItemInput!) {\n deleteProjectV2Item(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "itemId": "MDExOlByb2plY3RDYXJkMzY0NDM4NTI=", 7 | "projectId": "PVT_kwDOADeBNM4AkH1q" 8 | } 9 | } 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43960-post-close/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/43960/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "supertest": 2236866 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44105/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44105/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44105/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-28T22:49:39.000Z", 4 | "message": "PR is not active" 5 | } 6 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44105/mutations.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "mutation": "mutation ($input: DeleteProjectV2ItemInput!) {\n deleteProjectV2Item(input: $input) {\n __typename\n }\n}\n", 4 | "variables": { 5 | "input": { 6 | "itemId": "MDExOlByb2plY3RDYXJkMzY3OTAzMDI=", 7 | "projectId": "PVT_kwDOADeBNM4AkH1q" 8 | } 9 | } 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44105/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44256/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44256/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44256/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-30T19:07:55.000Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44256/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44267/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "intercom-client": 49986 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44282/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "benchmark": 97099 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44288/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-bootstrap-table2-paginator": 8976 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44290/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44290/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44290/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2020-04-28T16:41:44.000Z", 4 | "message": "PR is a draft", 5 | "isDraft": true 6 | } 7 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44290/mutations.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44290/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "Needs Author Action" 8 | } 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44299-with-files/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "hcaptcha__vue-hcaptcha": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44299/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "hcaptcha__vue-hcaptcha": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44299/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "683fb3b1298223256be3a49823686f35bd94a730:types/hcaptcha__vue-hcaptcha/index.d.ts": "// Type definitions for @hcaptcha/vue-hcaptcha 0.2\n// Project: https://github.com/hCaptcha/vue-hcaptcha\n// Definitions by: George Pickering \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version: 3.8\n\nimport { VueConstructor } from 'vue';\nexport const h: HCaptcha;\nexport default h;\n" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44316/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "vimeo": 3530 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44343-pending-travis/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "amplify": 2766 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44343-pre-travis/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "amplify": 2766 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44343/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "amplify": 2766 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44402/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44402/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44411/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "jest-image-snapshot": 146509 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44424-1-travis-instantly-finished/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "openfin": 9067 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44424-2-after-travis-second/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "openfin": 9067 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44437/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "prompts": 539890 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44439/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "detect-port": 58143 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44631/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "kefir": 12315 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44857/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "node": 129373332 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44989-14days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44989-32days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44989-3days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/44989-7days/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ramda": 1199334 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45137/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mongodb": 2181206 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45627/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "webpack": 11793552 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45836/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "prosemirror-commands": 135564, 3 | "prosemirror-keymap": 136105 4 | } 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45884/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "cytoscape": 45065 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45888/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mailgun-js": 95401 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45890/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "greek-utils": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45890/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "146c312eac4c4ac8931b4ec6b2762457f8f4b6e6:types/greek-utils/index.d.ts": "// Type definitions for greek-utils 1.2\n// Project: https://github.com/vbarzokas/greek-utils\n// Definitions by: Dimitris Kirtsios \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\nexport function sanitizeDiacritics(text: string, ignore?: string): string;" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45946/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "asynciterator": 1614 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45982/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "arcgis-js-api": 32357 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45982/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "master:types/arcgis-js-api/index.d.ts": "" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45982/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "error", 3 | "now": "2020-07-11T20:41:49.000Z", 4 | "message": "error parsing owners: At 1:1 in master:types/arcgis-js-api/index.d.ts: Expected /\\/\\/ Type definitions for (non-npm package )?/", 5 | "author": "dasa" 6 | } 7 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45982/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "projectColumn": "Other", 3 | "labels": [ 4 | "Mergebot Error" 5 | ], 6 | "responseComments": [ 7 | { 8 | "tag": "had-error", 9 | "status": "@dasa — There was an error that prevented me from properly processing this PR:\n\n error parsing owners: At 1:1 in master:types/arcgis-js-api/index.d.ts: Expected /\\/\\/ Type definitions for (non-npm package )?/" 10 | } 11 | ], 12 | "shouldClose": false, 13 | "shouldMerge": false, 14 | "shouldUpdateLabels": true 15 | } 16 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/45999/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react": 26120073 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46008/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "p5": 3015 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46019/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "is-secret": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46019/_files.json: -------------------------------------------------------------------------------- 1 | { 2 | "ceca9f768be945932c692d7dd48fa14b6ff38096:types/is-secret/index.d.ts": "// Type definitions for is-secret 1.2\n// Project: https://github.com/watson/is-secret#readme\n// Definitions by: Walter Rumsby \n// Piotr Błażejewicz \n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n", 3 | "ceca9f768be945932c692d7dd48fa14b6ff38096:types/is-secret/tslint.json": "{ \"extends\": \"dtslint/dt.json\" }\n" 4 | } 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46120/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "underscore": 2169562 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46191/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "apollo-upload-client": 198332 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46196/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "date-arithmetic": 7590 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46279/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "phoenix_live_view": 1639 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46804/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-d3-graph": 2566 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/46879/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-scroll": 1234567 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/47017-blessed-and-one-owner/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/47017-blessed-and-two-owner/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/47017-blessed/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/47017/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 16741351, 3 | "express": 18862503 4 | } 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48216/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "apptimize__apptimize-web-sdk": 1164 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48236/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "woocommerce__woocommerce-rest-api": 1271 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48652-merge-offer/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48652-prereq/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48652-retract-merge-offer-and-prerequest/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48652-retract-merge-offer/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48708/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "jquery": 5540159 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/48945/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "gapi.client.calendar": 2325 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/49417/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/49548/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "gulp-sourcemaps": 125190 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/49575/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/49575/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/49841/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/50429/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "omise-js": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/50443/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/50443/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/51338/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "koa": 5708514 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/52579-edits-infra/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "vertx__eventbus-bridge-client.js": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/52579/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "vertx__eventbus-bridge-client.js": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/52848/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/52848/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/53121/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "mathjs": 498592 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/55035/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsreport-core": 5044 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/55210/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "xald-parse-sdk": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/55508/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "chrome": 702255 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/55512/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-datepicker": 1437773 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/55741/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ax": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/58632/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/58632/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/58632/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2022-02-17T22:40:31.072Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/58632/mutations.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/58632/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/58764/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "bootstrap.v3.datetimepicker": 2109, 3 | "mithril-global": 23, 4 | "mithril": 15949, 5 | "ospec": 791, 6 | "react-grid-layout": 520136, 7 | "react-native-fbsdk": 78391, 8 | "react-virtualized": 1521648, 9 | "ssh2-sftp-client": 307276, 10 | "styled-components": 8672781 11 | } 12 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/59628/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "twemoji": 242870 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/66742/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "twine-sugarcube": 393 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/66757/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-table": 3928231 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/66979/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "react-blessed": 267 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/67090/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ansicolors": 9236, 3 | "cardinal": 0, 4 | "marked-terminal": 58490 5 | } 6 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68381/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express-serve-static-core": 72913989 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68386/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68386/_files.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68386/derived.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "remove", 3 | "now": "2024-01-31T18:34:02.737Z", 4 | "message": "PR is not active", 5 | "isDraft": false 6 | } 7 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68386/mutations.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68386/result.json: -------------------------------------------------------------------------------- 1 | { 2 | "labels": [], 3 | "responseComments": [], 4 | "shouldClose": false, 5 | "shouldMerge": false, 6 | "shouldUpdateLabels": false, 7 | "projectColumn": "*REMOVE*" 8 | } 9 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68510/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68511/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68512/_downloads.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68772/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "relationship.js": 21 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/68908/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "node": 449699745 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/69589/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "readable-stream": 5070527 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/69997/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "imap": 323644, 3 | "jake": 38909, 4 | "newman": 85781, 5 | "node-red": 12861, 6 | "node": 448137168, 7 | "opossum": 572477, 8 | "rdf-store-fs": 16, 9 | "readable-stream": 5493639, 10 | "sane": 142880, 11 | "sse": 1074, 12 | "steam": 1907, 13 | "twitter": 50207, 14 | "umzug": 333559, 15 | "xml-flow": 18454 16 | } 17 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/70024/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "ws": 69842889 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/70150/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "chrome": 3423683 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/70218/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "fast-decode-uri-component": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/70222/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "three": 2288510 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/70242/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "polygon-lookup": 20317, 3 | "rbush": 231302, 4 | "which-polygon": 8788 5 | } 6 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/70751/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "express": 102459932 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/71725/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "enhance__enhance": 0 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/71790/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "hapi__catbox-memory": 2843 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/fixtures/72083/_downloads.json: -------------------------------------------------------------------------------- 1 | { 2 | "uswds__uswds": 12681 3 | } 4 | -------------------------------------------------------------------------------- /packages/mergebot/src/_tests/testEnvironment.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line @typescript-eslint/no-var-requires 2 | const jestEnvNode = require("jest-environment-node"); 3 | module.exports = class extends jestEnvNode.TestEnvironment { 4 | constructor(config) { 5 | super(config); 6 | this.global.AbortSignal = {}; 7 | this.global.Event = {}; 8 | this.global.EventTarget = {}; 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/mergebot/src/discussions.ts: -------------------------------------------------------------------------------- 1 | export const canHandleRequest = (event: string, action: string) => 2 | event === "discussion" && (action === "created" || action === "edited"); 3 | 4 | export function extractNPMReference(discussion: { title: string }) { 5 | const title = discussion.title; 6 | if (title.includes("[") && title.includes("]")) { 7 | const full = title.split("[")[1]!.split("]")[0]; 8 | return full!.replace("@types/", ""); 9 | } 10 | return undefined; 11 | } 12 | -------------------------------------------------------------------------------- /packages/mergebot/src/functions/index.ts: -------------------------------------------------------------------------------- 1 | import "./api"; 2 | import "./discussions-trigger"; 3 | import "./httpTrigger"; 4 | import "./pr-trigger"; 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/util/io.ts: -------------------------------------------------------------------------------- 1 | export async function fetchText(url: string): Promise { 2 | const response = await fetch(url); 3 | return response.text(); 4 | } 5 | -------------------------------------------------------------------------------- /packages/mergebot/src/util/reply.ts: -------------------------------------------------------------------------------- 1 | import { InvocationContext } from "@azure/functions"; 2 | 3 | export const reply = (context: InvocationContext, status: number, body: string) => { 4 | context.info(`${body} [${status}]`); 5 | return { status, body }; 6 | }; 7 | -------------------------------------------------------------------------------- /packages/publisher/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 2 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /packages/publisher/.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | data/ 3 | logs/ 4 | node_modules/ 5 | output/ 6 | validateOutput/ 7 | \#* 8 | .\#* 9 | local.settings.json 10 | lock.json 11 | -------------------------------------------------------------------------------- /packages/publisher/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @sandersn @RyanCavanaugh -------------------------------------------------------------------------------- /packages/publisher/src/clean.ts: -------------------------------------------------------------------------------- 1 | import { clean as cleanParser } from "@definitelytyped/definitions-parser"; 2 | import { cleanLogDirectory } from "@definitelytyped/utils"; 3 | import fs from "fs"; 4 | import { outputDirPath, validateOutputPath } from "./lib/settings"; 5 | 6 | if (require.main === module) { 7 | clean(); 8 | } 9 | 10 | export function clean() { 11 | cleanParser(); 12 | cleanLogDirectory(); 13 | fs.rmSync(outputDirPath, { recursive: true, force: true }); 14 | fs.rmSync(validateOutputPath, { recursive: true, force: true }); 15 | } 16 | -------------------------------------------------------------------------------- /packages/publisher/src/index.ts: -------------------------------------------------------------------------------- 1 | export { clean } from "./clean"; 2 | -------------------------------------------------------------------------------- /packages/publisher/src/lib/settings.ts: -------------------------------------------------------------------------------- 1 | import { join as joinPaths } from "path"; 2 | 3 | const root = joinPaths(__dirname, "..", ".."); 4 | const storageDirPath = process.env.STORAGE_DIR || root; 5 | export const outputDirPath = joinPaths(storageDirPath, "output"); 6 | export const validateOutputPath = joinPaths(storageDirPath, "validateOutput"); 7 | 8 | /** The branch that DefinitelyTyped is sourced from. */ 9 | export const sourceBranch = "master"; 10 | -------------------------------------------------------------------------------- /packages/publisher/src/run.ts: -------------------------------------------------------------------------------- 1 | import main from "./main"; 2 | main(); 3 | -------------------------------------------------------------------------------- /packages/publisher/src/util/util.ts: -------------------------------------------------------------------------------- 1 | import { joinPaths } from "@definitelytyped/utils"; 2 | import { AnyPackage } from "@definitelytyped/definitions-parser"; 3 | import { outputDirPath } from "../lib/settings"; 4 | 5 | export function currentTimeStamp(): string { 6 | return new Date().toISOString(); 7 | } 8 | 9 | export function outputDirectory(pkg: AnyPackage) { 10 | return joinPaths(outputDirPath, pkg.typesDirectoryName + (pkg.isLatest ? "" : ` v${pkg.major}.${pkg.minor}`)); 11 | } 12 | -------------------------------------------------------------------------------- /packages/publisher/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." }, 10 | { "path": "../../definitions-parser" }, 11 | { "path": "../../utils" } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /packages/publisher/test/utils.ts: -------------------------------------------------------------------------------- 1 | export function testo(o: { [s: string]: () => void }) { 2 | for (const k of Object.keys(o)) { 3 | test(k, o[k], 100_000); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/publisher/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": "dist", 5 | "rootDir": "src", 6 | "lib": ["es2022", "dom"], 7 | "paths": { 8 | "*": ["./src/types/*"] 9 | } 10 | }, 11 | "include": ["src"], 12 | "references": [ 13 | { "path": "../definitions-parser" }, 14 | { "path": "../header-parser" }, 15 | { "path": "../retag" }, 16 | { "path": "../utils" } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /packages/retag/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "dist" 6 | }, 7 | "include": ["src"], 8 | "references": [{ "path": "../definitions-parser" }, { "path": "../typescript-versions" }, { "path": "../utils" }] 9 | } 10 | -------------------------------------------------------------------------------- /packages/typescript-packages/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/typescript-packages/README.md: -------------------------------------------------------------------------------- 1 | # @definitelytyped/typescript-packages 2 | 3 | Reexport of all supported TypeScript versions. 4 | -------------------------------------------------------------------------------- /packages/typescript-packages/src/index.ts: -------------------------------------------------------------------------------- 1 | import { TypeScriptVersion } from "@definitelytyped/typescript-versions"; 2 | 3 | export function resolve(version: TypeScriptVersion) { 4 | return require.resolve(`typescript-${version}`); 5 | } 6 | -------------------------------------------------------------------------------- /packages/typescript-packages/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." } 10 | ], 11 | "exclude": ["fixtures"] 12 | } 13 | -------------------------------------------------------------------------------- /packages/typescript-packages/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "dist" 6 | }, 7 | "include": ["src"] 8 | } 9 | -------------------------------------------------------------------------------- /packages/typescript-versions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/typescript-versions/README.md: -------------------------------------------------------------------------------- 1 | # @definitelytyped/typescript-versions 2 | 3 | List of supported TypeScript versions. 4 | -------------------------------------------------------------------------------- /packages/typescript-versions/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." } 10 | ], 11 | "exclude": ["fixtures"] 12 | } 13 | -------------------------------------------------------------------------------- /packages/typescript-versions/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "dist" 6 | }, 7 | "include": ["src"] 8 | } 9 | -------------------------------------------------------------------------------- /packages/utils/.gitignore: -------------------------------------------------------------------------------- 1 | logs 2 | test/data/pack.tgz -------------------------------------------------------------------------------- /packages/utils/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | logs 4 | .DS_Store 5 | .vscode 6 | *.tsbuildinfo 7 | tsconfig.json 8 | -------------------------------------------------------------------------------- /packages/utils/README.md: -------------------------------------------------------------------------------- 1 | # @definitelytyped/utils 2 | 3 | Common utilities shared between DefinitelyTyped tools. Mostly extracted from [types-publisher](https://github.com/microsoft/types-publisher). 4 | -------------------------------------------------------------------------------- /packages/utils/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./assertions"; 2 | export * from "./async"; 3 | export * from "./collections"; 4 | export * from "./fs"; 5 | export * from "./io"; 6 | export * from "./logging"; 7 | export * from "./miscellany"; 8 | export * from "./npm"; 9 | export * from "./process"; 10 | export * from "./progress"; 11 | -------------------------------------------------------------------------------- /packages/utils/src/lib/settings.ts: -------------------------------------------------------------------------------- 1 | import { joinPaths } from "../fs"; 2 | const root = joinPaths(__dirname, "..", ".."); 3 | const storageDirPath = process.env.STORAGE_DIR || root; 4 | export const logDir = joinPaths(storageDirPath, "logs"); 5 | -------------------------------------------------------------------------------- /packages/utils/test/data/pack/test.txt: -------------------------------------------------------------------------------- 1 | Test file -------------------------------------------------------------------------------- /packages/utils/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"], 5 | "composite": false, 6 | "noEmit": true 7 | }, 8 | "references": [ 9 | { "path": ".." } 10 | ] 11 | } -------------------------------------------------------------------------------- /packages/utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.base.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "dist" 6 | }, 7 | "include": ["src"], 8 | "references": [ 9 | { "path": "../typescript-versions" }, 10 | { "path": "../typescript-packages" } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | - 'packages/*' --------------------------------------------------------------------------------