Skip to content

Commit

Permalink
chore: ESLint fixes (#2558)
Browse files Browse the repository at this point in the history
* standardise json formatting

* add file association for schema files

* install eslint packages

* add eslint config

* remove tslint

* eslint autofix

* update eslint rules, eslintignore

* add lint:fix script

* update eslint rules, eslintignore

* add lint:fix script

* add import rules

* add import rules

* update import rules

* reduce excess style rules

* downgrade remaining to warnings

* fix enum values

fixup! fix enum values

* add all missing accessibility modifiers

fixup! add all missing accessibility modifiers

fixup! add all missing accessibility modifiers

* fix nullish errors

* update import rules

* fix all require imports

* fix all imports

* reduce excess style rules

* fix any types

fixup! fix any types

fixup! fix any types

* fix misc errors

* downgrade remaining to warnings

* return types

* fix types errors

* fix json import for test tsconfig

* auto lint fix

* fix lint errors in extension

* fix lint errors in Elixir

* make ref.pushElement public

* fix misc

* fix accidental public in CSharp raw text get

* fix new lint errors
  • Loading branch information
inferrinizzard committed May 12, 2024
1 parent e50d5a0 commit 79b94e5
Show file tree
Hide file tree
Showing 99 changed files with 5,877 additions and 14,046 deletions.
12,076 changes: 1,153 additions & 10,923 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@types/shelljs": "^0.8.15",
"@types/stream-json": "^1.7.3",
"@types/urijs": "^1.19.25",
"@types/wordwrap": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"ajv": "^5.5.2",
Expand Down
6 changes: 4 additions & 2 deletions packages/quicktype-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
},
"dependencies": {
"@glideapps/ts-necessities": "2.2.3",
"@types/urijs": "^1.19.25",
"browser-or-node": "^3.0.0",
"collection-utils": "^1.0.1",
"is-url": "^1.2.4",
"cross-fetch": "^4.0.0",
"is-url": "^1.2.4",
"js-base64": "^3.7.7",
"lodash": "^4.17.21",
"pako": "^1.0.6",
Expand All @@ -29,11 +28,14 @@
},
"devDependencies": {
"@types/browser-or-node": "^1.3.2",
"@types/is-url": "^1.2.32",
"@types/node": "18.19.31",
"@types/pako": "^1.0.0",
"@types/pluralize": "0.0.30",
"@types/readable-stream": "4.0.10",
"@types/unicode-properties": "^1.3.0",
"@types/urijs": "^1.19.25",
"@types/wordwrap": "^1.0.3",
"typescript": "4.9.5"
},
"files": [
Expand Down
3 changes: 2 additions & 1 deletion packages/quicktype-core/src/Annotation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export class AnnotationData {}

export class IssueAnnotationData extends AnnotationData {
constructor(readonly message: string) {
public constructor(public readonly message: string) {
super();
}
}
Expand Down

0 comments on commit 79b94e5

Please sign in to comment.