@definitelytyped/eslint-plugin 0.0.203 → 0.0.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/configs/all.ts +0 -189
- package/src/index.ts +0 -18
- package/src/rules/expect.ts +0 -556
- package/src/rules/export-just-namespace.ts +0 -82
- package/src/rules/index.ts +0 -43
- package/src/rules/no-any-union.ts +0 -33
- package/src/rules/no-bad-reference.ts +0 -199
- package/src/rules/no-const-enum.ts +0 -31
- package/src/rules/no-dead-reference.ts +0 -47
- package/src/rules/no-declare-current-package.ts +0 -45
- package/src/rules/no-import-default-of-export-equals.ts +0 -68
- package/src/rules/no-import-of-dev-dependencies.ts +0 -93
- package/src/rules/no-old-dt-header.ts +0 -40
- package/src/rules/no-relative-import-in-test.ts +0 -72
- package/src/rules/no-self-import.ts +0 -56
- package/src/rules/no-single-declare-module.ts +0 -57
- package/src/rules/no-single-element-tuple-type.ts +0 -30
- package/src/rules/no-unnecessary-generics.ts +0 -119
- package/src/rules/no-useless-files.ts +0 -51
- package/src/rules/npm-naming/types.ts +0 -14
- package/src/rules/npm-naming.ts +0 -211
- package/src/rules/prefer-declare-function.ts +0 -37
- package/src/rules/redundant-undefined.ts +0 -61
- package/src/rules/strict-export-declare-modifiers.ts +0 -195
- package/src/suggestions.ts +0 -75
- package/src/util.ts +0 -138
- package/test/__file_snapshots__/types/expect/expect-tests.ts.lint +0 -79
- package/test/__file_snapshots__/types/expect/index.d.ts.lint +0 -19
- package/test/__file_snapshots__/types/export-just-namespace/bad1.d.ts.lint +0 -11
- package/test/__file_snapshots__/types/export-just-namespace/bad2.d.ts.lint +0 -11
- package/test/__file_snapshots__/types/export-just-namespace/bad3.d.ts.lint +0 -12
- package/test/__file_snapshots__/types/export-just-namespace/export-just-namespace-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/export-just-namespace/good1.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/export-just-namespace/good2.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/export-just-namespace/good3.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/export-just-namespace/good4.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/export-just-namespace/good5.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/export-just-namespace/good6.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/export-just-namespace/good7.d.ts.lint +0 -7
- package/test/__file_snapshots__/types/export-just-namespace/good8.d.ts.lint +0 -7
- package/test/__file_snapshots__/types/export-just-namespace/good9.d.ts.lint +0 -15
- package/test/__file_snapshots__/types/foo/foo-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/foo/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/foo/v1/foo-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/foo/v1/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-any-union/bad.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-any-union/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-any-union/no-any-union-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-bad-reference/index.d.ts.lint +0 -43
- package/test/__file_snapshots__/types/no-bad-reference/no-bad-reference-tests.ts.lint +0 -14
- package/test/__file_snapshots__/types/no-bad-reference/v0.1/index.d.ts.lint +0 -48
- package/test/__file_snapshots__/types/no-bad-reference/v0.1/no-bad-reference-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-bad-reference/v11/index.d.ts.lint +0 -48
- package/test/__file_snapshots__/types/no-bad-reference/v11/no-bad-reference-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-const-enum/bad.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-const-enum/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-const-enum/no-const-enum-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-dead-reference/bad.d.ts.lint +0 -18
- package/test/__file_snapshots__/types/no-dead-reference/bad2.d.ts.lint +0 -15
- package/test/__file_snapshots__/types/no-dead-reference/bad3.d.ts.lint +0 -17
- package/test/__file_snapshots__/types/no-dead-reference/index.d.ts.lint +0 -6
- package/test/__file_snapshots__/types/no-dead-reference/no-dead-reference-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-declare-current-package/index.d.ts.lint +0 -13
- package/test/__file_snapshots__/types/no-declare-current-package/no-declare-current-package-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-declare-current-package/test/deep/import.d.ts.lint +0 -13
- package/test/__file_snapshots__/types/no-declare-current-package-other/index.d.ts.lint +0 -6
- package/test/__file_snapshots__/types/no-declare-current-package-other/no-declare-current-package-other-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-import-default-of-export-equals/bad.d.ts.lint +0 -17
- package/test/__file_snapshots__/types/no-import-default-of-export-equals/index.d.ts.lint +0 -12
- package/test/__file_snapshots__/types/no-import-default-of-export-equals/no-import-default-of-export-equals-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-import-of-dev-dependencies/bad.d.ts.lint +0 -44
- package/test/__file_snapshots__/types/no-import-of-dev-dependencies/index.d.ts.lint +0 -25
- package/test/__file_snapshots__/types/no-import-of-dev-dependencies/no-import-of-dev-dependencies-tests.ts.lint +0 -39
- package/test/__file_snapshots__/types/no-old-dt-header/index.d.ts.lint +0 -23
- package/test/__file_snapshots__/types/no-old-dt-header/index2.d.ts.lint +0 -14
- package/test/__file_snapshots__/types/no-old-dt-header/no-old-dt-header-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-old-dt-header/ok1.ts.lint +0 -11
- package/test/__file_snapshots__/types/no-old-dt-header/ok2.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-old-dt-header/ok3.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-old-dt-header/ok4.d.ts.lint +0 -12
- package/test/__file_snapshots__/types/no-relative-import-in-test/abc.d.ts.lint +0 -6
- package/test/__file_snapshots__/types/no-relative-import-in-test/bad.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-relative-import-in-test/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-relative-import-in-test/no-relative-import-in-test/abc.d.ts.lint +0 -6
- package/test/__file_snapshots__/types/no-relative-import-in-test/no-relative-import-in-test-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-relative-import-in-test/no-relative-import-in-test-tests2.ts.lint +0 -7
- package/test/__file_snapshots__/types/no-relative-import-in-test/no-relative-import-in-test-tests3.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-relative-references/index.d.ts.lint +0 -51
- package/test/__file_snapshots__/types/no-relative-references/no-relative-references-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-relative-references/other/other.d.ts.lint +0 -31
- package/test/__file_snapshots__/types/no-relative-references/v1/index.d.ts.lint +0 -57
- package/test/__file_snapshots__/types/no-relative-references/v1/no-relative-references-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-relative-references/v1/other/other.d.ts.lint +0 -31
- package/test/__file_snapshots__/types/no-self-import/bad.d.ts.lint +0 -65
- package/test/__file_snapshots__/types/no-self-import/index.d.ts.lint +0 -19
- package/test/__file_snapshots__/types/no-self-import/no-self-import-tests.ts.lint +0 -39
- package/test/__file_snapshots__/types/no-single-declare-module/bad.d.ts.lint +0 -13
- package/test/__file_snapshots__/types/no-single-declare-module/index.d.ts.lint +0 -6
- package/test/__file_snapshots__/types/no-single-declare-module/index2.d.ts.lint +0 -6
- package/test/__file_snapshots__/types/no-single-declare-module/index3.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-single-declare-module/no-single-declare-module-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-single-element-tuple-type/bad.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-single-element-tuple-type/index.d.ts.lint +0 -9
- package/test/__file_snapshots__/types/no-single-element-tuple-type/no-single-element-tuple-type-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-unnecessary-generics/bad.d.ts.lint +0 -14
- package/test/__file_snapshots__/types/no-unnecessary-generics/index.d.ts.lint +0 -11
- package/test/__file_snapshots__/types/no-unnecessary-generics/no-unnecessary-generics-tests.ts.lint +0 -44
- package/test/__file_snapshots__/types/no-useless-files/bad.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-useless-files/bad2.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-useless-files/bad3.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/no-useless-files/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-useless-files/index2.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-useless-files/index3.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/no-useless-files/no-useless-files-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/other/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/other/other-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/other/v1/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/other/v1/other-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/prefer-declare-function/bad.d.ts.lint +0 -33
- package/test/__file_snapshots__/types/prefer-declare-function/index.d.ts.lint +0 -14
- package/test/__file_snapshots__/types/prefer-declare-function/prefer-declare-function-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/redundant-undefined/bad.d.ts.lint +0 -15
- package/test/__file_snapshots__/types/redundant-undefined/index.d.ts.lint +0 -9
- package/test/__file_snapshots__/types/redundant-undefined/redundant-undefined-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/scoped__foo/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/scoped__foo/scoped__foo-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/scoped__foo/v1/index.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/scoped__foo/v1/scoped__foo-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/scoped__no-declare-current-package/index.d.ts.lint +0 -13
- package/test/__file_snapshots__/types/scoped__no-declare-current-package/no-declare-current-package-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/scoped__no-declare-current-package/test/deep/import.d.ts.lint +0 -13
- package/test/__file_snapshots__/types/scoped__no-relative-references/index.d.ts.lint +0 -51
- package/test/__file_snapshots__/types/scoped__no-relative-references/no-relative-references-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/scoped__no-relative-references/other/other.d.ts.lint +0 -31
- package/test/__file_snapshots__/types/scoped__no-relative-references/v1/index.d.ts.lint +0 -57
- package/test/__file_snapshots__/types/scoped__no-relative-references/v1/no-relative-references-tests.ts.lint +0 -10
- package/test/__file_snapshots__/types/scoped__no-relative-references/v1/other/other.d.ts.lint +0 -31
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/bad1.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/bad2.d.ts.lint +0 -12
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/bad3.d.ts.lint +0 -10
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/bad4.d.ts.lint +0 -12
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/bad5.d.ts.lint +0 -11
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/bad6.d.ts.lint +0 -14
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/bad7.d.ts.lint +0 -14
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good1.ts.lint +0 -5
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good2.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good3.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good4.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good5.d.ts.lint +0 -5
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good6.ts.lint +0 -7
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good7.d.ts.lint +0 -6
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good8.d.ts.lint +0 -9
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/good9.d.ts.lint +0 -7
- package/test/__file_snapshots__/types/strict-export-declare-modifiers/strict-export-declare-modifiers-tests.ts.lint +0 -10
- package/test/__snapshots__/plugin.test.ts.snap +0 -262
- package/test/eslint.test.ts +0 -134
- package/test/fixtures/.eslintrc.cjs +0 -4
- package/test/fixtures/notNeededPackages.json +0 -3
- package/test/fixtures/package.json +0 -4
- package/test/fixtures/types/expect/expect-tests.ts +0 -49
- package/test/fixtures/types/expect/index.d.ts +0 -9
- package/test/fixtures/types/expect/package.json +0 -5
- package/test/fixtures/types/expect/tsconfig.json +0 -20
- package/test/fixtures/types/export-just-namespace/bad1.d.ts +0 -2
- package/test/fixtures/types/export-just-namespace/bad2.d.ts +0 -2
- package/test/fixtures/types/export-just-namespace/bad3.d.ts +0 -3
- package/test/fixtures/types/export-just-namespace/export-just-namespace-tests.ts +0 -0
- package/test/fixtures/types/export-just-namespace/good1.d.ts +0 -1
- package/test/fixtures/types/export-just-namespace/good2.d.ts +0 -1
- package/test/fixtures/types/export-just-namespace/good3.d.ts +0 -1
- package/test/fixtures/types/export-just-namespace/good4.d.ts +0 -1
- package/test/fixtures/types/export-just-namespace/good5.d.ts +0 -1
- package/test/fixtures/types/export-just-namespace/good6.d.ts +0 -1
- package/test/fixtures/types/export-just-namespace/good7.d.ts +0 -3
- package/test/fixtures/types/export-just-namespace/good8.d.ts +0 -3
- package/test/fixtures/types/export-just-namespace/good9.d.ts +0 -3
- package/test/fixtures/types/export-just-namespace/package.json +0 -8
- package/test/fixtures/types/export-just-namespace/tsconfig.json +0 -31
- package/test/fixtures/types/foo/foo-tests.ts +0 -0
- package/test/fixtures/types/foo/index.d.ts +0 -1
- package/test/fixtures/types/foo/package.json +0 -5
- package/test/fixtures/types/foo/tsconfig.json +0 -20
- package/test/fixtures/types/foo/v1/foo-tests.ts +0 -0
- package/test/fixtures/types/foo/v1/index.d.ts +0 -1
- package/test/fixtures/types/foo/v1/package.json +0 -5
- package/test/fixtures/types/foo/v1/tsconfig.json +0 -20
- package/test/fixtures/types/no-any-union/bad.d.ts +0 -1
- package/test/fixtures/types/no-any-union/index.d.ts +0 -1
- package/test/fixtures/types/no-any-union/no-any-union-tests.ts +0 -1
- package/test/fixtures/types/no-any-union/package.json +0 -8
- package/test/fixtures/types/no-any-union/tsconfig.json +0 -21
- package/test/fixtures/types/no-bad-reference/index.d.ts +0 -16
- package/test/fixtures/types/no-bad-reference/no-bad-reference-tests.ts +0 -2
- package/test/fixtures/types/no-bad-reference/package.json +0 -5
- package/test/fixtures/types/no-bad-reference/tsconfig.json +0 -20
- package/test/fixtures/types/no-bad-reference/v0.1/index.d.ts +0 -15
- package/test/fixtures/types/no-bad-reference/v0.1/no-bad-reference-tests.ts +0 -0
- package/test/fixtures/types/no-bad-reference/v0.1/package.json +0 -5
- package/test/fixtures/types/no-bad-reference/v0.1/tsconfig.json +0 -20
- package/test/fixtures/types/no-bad-reference/v11/index.d.ts +0 -15
- package/test/fixtures/types/no-bad-reference/v11/no-bad-reference-tests.ts +0 -0
- package/test/fixtures/types/no-bad-reference/v11/package.json +0 -5
- package/test/fixtures/types/no-bad-reference/v11/tsconfig.json +0 -20
- package/test/fixtures/types/no-const-enum/bad.d.ts +0 -1
- package/test/fixtures/types/no-const-enum/index.d.ts +0 -1
- package/test/fixtures/types/no-const-enum/no-const-enum-tests.ts +0 -0
- package/test/fixtures/types/no-const-enum/package.json +0 -8
- package/test/fixtures/types/no-const-enum/tsconfig.json +0 -21
- package/test/fixtures/types/no-dead-reference/bad.d.ts +0 -6
- package/test/fixtures/types/no-dead-reference/bad2.d.ts +0 -3
- package/test/fixtures/types/no-dead-reference/bad3.d.ts +0 -5
- package/test/fixtures/types/no-dead-reference/index.d.ts +0 -2
- package/test/fixtures/types/no-dead-reference/no-dead-reference-tests.ts +0 -0
- package/test/fixtures/types/no-dead-reference/package.json +0 -8
- package/test/fixtures/types/no-dead-reference/tsconfig.json +0 -23
- package/test/fixtures/types/no-declare-current-package/index.d.ts +0 -1
- package/test/fixtures/types/no-declare-current-package/no-declare-current-package-tests.ts +0 -0
- package/test/fixtures/types/no-declare-current-package/package.json +0 -8
- package/test/fixtures/types/no-declare-current-package/test/deep/import.d.ts +0 -1
- package/test/fixtures/types/no-declare-current-package/tsconfig.json +0 -21
- package/test/fixtures/types/no-declare-current-package-other/index.d.ts +0 -2
- package/test/fixtures/types/no-declare-current-package-other/no-declare-current-package-other-tests.ts +0 -0
- package/test/fixtures/types/no-declare-current-package-other/package.json +0 -8
- package/test/fixtures/types/no-declare-current-package-other/tsconfig.json +0 -20
- package/test/fixtures/types/no-import-default-of-export-equals/bad.d.ts +0 -8
- package/test/fixtures/types/no-import-default-of-export-equals/index.d.ts +0 -8
- package/test/fixtures/types/no-import-default-of-export-equals/no-import-default-of-export-equals-tests.ts +0 -0
- package/test/fixtures/types/no-import-default-of-export-equals/package.json +0 -8
- package/test/fixtures/types/no-import-default-of-export-equals/tsconfig.json +0 -21
- package/test/fixtures/types/no-import-of-dev-dependencies/bad.d.ts +0 -8
- package/test/fixtures/types/no-import-of-dev-dependencies/index.d.ts +0 -7
- package/test/fixtures/types/no-import-of-dev-dependencies/no-import-of-dev-dependencies-tests.ts +0 -15
- package/test/fixtures/types/no-import-of-dev-dependencies/package.json +0 -14
- package/test/fixtures/types/no-import-of-dev-dependencies/tsconfig.json +0 -21
- package/test/fixtures/types/no-old-dt-header/index.d.ts +0 -14
- package/test/fixtures/types/no-old-dt-header/index2.d.ts +0 -2
- package/test/fixtures/types/no-old-dt-header/no-old-dt-header-tests.ts +0 -0
- package/test/fixtures/types/no-old-dt-header/ok1.ts +0 -2
- package/test/fixtures/types/no-old-dt-header/ok2.d.ts +0 -1
- package/test/fixtures/types/no-old-dt-header/ok3.d.ts +0 -1
- package/test/fixtures/types/no-old-dt-header/ok4.d.ts +0 -3
- package/test/fixtures/types/no-old-dt-header/package.json +0 -8
- package/test/fixtures/types/no-old-dt-header/tsconfig.json +0 -25
- package/test/fixtures/types/no-relative-import-in-test/abc.d.ts +0 -2
- package/test/fixtures/types/no-relative-import-in-test/bad.d.ts +0 -0
- package/test/fixtures/types/no-relative-import-in-test/index.d.ts +0 -1
- package/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test/abc.d.ts +0 -2
- package/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test-tests.ts +0 -1
- package/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test-tests2.ts +0 -3
- package/test/fixtures/types/no-relative-import-in-test/no-relative-import-in-test-tests3.ts +0 -1
- package/test/fixtures/types/no-relative-import-in-test/package.json +0 -8
- package/test/fixtures/types/no-relative-import-in-test/tsconfig.json +0 -25
- package/test/fixtures/types/no-relative-references/index.d.ts +0 -12
- package/test/fixtures/types/no-relative-references/no-relative-references-tests.ts +0 -0
- package/test/fixtures/types/no-relative-references/other/other.d.ts +0 -7
- package/test/fixtures/types/no-relative-references/package.json +0 -5
- package/test/fixtures/types/no-relative-references/tsconfig.json +0 -21
- package/test/fixtures/types/no-relative-references/v1/index.d.ts +0 -15
- package/test/fixtures/types/no-relative-references/v1/no-relative-references-tests.ts +0 -0
- package/test/fixtures/types/no-relative-references/v1/other/other.d.ts +0 -7
- package/test/fixtures/types/no-relative-references/v1/package.json +0 -5
- package/test/fixtures/types/no-relative-references/v1/tsconfig.json +0 -21
- package/test/fixtures/types/no-self-import/bad.d.ts +0 -17
- package/test/fixtures/types/no-self-import/index.d.ts +0 -15
- package/test/fixtures/types/no-self-import/no-self-import-tests.ts +0 -15
- package/test/fixtures/types/no-self-import/package.json +0 -11
- package/test/fixtures/types/no-self-import/tsconfig.json +0 -21
- package/test/fixtures/types/no-single-declare-module/bad.d.ts +0 -4
- package/test/fixtures/types/no-single-declare-module/index.d.ts +0 -2
- package/test/fixtures/types/no-single-declare-module/index2.d.ts +0 -2
- package/test/fixtures/types/no-single-declare-module/index3.d.ts +0 -1
- package/test/fixtures/types/no-single-declare-module/no-single-declare-module-tests.ts +0 -0
- package/test/fixtures/types/no-single-declare-module/package.json +0 -8
- package/test/fixtures/types/no-single-declare-module/tsconfig.json +0 -23
- package/test/fixtures/types/no-single-element-tuple-type/bad.d.ts +0 -1
- package/test/fixtures/types/no-single-element-tuple-type/index.d.ts +0 -5
- package/test/fixtures/types/no-single-element-tuple-type/no-single-element-tuple-type-tests.ts +0 -0
- package/test/fixtures/types/no-single-element-tuple-type/package.json +0 -8
- package/test/fixtures/types/no-single-element-tuple-type/tsconfig.json +0 -21
- package/test/fixtures/types/no-unnecessary-generics/bad.d.ts +0 -2
- package/test/fixtures/types/no-unnecessary-generics/index.d.ts +0 -7
- package/test/fixtures/types/no-unnecessary-generics/no-unnecessary-generics-tests.ts +0 -14
- package/test/fixtures/types/no-unnecessary-generics/package.json +0 -8
- package/test/fixtures/types/no-unnecessary-generics/tsconfig.json +0 -21
- package/test/fixtures/types/no-useless-files/bad.d.ts +0 -1
- package/test/fixtures/types/no-useless-files/bad2.d.ts +0 -0
- package/test/fixtures/types/no-useless-files/bad3.d.ts +0 -1
- package/test/fixtures/types/no-useless-files/index.d.ts +0 -1
- package/test/fixtures/types/no-useless-files/index2.d.ts +0 -1
- package/test/fixtures/types/no-useless-files/index3.d.ts +0 -1
- package/test/fixtures/types/no-useless-files/no-useless-files-tests.ts +0 -0
- package/test/fixtures/types/no-useless-files/package.json +0 -8
- package/test/fixtures/types/no-useless-files/tsconfig.json +0 -25
- package/test/fixtures/types/other/index.d.ts +0 -1
- package/test/fixtures/types/other/other-tests.ts +0 -0
- package/test/fixtures/types/other/package.json +0 -5
- package/test/fixtures/types/other/tsconfig.json +0 -20
- package/test/fixtures/types/other/v1/index.d.ts +0 -1
- package/test/fixtures/types/other/v1/other-tests.ts +0 -0
- package/test/fixtures/types/other/v1/package.json +0 -5
- package/test/fixtures/types/other/v1/tsconfig.json +0 -20
- package/test/fixtures/types/prefer-declare-function/bad.d.ts +0 -9
- package/test/fixtures/types/prefer-declare-function/index.d.ts +0 -2
- package/test/fixtures/types/prefer-declare-function/package.json +0 -8
- package/test/fixtures/types/prefer-declare-function/prefer-declare-function-tests.ts +0 -0
- package/test/fixtures/types/prefer-declare-function/tsconfig.json +0 -21
- package/test/fixtures/types/redundant-undefined/bad.d.ts +0 -3
- package/test/fixtures/types/redundant-undefined/index.d.ts +0 -5
- package/test/fixtures/types/redundant-undefined/package.json +0 -8
- package/test/fixtures/types/redundant-undefined/redundant-undefined-tests.ts +0 -1
- package/test/fixtures/types/redundant-undefined/tsconfig.json +0 -21
- package/test/fixtures/types/scoped__foo/index.d.ts +0 -1
- package/test/fixtures/types/scoped__foo/package.json +0 -5
- package/test/fixtures/types/scoped__foo/scoped__foo-tests.ts +0 -0
- package/test/fixtures/types/scoped__foo/tsconfig.json +0 -20
- package/test/fixtures/types/scoped__foo/v1/index.d.ts +0 -1
- package/test/fixtures/types/scoped__foo/v1/package.json +0 -5
- package/test/fixtures/types/scoped__foo/v1/scoped__foo-tests.ts +0 -0
- package/test/fixtures/types/scoped__foo/v1/tsconfig.json +0 -20
- package/test/fixtures/types/scoped__no-declare-current-package/index.d.ts +0 -1
- package/test/fixtures/types/scoped__no-declare-current-package/no-declare-current-package-tests.ts +0 -0
- package/test/fixtures/types/scoped__no-declare-current-package/package.json +0 -8
- package/test/fixtures/types/scoped__no-declare-current-package/test/deep/import.d.ts +0 -1
- package/test/fixtures/types/scoped__no-declare-current-package/tsconfig.json +0 -21
- package/test/fixtures/types/scoped__no-relative-references/index.d.ts +0 -12
- package/test/fixtures/types/scoped__no-relative-references/no-relative-references-tests.ts +0 -0
- package/test/fixtures/types/scoped__no-relative-references/other/other.d.ts +0 -7
- package/test/fixtures/types/scoped__no-relative-references/package.json +0 -5
- package/test/fixtures/types/scoped__no-relative-references/tsconfig.json +0 -21
- package/test/fixtures/types/scoped__no-relative-references/v1/index.d.ts +0 -15
- package/test/fixtures/types/scoped__no-relative-references/v1/no-relative-references-tests.ts +0 -0
- package/test/fixtures/types/scoped__no-relative-references/v1/other/other.d.ts +0 -7
- package/test/fixtures/types/scoped__no-relative-references/v1/package.json +0 -5
- package/test/fixtures/types/scoped__no-relative-references/v1/tsconfig.json +0 -21
- package/test/fixtures/types/strict-export-declare-modifiers/bad1.d.ts +0 -1
- package/test/fixtures/types/strict-export-declare-modifiers/bad2.d.ts +0 -3
- package/test/fixtures/types/strict-export-declare-modifiers/bad3.d.ts +0 -1
- package/test/fixtures/types/strict-export-declare-modifiers/bad4.d.ts +0 -3
- package/test/fixtures/types/strict-export-declare-modifiers/bad5.d.ts +0 -2
- package/test/fixtures/types/strict-export-declare-modifiers/bad6.d.ts +0 -2
- package/test/fixtures/types/strict-export-declare-modifiers/bad7.d.ts +0 -2
- package/test/fixtures/types/strict-export-declare-modifiers/good1.ts +0 -1
- package/test/fixtures/types/strict-export-declare-modifiers/good2.d.ts +0 -1
- package/test/fixtures/types/strict-export-declare-modifiers/good3.d.ts +0 -1
- package/test/fixtures/types/strict-export-declare-modifiers/good4.d.ts +0 -1
- package/test/fixtures/types/strict-export-declare-modifiers/good5.d.ts +0 -1
- package/test/fixtures/types/strict-export-declare-modifiers/good6.ts +0 -3
- package/test/fixtures/types/strict-export-declare-modifiers/good7.d.ts +0 -2
- package/test/fixtures/types/strict-export-declare-modifiers/good8.d.ts +0 -5
- package/test/fixtures/types/strict-export-declare-modifiers/good9.d.ts +0 -3
- package/test/fixtures/types/strict-export-declare-modifiers/package.json +0 -8
- package/test/fixtures/types/strict-export-declare-modifiers/strict-export-declare-modifiers-tests.ts +0 -0
- package/test/fixtures/types/strict-export-declare-modifiers/tsconfig.json +0 -35
- package/test/npm-naming.test.ts +0 -57
- package/test/plugin.test.ts +0 -14
- package/test/tsconfig.json +0 -13
- package/test/types/dts-critic/index.d.ts +0 -9
- package/test/types/dts-critic/package.json +0 -17
- package/test/types/wenceslas/index.d.ts +0 -0
- package/test/types/wenceslas/package.json +0 -17
- package/test/util.test.ts +0 -40
- package/test/util.ts +0 -3
- package/tsconfig.json +0 -11
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
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 <https://github.com/devpaul>
|
|
9
|
-
~
|
|
10
|
-
!!! @definitelytyped/no-useless-files: File has no content.
|
|
@@ -1,12 +0,0 @@
|
|
|
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 <https://github.com/devpaul>
|
|
@@ -1,10 +0,0 @@
|
|
|
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.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
types/no-relative-import-in-test/no-relative-import-in-test-tests.ts
|
|
2
|
-
1:17 error Test file should not use a relative import. Use a global import as if this were a user of the package @definitelytyped/no-relative-import-in-test
|
|
3
|
-
|
|
4
|
-
✖ 1 problem (1 error, 0 warnings)
|
|
5
|
-
|
|
6
|
-
==== types/no-relative-import-in-test/no-relative-import-in-test-tests.ts ====
|
|
7
|
-
|
|
8
|
-
import abc from "./no-relative-import-in-test/abc.d.ts";
|
|
9
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
10
|
-
!!! @definitelytyped/no-relative-import-in-test: Test file should not use a relative import. Use a global import as if this were a user of the package.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
types/no-relative-import-in-test/no-relative-import-in-test-tests3.ts
|
|
2
|
-
1:23 error Test file should not use a relative import. Use a global import as if this were a user of the package @definitelytyped/no-relative-import-in-test
|
|
3
|
-
|
|
4
|
-
✖ 1 problem (1 error, 0 warnings)
|
|
5
|
-
|
|
6
|
-
==== types/no-relative-import-in-test/no-relative-import-in-test-tests3.ts ====
|
|
7
|
-
|
|
8
|
-
import util = require('./');
|
|
9
|
-
~~~~
|
|
10
|
-
!!! @definitelytyped/no-relative-import-in-test: Test file should not use a relative import. Use a global import as if this were a user of the package.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
types/no-relative-references/index.d.ts
|
|
2
|
-
1:22 error The reference "../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
3
|
-
2:22 error The reference "./v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
4
|
-
3:22 error The reference "../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
5
|
-
5:22 error The import "../foo" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
6
|
-
6:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
7
|
-
6:23 error The import "./v1" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
8
|
-
7:23 error The import "../foo/v1" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
9
|
-
9:16 error Instead of declaring a module with `declare module "no-relative-references"`, write its contents in directly in "index.d.ts" @definitelytyped/no-declare-current-package
|
|
10
|
-
10:3 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
11
|
-
11:3 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
12
|
-
11:22 error The import "no-relative-references/v1" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
13
|
-
|
|
14
|
-
✖ 11 problems (11 errors, 0 warnings)
|
|
15
|
-
|
|
16
|
-
==== types/no-relative-references/index.d.ts ====
|
|
17
|
-
|
|
18
|
-
/// <reference path="../foo/index.d.ts" />
|
|
19
|
-
~~~~~~~~~~~~~~~~~
|
|
20
|
-
!!! @definitelytyped/no-bad-reference: The reference "../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
21
|
-
/// <reference path="./v1/index.d.ts" />
|
|
22
|
-
~~~~~~~~~~~~~~~
|
|
23
|
-
!!! @definitelytyped/no-bad-reference: The reference "./v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
24
|
-
/// <reference path="../foo/v1/index.d.ts" />
|
|
25
|
-
~~~~~~~~~~~~~~~~~~~~
|
|
26
|
-
!!! @definitelytyped/no-bad-reference: The reference "../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
27
|
-
|
|
28
|
-
import * as foo from "../foo";
|
|
29
|
-
~~~~~~~~
|
|
30
|
-
!!! @definitelytyped/no-bad-reference: The import "../foo" resolves outside of the package. Use a bare import to reference other packages.
|
|
31
|
-
import * as foo2 from "./v1";
|
|
32
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
33
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
34
|
-
~~~~~~
|
|
35
|
-
!!! @definitelytyped/no-bad-reference: The import "./v1" resolves outside of the package. Use a bare import to reference other packages.
|
|
36
|
-
import * as foo3 from "../foo/v1";
|
|
37
|
-
~~~~~~~~~~~
|
|
38
|
-
!!! @definitelytyped/no-bad-reference: The import "../foo/v1" resolves outside of the package. Use a bare import to reference other packages.
|
|
39
|
-
|
|
40
|
-
declare module "no-relative-references" {
|
|
41
|
-
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
42
|
-
!!! @definitelytyped/no-declare-current-package: Instead of declaring a module with `declare module "no-relative-references"`, write its contents in directly in "index.d.ts".
|
|
43
|
-
import A = require("no-relative-references/blah"); // Okay; relative
|
|
44
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
45
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
46
|
-
import B = require("no-relative-references/v1"); // Bad; versioned subdir
|
|
47
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
48
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
49
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
50
|
-
!!! @definitelytyped/no-bad-reference: The import "no-relative-references/v1" resolves outside of the package. Use a bare import to reference other packages.
|
|
51
|
-
}
|
package/test/__file_snapshots__/types/no-relative-references/no-relative-references-tests.ts.lint
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
types/no-relative-references/other/other.d.ts
|
|
2
|
-
1:22 error The reference "../../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
3
|
-
2:22 error The reference "../v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
4
|
-
3:22 error The reference "../../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
5
|
-
5:22 error The import "../../foo" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
6
|
-
6:23 error The import "../v1" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
7
|
-
7:23 error The import "../../foo/v1" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
8
|
-
|
|
9
|
-
✖ 6 problems (6 errors, 0 warnings)
|
|
10
|
-
|
|
11
|
-
==== types/no-relative-references/other/other.d.ts ====
|
|
12
|
-
|
|
13
|
-
/// <reference path="../../foo/index.d.ts" />
|
|
14
|
-
~~~~~~~~~~~~~~~~~~~~
|
|
15
|
-
!!! @definitelytyped/no-bad-reference: The reference "../../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
16
|
-
/// <reference path="../v1/index.d.ts" />
|
|
17
|
-
~~~~~~~~~~~~~~~~
|
|
18
|
-
!!! @definitelytyped/no-bad-reference: The reference "../v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
19
|
-
/// <reference path="../../foo/v1/index.d.ts" />
|
|
20
|
-
~~~~~~~~~~~~~~~~~~~~~~~
|
|
21
|
-
!!! @definitelytyped/no-bad-reference: The reference "../../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
22
|
-
|
|
23
|
-
import * as foo from "../../foo";
|
|
24
|
-
~~~~~~~~~~~
|
|
25
|
-
!!! @definitelytyped/no-bad-reference: The import "../../foo" resolves outside of the package. Use a bare import to reference other packages.
|
|
26
|
-
import * as foo2 from "../v1";
|
|
27
|
-
~~~~~~~
|
|
28
|
-
!!! @definitelytyped/no-bad-reference: The import "../v1" resolves outside of the package. Use a bare import to reference other packages.
|
|
29
|
-
import * as foo3 from "../../foo/v1";
|
|
30
|
-
~~~~~~~~~~~~~~
|
|
31
|
-
!!! @definitelytyped/no-bad-reference: The import "../../foo/v1" resolves outside of the package. Use a bare import to reference other packages.
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
types/no-relative-references/v1/index.d.ts
|
|
2
|
-
1:22 error The reference "../../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
3
|
-
2:22 error The reference "../v1/index.d.ts" resolves to the current package, but uses relative paths @definitelytyped/no-bad-reference
|
|
4
|
-
3:22 error The reference "../../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
5
|
-
4:22 error The reference "../index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
6
|
-
6:22 error The import "../../foo" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
7
|
-
7:23 error The import "../v1" resolves to the current package, but uses relative paths @definitelytyped/no-bad-reference
|
|
8
|
-
8:23 error The import "../../foo/v1" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
9
|
-
9:22 error The import "../index" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
10
|
-
11:16 error Instead of declaring a module with `declare module "no-relative-references"`, write its contents in directly in "index.d.ts" @definitelytyped/no-declare-current-package
|
|
11
|
-
12:3 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
12
|
-
13:3 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
13
|
-
14:22 error The import "../index" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
14
|
-
|
|
15
|
-
✖ 12 problems (12 errors, 0 warnings)
|
|
16
|
-
|
|
17
|
-
==== types/no-relative-references/v1/index.d.ts ====
|
|
18
|
-
|
|
19
|
-
/// <reference path="../../foo/index.d.ts" />
|
|
20
|
-
~~~~~~~~~~~~~~~~~~~~
|
|
21
|
-
!!! @definitelytyped/no-bad-reference: The reference "../../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
22
|
-
/// <reference path="../v1/index.d.ts" />
|
|
23
|
-
~~~~~~~~~~~~~~~~
|
|
24
|
-
!!! @definitelytyped/no-bad-reference: The reference "../v1/index.d.ts" resolves to the current package, but uses relative paths.
|
|
25
|
-
/// <reference path="../../foo/v1/index.d.ts" />
|
|
26
|
-
~~~~~~~~~~~~~~~~~~~~~~~
|
|
27
|
-
!!! @definitelytyped/no-bad-reference: The reference "../../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
28
|
-
/// <reference path="../index.d.ts" />
|
|
29
|
-
~~~~~~~~~~~~~
|
|
30
|
-
!!! @definitelytyped/no-bad-reference: The reference "../index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
31
|
-
|
|
32
|
-
import * as foo from "../../foo";
|
|
33
|
-
~~~~~~~~~~~
|
|
34
|
-
!!! @definitelytyped/no-bad-reference: The import "../../foo" resolves outside of the package. Use a bare import to reference other packages.
|
|
35
|
-
import * as foo2 from "../v1";
|
|
36
|
-
~~~~~~~
|
|
37
|
-
!!! @definitelytyped/no-bad-reference: The import "../v1" resolves to the current package, but uses relative paths.
|
|
38
|
-
import * as foo3 from "../../foo/v1";
|
|
39
|
-
~~~~~~~~~~~~~~
|
|
40
|
-
!!! @definitelytyped/no-bad-reference: The import "../../foo/v1" resolves outside of the package. Use a bare import to reference other packages.
|
|
41
|
-
import * as va4 from "../index";
|
|
42
|
-
~~~~~~~~~~
|
|
43
|
-
!!! @definitelytyped/no-bad-reference: The import "../index" resolves outside of the package. Use a bare import to reference other packages.
|
|
44
|
-
|
|
45
|
-
declare module "no-relative-references" {
|
|
46
|
-
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
47
|
-
!!! @definitelytyped/no-declare-current-package: Instead of declaring a module with `declare module "no-relative-references"`, write its contents in directly in "index.d.ts".
|
|
48
|
-
import A = require("no-relative-references/blah"); // Okay; relative
|
|
49
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
50
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
51
|
-
import B = require("no-relative-references/v1"); // Okay; no versioned dir here
|
|
52
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
53
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
54
|
-
import C = require("../index"); // Bad; parent dir
|
|
55
|
-
~~~~~~~~~~
|
|
56
|
-
!!! @definitelytyped/no-bad-reference: The import "../index" resolves outside of the package. Use a bare import to reference other packages.
|
|
57
|
-
}
|
package/test/__file_snapshots__/types/no-relative-references/v1/no-relative-references-tests.ts.lint
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
types/no-relative-references/v1/other/other.d.ts
|
|
2
|
-
1:22 error The reference "../../../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
3
|
-
2:22 error The reference "../../v1/index.d.ts" resolves to the current package, but uses relative paths @definitelytyped/no-bad-reference
|
|
4
|
-
3:22 error The reference "../../../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages @definitelytyped/no-bad-reference
|
|
5
|
-
5:22 error The import "../../../foo" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
6
|
-
6:23 error The import "../../v1" resolves to the current package, but uses relative paths @definitelytyped/no-bad-reference
|
|
7
|
-
7:23 error The import "../../../foo/v1" resolves outside of the package. Use a bare import to reference other packages @definitelytyped/no-bad-reference
|
|
8
|
-
|
|
9
|
-
✖ 6 problems (6 errors, 0 warnings)
|
|
10
|
-
|
|
11
|
-
==== types/no-relative-references/v1/other/other.d.ts ====
|
|
12
|
-
|
|
13
|
-
/// <reference path="../../../foo/index.d.ts" />
|
|
14
|
-
~~~~~~~~~~~~~~~~~~~~~~~
|
|
15
|
-
!!! @definitelytyped/no-bad-reference: The reference "../../../foo/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
16
|
-
/// <reference path="../../v1/index.d.ts" />
|
|
17
|
-
~~~~~~~~~~~~~~~~~~~
|
|
18
|
-
!!! @definitelytyped/no-bad-reference: The reference "../../v1/index.d.ts" resolves to the current package, but uses relative paths.
|
|
19
|
-
/// <reference path="../../../foo/v1/index.d.ts" />
|
|
20
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
21
|
-
!!! @definitelytyped/no-bad-reference: The reference "../../../foo/v1/index.d.ts" resolves outside of the package. Use a global reference to reference other packages.
|
|
22
|
-
|
|
23
|
-
import * as foo from "../../../foo";
|
|
24
|
-
~~~~~~~~~~~~~~
|
|
25
|
-
!!! @definitelytyped/no-bad-reference: The import "../../../foo" resolves outside of the package. Use a bare import to reference other packages.
|
|
26
|
-
import * as foo2 from "../../v1";
|
|
27
|
-
~~~~~~~~~~
|
|
28
|
-
!!! @definitelytyped/no-bad-reference: The import "../../v1" resolves to the current package, but uses relative paths.
|
|
29
|
-
import * as foo3 from "../../../foo/v1";
|
|
30
|
-
~~~~~~~~~~~~~~~~~
|
|
31
|
-
!!! @definitelytyped/no-bad-reference: The import "../../../foo/v1" resolves outside of the package. Use a bare import to reference other packages.
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
types/no-self-import/bad.d.ts
|
|
2
|
-
1:1 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
3
|
-
2:1 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
4
|
-
4:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
5
|
-
5:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
6
|
-
6:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
7
|
-
7:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
8
|
-
8:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
9
|
-
10:1 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
10
|
-
11:1 error Declaration file should not use a global import of itself. Use a relative import @definitelytyped/no-self-import
|
|
11
|
-
13:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
12
|
-
14:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
13
|
-
15:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
14
|
-
16:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
15
|
-
17:1 error Don't import an old version of the current package @definitelytyped/no-self-import
|
|
16
|
-
|
|
17
|
-
✖ 14 problems (14 errors, 0 warnings)
|
|
18
|
-
|
|
19
|
-
==== types/no-self-import/bad.d.ts ====
|
|
20
|
-
|
|
21
|
-
import myself from "no-self-import";
|
|
22
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
23
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
24
|
-
import abc from "no-self-import/abc.d.ts"
|
|
25
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
26
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
27
|
-
|
|
28
|
-
import old1 from "./v11";
|
|
29
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
30
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
31
|
-
import old2 from "./v11/index";
|
|
32
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
33
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
34
|
-
import old3 from "./v11/subdir/file";
|
|
35
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
36
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
37
|
-
import old4 from "./v0.1"
|
|
38
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
39
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
40
|
-
import old5 from "./v0.1/index"
|
|
41
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
42
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
43
|
-
|
|
44
|
-
import myselfRequired = require("no-self-import");
|
|
45
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
46
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
47
|
-
import abcRequired = require("no-self-import/abc.d.ts");
|
|
48
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
49
|
-
!!! @definitelytyped/no-self-import: Declaration file should not use a global import of itself. Use a relative import.
|
|
50
|
-
|
|
51
|
-
import old1Required = require("./v11");
|
|
52
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
53
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
54
|
-
import old2Required = require("./v11/index");
|
|
55
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
56
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
57
|
-
import old3Required = require("./v11/subdir/file");
|
|
58
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
59
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
60
|
-
import old4Required = require("./v0.1");
|
|
61
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
62
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
63
|
-
import old5Required = require("./v0.1/index");
|
|
64
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
65
|
-
!!! @definitelytyped/no-self-import: Don't import an old version of the current package.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
No errors
|
|
2
|
-
|
|
3
|
-
==== types/no-self-import/index.d.ts ====
|
|
4
|
-
|
|
5
|
-
import other from "other-package";
|
|
6
|
-
|
|
7
|
-
import other from "other-package/this-package";
|
|
8
|
-
|
|
9
|
-
import old from "./v1gardenpath"
|
|
10
|
-
|
|
11
|
-
import old from "./v1verb/other"
|
|
12
|
-
|
|
13
|
-
import otherRequired = require("other-package");
|
|
14
|
-
|
|
15
|
-
import otherRequired = require("other-package/this-package");
|
|
16
|
-
|
|
17
|
-
import oldRequired = require("./v1gardenpath");
|
|
18
|
-
|
|
19
|
-
import oldRequired = require("./v1verb/other");
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
types/no-self-import/no-self-import-tests.ts
|
|
2
|
-
1:1 error Do not use a triple slash reference for devdep, use `import` style instead @typescript-eslint/triple-slash-reference
|
|
3
|
-
1:1 error Do not use a triple slash reference for devdep, use `import` style instead @typescript-eslint/triple-slash-reference
|
|
4
|
-
2:1 error Do not use a triple slash reference for otherdevdep, use `import` style instead @typescript-eslint/triple-slash-reference
|
|
5
|
-
2:1 error Do not use a triple slash reference for otherdevdep, use `import` style instead @typescript-eslint/triple-slash-reference
|
|
6
|
-
3:1 error Do not use a triple slash reference for other, use `import` style instead @typescript-eslint/triple-slash-reference
|
|
7
|
-
3:1 error Do not use a triple slash reference for other, use `import` style instead @typescript-eslint/triple-slash-reference
|
|
8
|
-
|
|
9
|
-
✖ 6 problems (6 errors, 0 warnings)
|
|
10
|
-
|
|
11
|
-
==== types/no-self-import/no-self-import-tests.ts ====
|
|
12
|
-
|
|
13
|
-
/// <reference types="devdep"/>
|
|
14
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
15
|
-
!!! @typescript-eslint/triple-slash-reference: Do not use a triple slash reference for devdep, use `import` style instead.
|
|
16
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
17
|
-
!!! @typescript-eslint/triple-slash-reference: Do not use a triple slash reference for devdep, use `import` style instead.
|
|
18
|
-
/// <reference types="otherdevdep"/>
|
|
19
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
20
|
-
!!! @typescript-eslint/triple-slash-reference: Do not use a triple slash reference for otherdevdep, use `import` style instead.
|
|
21
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
22
|
-
!!! @typescript-eslint/triple-slash-reference: Do not use a triple slash reference for otherdevdep, use `import` style instead.
|
|
23
|
-
/// <reference types="other"/>
|
|
24
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
25
|
-
!!! @typescript-eslint/triple-slash-reference: Do not use a triple slash reference for other, use `import` style instead.
|
|
26
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
27
|
-
!!! @typescript-eslint/triple-slash-reference: Do not use a triple slash reference for other, use `import` style instead.
|
|
28
|
-
|
|
29
|
-
import other from "other";
|
|
30
|
-
import self from "no-import-of-dev-dependencies";
|
|
31
|
-
|
|
32
|
-
import devdep from "devdep";
|
|
33
|
-
import * as otherdevdep from "otherdevdep";
|
|
34
|
-
|
|
35
|
-
import otherRequired = require("other");
|
|
36
|
-
import selfRequired = require("no-import-of-dev-dependencies");
|
|
37
|
-
|
|
38
|
-
import devdepRequired = require("devdep");
|
|
39
|
-
import otherdevdepRequired = require("otherdevdep");
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
types/no-single-declare-module/bad.d.ts
|
|
2
|
-
1:16 error File has only 1 ambient module declaration. Move the contents outside the ambient module block, rename the file to match the ambient module name, and remove the block @definitelytyped/no-single-declare-module
|
|
3
|
-
|
|
4
|
-
✖ 1 problem (1 error, 0 warnings)
|
|
5
|
-
|
|
6
|
-
==== types/no-single-declare-module/bad.d.ts ====
|
|
7
|
-
|
|
8
|
-
declare module "foo" {}
|
|
9
|
-
~~~~~
|
|
10
|
-
!!! @definitelytyped/no-single-declare-module: File has only 1 ambient module declaration. Move the contents outside the ambient module block, rename the file to match the ambient module name, and remove the block.
|
|
11
|
-
|
|
12
|
-
// Other global declarations don't affect this. They should go in "declare global".
|
|
13
|
-
interface I { i: any }
|
|
@@ -1,10 +0,0 @@
|
|
|
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.
|
|
@@ -1,10 +0,0 @@
|
|
|
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> = [T];
|
|
9
|
-
~~~
|
|
10
|
-
!!! @definitelytyped/no-single-element-tuple-type: Type [T] is a single-element tuple type. You probably meant T[].
|
|
@@ -1,10 +0,0 @@
|
|
|
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.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
types/no-unnecessary-generics/bad.d.ts
|
|
2
|
-
1:12 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
3
|
-
2:16 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
4
|
-
|
|
5
|
-
✖ 2 problems (2 errors, 0 warnings)
|
|
6
|
-
|
|
7
|
-
==== types/no-unnecessary-generics/bad.d.ts ====
|
|
8
|
-
|
|
9
|
-
type Fn = <T>() => T;
|
|
10
|
-
~
|
|
11
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
12
|
-
type Ctr = new<T>() => T;
|
|
13
|
-
~
|
|
14
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
No errors
|
|
2
|
-
|
|
3
|
-
==== types/no-unnecessary-generics/index.d.ts ====
|
|
4
|
-
|
|
5
|
-
declare function example1(a: string): string;
|
|
6
|
-
declare function example2<T>(a: T): T;
|
|
7
|
-
declare function example3<T>(a: T[]): T;
|
|
8
|
-
declare function example4<T>(a: Set<T>): T;
|
|
9
|
-
declare function example5<T>(a: Set<T>, b: T[]): void;
|
|
10
|
-
declare function example6<T>(a: Map<T, T>): void;
|
|
11
|
-
declare function example7<T, U extends T>(t: T, u: U): U;
|
package/test/__file_snapshots__/types/no-unnecessary-generics/no-unnecessary-generics-tests.ts.lint
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
types/no-unnecessary-generics/no-unnecessary-generics-tests.ts
|
|
2
|
-
1:13 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
3
|
-
3:17 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
4
|
-
5:13 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
5
|
-
6:13 error Type parameter T is never used @definitelytyped/no-unnecessary-generics
|
|
6
|
-
7:13 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
7
|
-
8:21 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
8
|
-
10:6 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
9
|
-
13:7 error Type parameter T is used only once @definitelytyped/no-unnecessary-generics
|
|
10
|
-
|
|
11
|
-
✖ 8 problems (8 errors, 0 warnings)
|
|
12
|
-
|
|
13
|
-
==== types/no-unnecessary-generics/no-unnecessary-generics-tests.ts ====
|
|
14
|
-
|
|
15
|
-
const f1 = <T>(): T => {};
|
|
16
|
-
~
|
|
17
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
18
|
-
class C {
|
|
19
|
-
constructor<T>(x: T) {}
|
|
20
|
-
~
|
|
21
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
22
|
-
}
|
|
23
|
-
function f2<T>(): T { }
|
|
24
|
-
~
|
|
25
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
26
|
-
function f3<T>(x: { T: number }): void;
|
|
27
|
-
~
|
|
28
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is never used.
|
|
29
|
-
function f4<T, U extends T>(u: U): U;
|
|
30
|
-
~
|
|
31
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
32
|
-
const f5 = function<T>(): T {};
|
|
33
|
-
~
|
|
34
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
35
|
-
interface I {
|
|
36
|
-
<T>(value: T): void;
|
|
37
|
-
~
|
|
38
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
39
|
-
}
|
|
40
|
-
interface I {
|
|
41
|
-
m<T>(x: T): void;
|
|
42
|
-
~
|
|
43
|
-
!!! @definitelytyped/no-unnecessary-generics: Type parameter T is used only once.
|
|
44
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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.
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
/// <reference lib="baz" />
|
|
9
|
-
~
|
|
10
|
-
!!! @definitelytyped/no-useless-files: File has no content.
|