Skip to content

Commit 1a45ce3

Browse files
authored
Merge pull request #474 from JoshuaKGoldberg/eslint-not-tslint
fix: replace TSLint disables with ESLint
2 parents c7590c5 + 97e562f commit 1a45ce3

File tree

5 files changed

+121
-121
lines changed

5 files changed

+121
-121
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ See [server demo](example) and [browser demo](https://github.com/bcherny/json-sc
8484
| key | type | default | description |
8585
|-|-|-|-|
8686
| additionalProperties | boolean | `true` | Default value for `additionalProperties`, when it is not explicitly set |
87-
| bannerComment | string | `"/* tslint:disable */\n/**\n* This file was automatically generated by json-schema-to-typescript.\n* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n* and run json-schema-to-typescript to regenerate this file.\n*/"` | Disclaimer comment prepended to the top of each generated file |
87+
| bannerComment | string | `"/* eslint-disable */\n/**\n* This file was automatically generated by json-schema-to-typescript.\n* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n* and run json-schema-to-typescript to regenerate this file.\n*/"` | Disclaimer comment prepended to the top of each generated file |
8888
| cwd | string | `process.cwd()` | Root directory for resolving [`$ref`](https://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html)s |
8989
| declareExternallyReferenced | boolean | `true` | Declare external schemas referenced via `$ref`? |
9090
| enableConstEnums | boolean | `true` | Prepend enums with [`const`](https://www.typescriptlang.org/docs/handbook/enums.html#computed-and-constant-members)? |

example/person.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* tslint:disable */
1+
/* eslint-disable */
22
/**
33
* This file was automatically generated by json-schema-to-typescript.
44
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export interface Options {
8181
export const DEFAULT_OPTIONS: Options = {
8282
$refOptions: {},
8383
additionalProperties: true, // TODO: default to empty schema (as per spec) instead
84-
bannerComment: `/* tslint:disable */
84+
bannerComment: `/* eslint-disable */
8585
/**
8686
* This file was automatically generated by json-schema-to-typescript.
8787
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,

0 commit comments

Comments
 (0)