Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit ff044e7

Browse files
authored
Merge pull request #431 from DefinitelyTyped/update-tslint-extends
Update tslint "extends" requirement
2 parents 8ab71de + 491a0a2 commit ff044e7

File tree

14 files changed

+36
-13
lines changed

14 files changed

+36
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"683fb3b1298223256be3a49823686f35bd94a730:types/hcaptcha__vue-hcaptcha/tslint.json": "{\n \"extends\": \"dtslint/dt.json\"\n}\n",
2+
"683fb3b1298223256be3a49823686f35bd94a730:types/hcaptcha__vue-hcaptcha/tslint.json": "{\n \"extends\": \"@definitelytyped/dtslint/dt.json\"\n}\n",
33
"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 <https://github.com/geopic>\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"
44
}

src/_tests/fixtures/46019/derived.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
},
3232
{
3333
"path": "types/is-secret/tslint.json",
34-
"kind": "package-meta-ok"
34+
"kind": "package-meta",
35+
"suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-linter-tslintjson) (check: `extends`)"
3536
}
3637
],
3738
"owners": [],

src/_tests/fixtures/46019/mutations.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44
"variables": {
55
"input": {
66
"id": "MDEyOklzc3VlQ29tbWVudDY1NzEyNjg3Mg==",
7-
"body": "@peterblazejewicz Thank you for submitting this PR!\n\n***This is a live comment which I will keep updated.***\n\n## 1 package in this PR\n\n* `is-secret` (*new!*) — [on npm](https://www.npmjs.com/package/is-secret), [on unpkg](https://unpkg.com/browse/is-secret@latest/)\n - 2 added owners: @wrumsby, ✎@peterblazejewicz\n\n## Code Reviews\n\nThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=46019&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * ✅ Only a DT maintainer can approve changes when there are new packages added\n\nAll of the items on the list are green. **To merge, you need to post a comment including the string \"Ready to merge\"** to bring in your changes.\n\n----------------------\n... diagnostics scrubbed ...\n<!--typescript_bot_welcome-->"
7+
"body": "@peterblazejewicz Thank you for submitting this PR!\n\n***This is a live comment which I will keep updated.***\n\n## 1 package in this PR\n\n* `is-secret` (*new!*) — [on npm](https://www.npmjs.com/package/is-secret), [on unpkg](https://unpkg.com/browse/is-secret@latest/)\n - 2 added owners: @wrumsby, ✎@peterblazejewicz\n - Config files to check:\n - [`is-secret/tslint.json`](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46019/files/ceca9f768be945932c692d7dd48fa14b6ff38096#diff-2069dd3c71913a21a2c622131eaceeb2125b66d5c6b10077423d4c01735f6fd0): not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-linter-tslintjson) (check: `extends`)\n\n## Code Reviews\n\nThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=46019&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * ✅ Only a DT maintainer can approve changes when there are new packages added\n\nAll of the items on the list are green. **To merge, you need to post a comment including the string \"Ready to merge\"** to bring in your changes.\n\n----------------------\n... diagnostics scrubbed ...\n<!--typescript_bot_welcome-->"
8+
}
9+
}
10+
},
11+
{
12+
"mutation": "mutation ($input: AddLabelsToLabelableInput!) {\n addLabelsToLabelable(input: $input) {\n __typename\n }\n}\n",
13+
"variables": {
14+
"input": {
15+
"labelIds": [
16+
"MDU6TGFiZWwyMTU0ODE2NTQ5"
17+
],
18+
"labelableId": "MDExOlB1bGxSZXF1ZXN0NDQ3ODE1MDgx"
819
}
920
}
1021
},

src/_tests/fixtures/46019/result.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"labels": [
44
"Maintainer Approved",
55
"New Definition",
6+
"Check Config",
67
"Self Merge"
78
],
89
"responseComments": [
910
{
1011
"tag": "welcome",
11-
"status": "@peterblazejewicz Thank you for submitting this PR!\n\n***This is a live comment which I will keep updated.***\n\n## 1 package in this PR\n\n* `is-secret` (*new!*) — [on npm](https://www.npmjs.com/package/is-secret), [on unpkg](https://unpkg.com/browse/is-secret@latest/)\n - 2 added owners: @wrumsby, ✎@peterblazejewicz\n\n## Code Reviews\n\nThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=46019&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * ✅ Only a DT maintainer can approve changes when there are new packages added\n\nAll of the items on the list are green. **To merge, you need to post a comment including the string \"Ready to merge\"** to bring in your changes.\n\n----------------------\n... diagnostics scrubbed ..."
12+
"status": "@peterblazejewicz Thank you for submitting this PR!\n\n***This is a live comment which I will keep updated.***\n\n## 1 package in this PR\n\n* `is-secret` (*new!*) — [on npm](https://www.npmjs.com/package/is-secret), [on unpkg](https://unpkg.com/browse/is-secret@latest/)\n - 2 added owners: @wrumsby, ✎@peterblazejewicz\n - Config files to check:\n - [`is-secret/tslint.json`](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46019/files/ceca9f768be945932c692d7dd48fa14b6ff38096#diff-2069dd3c71913a21a2c622131eaceeb2125b66d5c6b10077423d4c01735f6fd0): not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-linter-tslintjson) (check: `extends`)\n\n## Code Reviews\n\nThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged.\n\nYou can test the changes of this PR [in the Playground](https://www.typescriptlang.org/play/?dtPR=46019&install-plugin=playground-dt-review).\n\n## Status\n\n * ✅ No merge conflicts\n * ✅ Continuous integration tests have passed\n * ✅ Only a DT maintainer can approve changes when there are new packages added\n\nAll of the items on the list are green. **To merge, you need to post a comment including the string \"Ready to merge\"** to bring in your changes.\n\n----------------------\n... diagnostics scrubbed ..."
1213
},
1314
{
1415
"tag": "merge-offer",

src/_tests/fixtures/46196/_files.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"2f300d234e09e9e34c88e884f6466f2d6d0db399:types/date-arithmetic/tsconfig.json": "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\"es6\"],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictNullChecks\": true,\n \"strictFunctionTypes\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\"../\"],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\"index.d.ts\", \"some-new-file.ts\"]\n}\n",
3-
"2f300d234e09e9e34c88e884f6466f2d6d0db399:types/date-arithmetic/tslint.json": "{\n \"extends\": \"dtslint/dt.json\"\n}\n",
3+
"2f300d234e09e9e34c88e884f6466f2d6d0db399:types/date-arithmetic/tslint.json": "{\n \"extends\": \"@definitelytyped/dtslint/dt.json\"\n}\n",
44
"master:types/date-arithmetic/tsconfig.json": "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictNullChecks\": true,\n \"strictFunctionTypes\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"an-old-file.ts\",\n \"index.d.ts\",\n \"date-arithmetic-tests.ts\"\n ]\n}\n",
55
"master:types/date-arithmetic/index.d.ts": "// Type definitions for date-arithmetic v3.1.0\n// Project: https://github.com/jquense/date-math\n// Definitions by: Sergii Paryzhskyi <https://github.com/HeeL>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\ntype Unit = 'second' | 'minutes' | 'hours' | 'day' | 'week' | 'month' | 'year' | 'decade' | 'century';\n\n/** dateArithmetic Public Instance Methods */\ninterface dateArithmeticStatic {\n /** Add specified amount of units to a provided date and return new date as a result */\n add(date: Date, num: number, unit: Unit): Date;\n\n /** Subtract specified amount of units from a provided date and return new date as a result */\n subtract(date: Date, num: number, unit: Unit): Date;\n\n /** Compare two dates and return true if they are equal */\n eq(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return false if they are equal */\n neq(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is greater than date2 */\n gt(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is greater or equal than date2 */\n gte(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is less than date2 */\n lt(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is less or equal than date2 */\n lte(date: Date, date2: Date): Boolean;\n}\n\ndeclare module 'dateArithmetic' {\n const dateArithmetic: dateArithmeticStatic;\n export = dateArithmetic;\n}\n",
66
"2f300d234e09e9e34c88e884f6466f2d6d0db399:types/date-arithmetic/index.d.ts": "// Type definitions for date-arithmetic v4.1\n// Project: https://github.com/jquense/date-math\n// Definitions by: Sergii Paryzhskyi <https://github.com/HeeL>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\ntype Unit = 'second' | 'minutes' | 'hours' | 'day' | 'week' | 'month' | 'year' | 'decade' | 'century';\n\n/** dateArithmetic Public Instance Methods */\ninterface dateArithmeticStatic {\n /** Add specified amount of units to a provided date and return new date as a result */\n add(date: Date, num: number, unit: Unit): Date;\n\n /** Subtract specified amount of units from a provided date and return new date as a result */\n subtract(date: Date, num: number, unit: Unit): Date;\n\n /** Compare two dates and return true if they are equal */\n eq(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return false if they are equal */\n neq(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is greater than date2 */\n gt(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is greater or equal than date2 */\n gte(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is less than date2 */\n lt(date: Date, date2: Date): Boolean;\n\n /** Compare two dates and return true if date is less or equal than date2 */\n lte(date: Date, date2: Date): Boolean;\n}\n\ndeclare module 'dateArithmetic' {\n const dateArithmetic: dateArithmeticStatic;\n export = dateArithmetic;\n}\n"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"4849e8876b0ab7adc889ccc35b55fde6f0274837:types/react-native-sha1/tsconfig.json": "{\r\n \"compilerOptions\": {\r\n \"module\": \"commonjs\",\r\n \"lib\": [\r\n \"es6\"\r\n ],\r\n \"noImplicitAny\": true,\r\n \"noImplicitThis\": true,\r\n \"strictNullChecks\": true,\r\n \"strictFunctionTypes\": true,\r\n \"baseUrl\": \"../\",\r\n \"typeRoots\": [\r\n \"../\"\r\n ],\r\n \"types\": [],\r\n \"noEmit\": true,\r\n \"target\": \"es6\",\r\n \"forceConsistentCasingInFileNames\": true\r\n },\r\n \"files\": [\r\n \"index.d.ts\",\r\n \"react-native-sha1-test.ts\"\r\n ]\r\n}",
3-
"4849e8876b0ab7adc889ccc35b55fde6f0274837:types/react-native-sha1/tslint.json": "{ \"extends\": \"dtslint/dt.json\" }",
3+
"4849e8876b0ab7adc889ccc35b55fde6f0274837:types/react-native-sha1/tslint.json": "{ \"extends\": \"@definitelytyped/dtslint/dt.json\" }",
44
"4849e8876b0ab7adc889ccc35b55fde6f0274837:types/react-native-sha1/index.d.ts": "// Definitions by: Amir Hossein Shekari <https://github.com/shekari-ah>\r\n\r\n\r\n\r\nexport function sha1(input: string): Promise<string>;"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tsconfig.json": "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictFunctionTypes\": true,\n \"strictNullChecks\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\",\n \"vertx__eventbus-bridge-client.js-tests.ts\"\n ]\n}\n",
3-
"5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tslint.json": "{ \"extends\": \"dtslint/dt.json\" }\n",
3+
"5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tslint.json": "{ \"extends\": \"@definitelytyped/dtslint/dt.json\" }\n",
44
"5337ea17b2407707bead503cd20c9ca29438f5df:package.json": "{}"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tsconfig.json": "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\n \"es6\"\n ],\n \"noImplicitAny\": true,\n \"noImplicitThis\": true,\n \"strictFunctionTypes\": true,\n \"strictNullChecks\": true,\n \"baseUrl\": \"../\",\n \"typeRoots\": [\n \"../\"\n ],\n \"types\": [],\n \"noEmit\": true,\n \"forceConsistentCasingInFileNames\": true\n },\n \"files\": [\n \"index.d.ts\",\n \"vertx__eventbus-bridge-client.js-tests.ts\"\n ]\n}\n",
3-
"5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tslint.json": "{ \"extends\": \"dtslint/dt.json\" }\n",
3+
"5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/tslint.json": "{ \"extends\": \"@definitelytyped/dtslint/dt.json\" }\n",
44
"5337ea17b2407707bead503cd20c9ca29438f5df:types/vertx__eventbus-bridge-client.js/index.d.ts": "// Type definitions for @vertx/eventbus-bridge-client.js 1.0\n// Project: http://vertx.io\n// Definitions by: Chiramet Phong Penglerd <https://github.com/Phong6698>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\ndeclare namespace EventBus {\n type EventBusStatic = new(url: string, options?: any) => EventBus;\n\n interface EventBus {\n url: string;\n options?: EventBusOptions;\n onopen(): void;\n onerror(error: EventBusError): void;\n onclose(): void;\n registerHandler(address: string, headers?: object, callback?: (error: Error, message: any) => void): void;\n unregisterHandler(address: string, headers?: object, callback?: (error: Error, message: any) => void): void;\n send(address: string, message: any, headers?: object, callback?: (error: Error, message: any) => void): void;\n publish(address: string, message: any, headers?: any): void;\n enableReconnect(enable: boolean): void;\n enablePing(enable: boolean): void;\n close(): void;\n }\n\n interface EventBusOptions {\n vertxbus_reconnect_attempts_max: number; // Max reconnect attempts\n vertxbus_reconnect_delay_min: number; // Initial delay (in ms) before first reconnect attempt\n vertxbus_reconnect_delay_max: number; // Max delay (in ms) between reconnect attempts\n vertxbus_reconnect_exponent: number; // Exponential backoff factor\n vertxbus_randomization_factor: number; // Randomization factor between 0 and 1\n }\n\n interface EventBusError {\n body: string;\n type: string;\n }\n}\n\ndeclare var EventBus: EventBus.EventBusStatic;\nexport = EventBus;\n"
55
}

0 commit comments

Comments
 (0)