diff --git a/CHANGELOG.md b/CHANGELOG.md
index e6e760f6db..087efa38cc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@
#### :nail_care: Polish
- Add [`Deno`](https://deno.land/api?s=Deno) to reserved names, so that modules named `Deno` don't clash with the globally exposed `Deno` object. https://github.com/rescript-lang/rescript-compiler/pull/6428
+- Disable ESLint/TSLint on gentype outputs properly. https://github.com/rescript-lang/rescript-compiler/pull/6442
# 11.0.0-rc.4
diff --git a/jscomp/gentype/EmitType.ml b/jscomp/gentype/EmitType.ml
index f2788e978f..919398ce97 100644
--- a/jscomp/gentype/EmitType.ml
+++ b/jscomp/gentype/EmitType.ml
@@ -3,15 +3,15 @@ open GenTypeCommon
let fileHeader ~sourceFile =
let makeHeader ~lines =
match lines with
- | [line] -> "/* " ^ line ^ " */\n"
+ | [line] -> "/* " ^ line ^ " */\n\n"
| _ ->
"/** \n"
^ (lines |> List.map (fun line -> " * " ^ line) |> String.concat "\n")
- ^ "\n */\n"
+ ^ "\n */\n\n"
in
makeHeader
~lines:["TypeScript file generated from " ^ sourceFile ^ " by genType."]
- ^ "/* eslint-disable import/first */\n\n"
+ ^ "/* eslint-disable */\n" ^ "/* tslint:disable */\n"
let interfaceName ~(config : Config.t) name =
match config.exportInterfaces with
@@ -183,8 +183,7 @@ let rec renderType ~(config : Config.t) ?(indent = None) ~typeNameIsInterface
in
let tagField =
case |> labelJSToString
- |> field
- ~name:(Runtime.jsVariantTag ~polymorphic:false ~tag)
+ |> field ~name:(Runtime.jsVariantTag ~polymorphic:false ~tag)
in
match (unboxed, type_) with
| true, type_ ->
@@ -355,11 +354,7 @@ let emitExportType ~(config : Config.t) ~emitters ~nameAs ~opaque ~type_
| true -> "any"
| false -> typeVars |> String.concat " | "
in
- "// tslint:disable-next-line:max-classes-per-file \n"
- ^ (match String.capitalize_ascii resolvedTypeName <> resolvedTypeName with
- | true -> "// tslint:disable-next-line:class-name\n"
- | false -> "")
- ^ docString ^ "export abstract class " ^ resolvedTypeName ^ typeParamsString
+ docString ^ "export abstract class " ^ resolvedTypeName ^ typeParamsString
^ " { protected opaque!: " ^ typeOfOpaqueField
^ " }; /* simulate opaque types */" ^ exportNameAs
|> Emitters.export ~emitters
@@ -367,8 +362,7 @@ let emitExportType ~(config : Config.t) ~emitters ~nameAs ~opaque ~type_
(if isInterface && config.exportInterfaces then
docString ^ "export interface " ^ resolvedTypeName ^ typeParamsString ^ " "
else
- "// tslint:disable-next-line:interface-over-type-literal\n" ^ docString
- ^ "export type " ^ resolvedTypeName ^ typeParamsString ^ " = ")
+ docString ^ "export type " ^ resolvedTypeName ^ typeParamsString ^ " = ")
^ (match type_ with
| _ -> type_ |> typeToString ~config ~typeNameIsInterface)
^ ";" ^ exportNameAs
@@ -386,11 +380,6 @@ let emitImportValueAsEarly ~emitters ~name ~nameAs importPath =
let emitRequire ~importedValueOrComponent ~early ~emitters ~(config : Config.t)
~moduleName importPath =
- let commentBeforeRequire =
- match importedValueOrComponent with
- | true -> "// tslint:disable-next-line:no-var-requires\n"
- | false -> "// @ts-ignore: Implicit any on import\n"
- in
let importPath =
match config.moduleResolution with
| Node ->
@@ -402,7 +391,7 @@ let emitRequire ~importedValueOrComponent ~early ~emitters ~(config : Config.t)
| ES6 when not importedValueOrComponent ->
let moduleNameString = ModuleName.toString moduleName in
(let es6ImportModule = moduleNameString ^ "__Es6Import" in
- commentBeforeRequire ^ "import * as " ^ es6ImportModule ^ " from '"
+ "import * as " ^ es6ImportModule ^ " from '"
^ (importPath |> ImportPath.emit)
^ "';\n" ^ "const " ^ moduleNameString ^ ": any = " ^ es6ImportModule ^ ";")
|> (match early with
@@ -410,7 +399,7 @@ let emitRequire ~importedValueOrComponent ~early ~emitters ~(config : Config.t)
| false -> Emitters.require)
~emitters
| _ ->
- commentBeforeRequire ^ "const "
+ "const "
^ ModuleName.toString moduleName
^ " = require('"
^ (importPath |> ImportPath.emit)
diff --git a/jscomp/gentype_tests/typescript-react-example/.eslintrc.json b/jscomp/gentype_tests/typescript-react-example/.eslintrc.json
index fdff2a872b..d0b868ecfa 100644
--- a/jscomp/gentype_tests/typescript-react-example/.eslintrc.json
+++ b/jscomp/gentype_tests/typescript-react-example/.eslintrc.json
@@ -1,9 +1,10 @@
{
"extends": [
- "react-app",
+ "eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
- "ignorePatterns": ["src/**/*.bs.js", "src/**/*.tsx", "src/MyMath.ts"]
-}
\ No newline at end of file
+ "ignorePatterns": ["src/**/*.bs.js"],
+ "root": true
+}
diff --git a/jscomp/gentype_tests/typescript-react-example/Makefile b/jscomp/gentype_tests/typescript-react-example/Makefile
index ebd7a84182..284dbe2eae 100644
--- a/jscomp/gentype_tests/typescript-react-example/Makefile
+++ b/jscomp/gentype_tests/typescript-react-example/Makefile
@@ -4,6 +4,7 @@ test:
npm install
npm run build
npm run tsc
+ npm run lint
clean:
rm -rf node_modules lib src/*.bs.js src/*.gen.tsx
diff --git a/jscomp/gentype_tests/typescript-react-example/package-lock.json b/jscomp/gentype_tests/typescript-react-example/package-lock.json
index 7cdf52a5ad..29b93c0ee4 100644
--- a/jscomp/gentype_tests/typescript-react-example/package-lock.json
+++ b/jscomp/gentype_tests/typescript-react-example/package-lock.json
@@ -1,7 +1,7 @@
{
"name": "typescript-react-example",
"version": "0.1.0",
- "lockfileVersion": 2,
+ "lockfileVersion": 3,
"requires": true,
"packages": {
"": {
@@ -15,28 +15,144 @@
"devDependencies": {
"@types/node": "^18.15.12",
"@types/react-dom": "^18.0.11",
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
+ "@typescript-eslint/parser": "^6.8.0",
+ "eslint": "^8.51.0",
"rescript": "file:../../..",
- "typescript": "^5.0.4"
+ "typescript": "^5.2.2"
}
},
- "../../..": {
- "name": "rescript",
- "version": "11.0.0-rc.5",
+ "node_modules/@aashutoshrathi/word-wrap": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
+ "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==",
"dev": true,
- "hasInstallScript": true,
- "license": "SEE LICENSE IN LICENSE",
- "bin": {
- "bsc": "bsc",
- "bstracing": "lib/bstracing",
- "rescript": "rescript"
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
+ "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
+ "dev": true,
+ "dependencies": {
+ "eslint-visitor-keys": "^3.3.0"
},
- "devDependencies": {
- "mocha": "10.1.0",
- "nyc": "15.0.0",
- "prettier": "2.7.1"
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.9.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.1.tgz",
+ "integrity": "sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==",
+ "dev": true,
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz",
+ "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==",
+ "dev": true,
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.3.2",
+ "espree": "^9.6.0",
+ "globals": "^13.19.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.0",
+ "minimatch": "^3.1.2",
+ "strip-json-comments": "^3.1.1"
},
"engines": {
- "node": ">=10"
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "8.51.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz",
+ "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==",
+ "dev": true,
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@humanwhocodes/config-array": {
+ "version": "0.11.11",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz",
+ "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==",
+ "dev": true,
+ "dependencies": {
+ "@humanwhocodes/object-schema": "^1.2.1",
+ "debug": "^4.1.1",
+ "minimatch": "^3.0.5"
+ },
+ "engines": {
+ "node": ">=10.10.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/object-schema": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
+ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
+ "dev": true
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
}
},
"node_modules/@rescript/react": {
@@ -48,22 +164,28 @@
"react-dom": ">=18.0.0"
}
},
+ "node_modules/@types/json-schema": {
+ "version": "7.0.14",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz",
+ "integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw==",
+ "dev": true
+ },
"node_modules/@types/node": {
- "version": "18.15.12",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.12.tgz",
- "integrity": "sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg==",
+ "version": "18.18.6",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.6.tgz",
+ "integrity": "sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w==",
"dev": true
},
"node_modules/@types/prop-types": {
- "version": "15.7.5",
- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
- "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
+ "version": "15.7.9",
+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.9.tgz",
+ "integrity": "sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g==",
"dev": true
},
"node_modules/@types/react": {
- "version": "16.14.30",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.30.tgz",
- "integrity": "sha512-tG+xGtDDSuIl1l63mN0LnaROAc99knkYyN4YTheE80iPzYvSy0U8LVie+OBZkrgjVrpkQV6bMCkSphPBnVNk6g==",
+ "version": "18.2.29",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.29.tgz",
+ "integrity": "sha512-Z+ZrIRocWtdD70j45izShRwDuiB4JZqDegqMFW/I8aG5DxxLKOzVNoq62UIO82v9bdgi+DO1jvsb9sTEZUSm+Q==",
"dev": true,
"dependencies": {
"@types/prop-types": "*",
@@ -72,193 +194,1485 @@
}
},
"node_modules/@types/react-dom": {
- "version": "18.0.11",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.11.tgz",
- "integrity": "sha512-O38bPbI2CWtgw/OoQoY+BRelw7uysmXbWvw3nLWO21H1HSh+GOlqPuXshJfjmpNlKiiSDG9cc1JZAaMmVdcTlw==",
+ "version": "18.2.14",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.14.tgz",
+ "integrity": "sha512-V835xgdSVmyQmI1KLV2BEIUgqEuinxp9O4G6g3FqO/SqLac049E53aysv0oEFD2kHfejeKU+ZqL2bcFWj9gLAQ==",
"dev": true,
"dependencies": {
"@types/react": "*"
}
},
"node_modules/@types/scheduler": {
- "version": "0.16.2",
- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz",
- "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
+ "version": "0.16.5",
+ "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.5.tgz",
+ "integrity": "sha512-s/FPdYRmZR8SjLWGMCuax7r3qCWQw9QKHzXVukAuuIJkXkDRwp+Pu5LMIVFi0Fxbav35WURicYr8u1QsoybnQw==",
"dev": true
},
- "node_modules/csstype": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
- "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
+ "node_modules/@types/semver": {
+ "version": "7.5.4",
+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz",
+ "integrity": "sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==",
"dev": true
},
- "node_modules/js-tokens": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.8.0.tgz",
+ "integrity": "sha512-GosF4238Tkes2SHPQ1i8f6rMtG6zlKwMEB0abqSJ3Npvos+doIlc/ATG+vX1G9coDF3Ex78zM3heXHLyWEwLUw==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.5.1",
+ "@typescript-eslint/scope-manager": "6.8.0",
+ "@typescript-eslint/type-utils": "6.8.0",
+ "@typescript-eslint/utils": "6.8.0",
+ "@typescript-eslint/visitor-keys": "6.8.0",
+ "debug": "^4.3.4",
+ "graphemer": "^1.4.0",
+ "ignore": "^5.2.4",
+ "natural-compare": "^1.4.0",
+ "semver": "^7.5.4",
+ "ts-api-utils": "^1.0.1"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha",
+ "eslint": "^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
},
- "node_modules/loose-envify": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "node_modules/@typescript-eslint/parser": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.8.0.tgz",
+ "integrity": "sha512-5tNs6Bw0j6BdWuP8Fx+VH4G9fEPDxnVI7yH1IAPkQH5RUtvKwRoqdecAPdQXv4rSOADAaz1LFBZvZG7VbXivSg==",
+ "dev": true,
"dependencies": {
- "js-tokens": "^3.0.0 || ^4.0.0"
+ "@typescript-eslint/scope-manager": "6.8.0",
+ "@typescript-eslint/types": "6.8.0",
+ "@typescript-eslint/typescript-estree": "6.8.0",
+ "@typescript-eslint/visitor-keys": "6.8.0",
+ "debug": "^4.3.4"
},
- "bin": {
- "loose-envify": "cli.js"
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/react": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
- "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.8.0.tgz",
+ "integrity": "sha512-xe0HNBVwCph7rak+ZHcFD6A+q50SMsFwcmfdjs9Kz4qDh5hWhaPhFjRs/SODEhroBI5Ruyvyz9LfwUJ624O40g==",
+ "dev": true,
"dependencies": {
- "loose-envify": "^1.1.0"
+ "@typescript-eslint/types": "6.8.0",
+ "@typescript-eslint/visitor-keys": "6.8.0"
},
"engines": {
- "node": ">=0.10.0"
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
}
},
- "node_modules/react-dom": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
- "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.8.0.tgz",
+ "integrity": "sha512-RYOJdlkTJIXW7GSldUIHqc/Hkto8E+fZN96dMIFhuTJcQwdRoGN2rEWA8U6oXbLo0qufH7NPElUb+MceHtz54g==",
+ "dev": true,
"dependencies": {
- "loose-envify": "^1.1.0",
- "scheduler": "^0.23.0"
+ "@typescript-eslint/typescript-estree": "6.8.0",
+ "@typescript-eslint/utils": "6.8.0",
+ "debug": "^4.3.4",
+ "ts-api-utils": "^1.0.1"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
},
"peerDependencies": {
- "react": "^18.2.0"
+ "eslint": "^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/rescript": {
- "resolved": "../../..",
- "link": true
+ "node_modules/@typescript-eslint/types": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.8.0.tgz",
+ "integrity": "sha512-p5qOxSum7W3k+llc7owEStXlGmSl8FcGvhYt8Vjy7FqEnmkCVlM3P57XQEGj58oqaBWDQXbJDZxwUWMS/EAPNQ==",
+ "dev": true,
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
},
- "node_modules/scheduler": {
- "version": "0.23.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
- "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.8.0.tgz",
+ "integrity": "sha512-ISgV0lQ8XgW+mvv5My/+iTUdRmGspducmQcDw5JxznasXNnZn3SKNrTRuMsEXv+V/O+Lw9AGcQCfVaOPCAk/Zg==",
+ "dev": true,
"dependencies": {
- "loose-envify": "^1.1.0"
+ "@typescript-eslint/types": "6.8.0",
+ "@typescript-eslint/visitor-keys": "6.8.0",
+ "debug": "^4.3.4",
+ "globby": "^11.1.0",
+ "is-glob": "^4.0.3",
+ "semver": "^7.5.4",
+ "ts-api-utils": "^1.0.1"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
}
},
- "node_modules/typescript": {
- "version": "5.0.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
- "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
+ "node_modules/@typescript-eslint/utils": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.8.0.tgz",
+ "integrity": "sha512-dKs1itdE2qFG4jr0dlYLQVppqTE+Itt7GmIf/vX6CSvsW+3ov8PbWauVKyyfNngokhIO9sKZeRGCUo1+N7U98Q==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.4.0",
+ "@types/json-schema": "^7.0.12",
+ "@types/semver": "^7.5.0",
+ "@typescript-eslint/scope-manager": "6.8.0",
+ "@typescript-eslint/types": "6.8.0",
+ "@typescript-eslint/typescript-estree": "6.8.0",
+ "semver": "^7.5.4"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "6.8.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.8.0.tgz",
+ "integrity": "sha512-oqAnbA7c+pgOhW2OhGvxm0t1BULX5peQI/rLsNDpGM78EebV3C9IGbX5HNZabuZ6UQrYveCLjKo8Iy/lLlBkkg==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "6.8.0",
+ "eslint-visitor-keys": "^3.4.1"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.10.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",
+ "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
"dev": true,
"bin": {
- "tsc": "bin/tsc",
- "tsserver": "bin/tsserver"
+ "acorn": "bin/acorn"
},
"engines": {
- "node": ">=12.20"
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.12.6",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
+ "dev": true,
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
- }
- },
- "dependencies": {
- "@rescript/react": {
- "version": "0.11.0",
- "resolved": "https://registry.npmjs.org/@rescript/react/-/react-0.11.0.tgz",
- "integrity": "sha512-RzoAO+3cJwXE2D7yodMo4tBO2EkeDYCN/I/Sj/yRweI3S1CY1ZBOF/GMcVtjeIurJJt7KMveqQXTaRrqoGZBBg==",
- "requires": {}
},
- "@types/node": {
- "version": "18.15.12",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.12.tgz",
- "integrity": "sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg==",
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
"dev": true
},
- "@types/prop-types": {
- "version": "15.7.5",
- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
- "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
+ "node_modules/array-union": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true
},
- "@types/react": {
- "version": "16.14.30",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.30.tgz",
- "integrity": "sha512-tG+xGtDDSuIl1l63mN0LnaROAc99knkYyN4YTheE80iPzYvSy0U8LVie+OBZkrgjVrpkQV6bMCkSphPBnVNk6g==",
+ "node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
- "requires": {
- "@types/prop-types": "*",
- "@types/scheduler": "*",
- "csstype": "^3.0.2"
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
}
},
- "@types/react-dom": {
- "version": "18.0.11",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.11.tgz",
- "integrity": "sha512-O38bPbI2CWtgw/OoQoY+BRelw7uysmXbWvw3nLWO21H1HSh+GOlqPuXshJfjmpNlKiiSDG9cc1JZAaMmVdcTlw==",
+ "node_modules/braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
- "requires": {
- "@types/react": "*"
+ "dependencies": {
+ "fill-range": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
}
},
- "@types/scheduler": {
- "version": "0.16.2",
- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz",
- "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
- "csstype": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
- "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
"dev": true
},
- "js-tokens": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+ "node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
},
- "loose-envify": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
- "requires": {
- "js-tokens": "^3.0.0 || ^4.0.0"
+ "node_modules/csstype": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
+ "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==",
+ "dev": true
+ },
+ "node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dev": true,
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
}
},
- "react": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
- "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
- "requires": {
- "loose-envify": "^1.1.0"
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true
+ },
+ "node_modules/dir-glob": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
+ "dev": true,
+ "dependencies": {
+ "path-type": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
}
},
- "react-dom": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
- "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
- "requires": {
- "loose-envify": "^1.1.0",
- "scheduler": "^0.23.0"
+ "node_modules/doctrine": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
+ "dev": true,
+ "dependencies": {
+ "esutils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
}
},
- "rescript": {
- "version": "file:../../..",
- "requires": {
- "mocha": "10.1.0",
- "nyc": "15.0.0",
- "prettier": "2.7.1"
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
- "scheduler": {
- "version": "0.23.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
- "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
- "requires": {
- "loose-envify": "^1.1.0"
+ "node_modules/eslint": {
+ "version": "8.51.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz",
+ "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.6.1",
+ "@eslint/eslintrc": "^2.1.2",
+ "@eslint/js": "8.51.0",
+ "@humanwhocodes/config-array": "^0.11.11",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@nodelib/fs.walk": "^1.2.8",
+ "ajv": "^6.12.4",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.2",
+ "debug": "^4.3.2",
+ "doctrine": "^3.0.0",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^7.2.2",
+ "eslint-visitor-keys": "^3.4.3",
+ "espree": "^9.6.1",
+ "esquery": "^1.4.2",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^6.0.1",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "globals": "^13.19.0",
+ "graphemer": "^1.4.0",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "is-path-inside": "^3.0.3",
+ "js-yaml": "^4.1.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.4.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.2",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3",
+ "strip-ansi": "^6.0.1",
+ "text-table": "^0.2.0"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
}
},
- "typescript": {
- "version": "5.0.4",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
- "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
- "dev": true
+ "node_modules/eslint-scope": {
+ "version": "7.2.2",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
+ "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
+ "dev": true,
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "9.6.1",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
+ "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
+ "dev": true,
+ "dependencies": {
+ "acorn": "^8.9.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^3.4.1"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz",
+ "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==",
+ "dev": true,
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
+ "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true
+ },
+ "node_modules/fastq": {
+ "version": "1.15.0",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
+ "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
+ "dev": true,
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
+ "dev": true,
+ "dependencies": {
+ "flat-cache": "^3.0.4"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz",
+ "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==",
+ "dev": true,
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.3",
+ "rimraf": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.2.9",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz",
+ "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==",
+ "dev": true
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "dev": true
+ },
+ "node_modules/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "dev": true,
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.1.1",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "13.23.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz",
+ "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==",
+ "dev": true,
+ "dependencies": {
+ "type-fest": "^0.20.2"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/globby": {
+ "version": "11.1.0",
+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
+ "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
+ "dev": true,
+ "dependencies": {
+ "array-union": "^2.1.0",
+ "dir-glob": "^3.0.1",
+ "fast-glob": "^3.2.9",
+ "ignore": "^5.2.0",
+ "merge2": "^1.4.1",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/graphemer": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
+ "dev": true
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.2.4",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
+ "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
+ "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
+ "dev": true,
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "dev": true,
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-path-inside": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
+ "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "dev": true,
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
+ "dev": true,
+ "dependencies": {
+ "braces": "^3.0.2",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "dev": true,
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.3",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz",
+ "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==",
+ "dev": true,
+ "dependencies": {
+ "@aashutoshrathi/word-wrap": "^1.2.3",
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true,
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
+ "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
+ "node_modules/react": {
+ "version": "18.2.0",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
+ "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "18.2.0",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
+ "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.0"
+ },
+ "peerDependencies": {
+ "react": "^18.2.0"
+ }
+ },
+ "node_modules/rescript": {
+ "version": "11.0.0-rc.5",
+ "resolved": "file:../../..",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "SEE LICENSE IN LICENSE",
+ "bin": {
+ "bsc": "bsc",
+ "bstracing": "lib/bstracing",
+ "rescript": "rescript"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
+ "dev": true,
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+ "dev": true,
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.23.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
+ "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.5.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
+ "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
+ "dev": true,
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/slash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/text-table": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
+ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
+ "dev": true
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/ts-api-utils": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz",
+ "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==",
+ "dev": true,
+ "engines": {
+ "node": ">=16.13.0"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.2.0"
+ }
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/type-fest": {
+ "version": "0.20.2",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.2.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
+ "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
+ "dev": true,
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "dev": true
+ },
+ "node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
}
}
}
diff --git a/jscomp/gentype_tests/typescript-react-example/package.json b/jscomp/gentype_tests/typescript-react-example/package.json
index 8ff3dda051..2bd24b2215 100644
--- a/jscomp/gentype_tests/typescript-react-example/package.json
+++ b/jscomp/gentype_tests/typescript-react-example/package.json
@@ -2,21 +2,25 @@
"name": "typescript-react-example",
"version": "0.1.0",
"private": true,
- "dependencies": {
- "@rescript/react": "^0.11.0",
- "react": "^18.2.0",
- "react-dom": "^18.2.0"
- },
"scripts": {
"start": "rescript build -w",
"build": "rescript",
"clean": "rescript clean",
- "tsc": "tsc -p tsconfig.json"
+ "tsc": "tsc -p tsconfig.json",
+ "lint": "eslint src"
+ },
+ "dependencies": {
+ "@rescript/react": "^0.11.0",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.15.12",
"@types/react-dom": "^18.0.11",
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
+ "@typescript-eslint/parser": "^6.8.0",
+ "eslint": "^8.51.0",
"rescript": "file:../../..",
- "typescript": "^5.0.4"
+ "typescript": "^5.2.2"
}
}
diff --git a/jscomp/gentype_tests/typescript-react-example/src/App.tsx b/jscomp/gentype_tests/typescript-react-example/src/App.tsx
index 5ffa6f9f93..3169d1d329 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/App.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/App.tsx
@@ -1,8 +1,6 @@
import * as React from "react";
import "./App.css";
-
-// tslint:disable-next-line:interface-name
export interface Props {
name: string;
count?: number;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx
index 88f99dbf1d..55660702c9 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/AutoAnnotate.gen.tsx
@@ -1,23 +1,18 @@
/* TypeScript file generated from AutoAnnotate.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type variant = { TAG: "R"; _0: number };
-// tslint:disable-next-line:interface-over-type-literal
export type record = { readonly variant: variant };
-// tslint:disable-next-line:interface-over-type-literal
export type r2 = { readonly r2: number };
-// tslint:disable-next-line:interface-over-type-literal
export type r3 = { readonly r3: number };
-// tslint:disable-next-line:interface-over-type-literal
export type r4 = { readonly r4: number };
-// tslint:disable-next-line:interface-over-type-literal
export type annotatedVariant =
{ TAG: "R2"; _0: r2; _1: r3 }
| { TAG: "R4"; _0: r4 };
diff --git a/jscomp/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx
index 776e9a8f3a..3a734499c9 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from BucklescriptAnnotations.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type someMutableFields = {
mutable0: string;
readonly immutable: number;
@@ -10,7 +10,6 @@ export type someMutableFields = {
mutable2: string
};
-// tslint:disable-next-line:interface-over-type-literal
export type someMethods = {
readonly send: (_1:string) => void;
readonly on: (_1:string, _2:((_1:number) => void)) => void;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Comments.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Comments.gen.tsx
index 5d3f75e664..d1291b9059 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Comments.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Comments.gen.tsx
@@ -1,21 +1,18 @@
/* TypeScript file generated from Comments.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as CommentsBS__Es6Import from './Comments.bs';
const CommentsBS: any = CommentsBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type DecideSubject_payload = {
/** A hint to use as a guide when thinking of your poem. */
readonly hint: string };
-// tslint:disable-next-line:max-classes-per-file
/** The input used to generate the prompt and system prompt. */
export abstract class DecideSubject_input { protected opaque!: any }; /* simulate opaque types */
-// tslint:disable-next-line:interface-over-type-literal
/** The output from evaluating the llm prompt */
export type DecideSubject_output = {
/** The text of the poem. */
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Core.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Core.gen.tsx
index 17b7dc2685..c90f845827 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Core.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Core.gen.tsx
@@ -1,6 +1,7 @@
/* TypeScript file generated from Core.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import {someFunWithNullThenOptionalArgs as someFunWithNullThenOptionalArgsNotChecked} from './CoreTS';
@@ -18,16 +19,12 @@ export const someFunWithNullUndefinedArgTypeChecked: (_1:(null | undefined | str
// Export 'someFunWithNullUndefinedArg' early to allow circular import from the '.bs.js' file.
export const someFunWithNullUndefinedArg: unknown = someFunWithNullUndefinedArgTypeChecked as (_1:(null | undefined | string), _2:number) => string;
-// tslint:disable-next-line:no-var-requires
const CoreBS = require('./Core.bs');
-// tslint:disable-next-line:interface-over-type-literal
export type variant = "A" | { TAG: "B"; _0: string };
-// tslint:disable-next-line:interface-over-type-literal
export type t1 = { readonly x?: string };
-// tslint:disable-next-line:interface-over-type-literal
export type t2 = { readonly x: (undefined | string) };
export const null0: (x:(null | number)) => (null | number) = CoreBS.null0;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx
index 8b26dec8a1..3385aed5d6 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Docstrings.gen.tsx
@@ -1,12 +1,11 @@
/* TypeScript file generated from Docstrings.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as DocstringsBS__Es6Import from './Docstrings.bs';
const DocstringsBS: any = DocstringsBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type t = "A" | "B";
/** hello */
diff --git a/jscomp/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx
index 0c8dc66e78..3546cc60e0 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/EmitModuleIfNoConversion.gen.tsx
@@ -1,12 +1,11 @@
/* TypeScript file generated from EmitModuleIfNoConversion.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as EmitModuleIfNoConversionBS__Es6Import from './EmitModuleIfNoConversion.bs';
const EmitModuleIfNoConversionBS: any = EmitModuleIfNoConversionBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type t = "A" | { TAG: "B"; readonly name: string };
export const X_foo: (t:t) => void = EmitModuleIfNoConversionBS.X.foo;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx
index 127a44dd7d..9b5bc42b59 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/ExportWithRename.gen.tsx
@@ -1,14 +1,13 @@
/* TypeScript file generated from ExportWithRename.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import * as React from 'react';
-// @ts-ignore: Implicit any on import
import * as ExportWithRenameBS__Es6Import from './ExportWithRename.bs';
const ExportWithRenameBS: any = ExportWithRenameBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type Props = { readonly s: string };
export const make: React.ComponentType<{ readonly s: string }> = ExportWithRenameBS.ExportWithRename;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx
index c77b92708a..e74bca9e88 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/FirstClassModules.gen.tsx
@@ -1,18 +1,15 @@
/* TypeScript file generated from FirstClassModules.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as FirstClassModulesBS__Es6Import from './FirstClassModules.bs';
const FirstClassModulesBS: any = FirstClassModulesBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type MT_t = number;
-// tslint:disable-next-line:interface-over-type-literal
export type MT_InnerModule3_inner = number;
-// tslint:disable-next-line:interface-over-type-literal
export type firstClassModule = {
readonly x: number;
readonly EmptyInnerModule: {
diff --git a/jscomp/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx
index 3e3ba806f2..6812f915cf 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/FirstClassModulesInterface.gen.tsx
@@ -1,15 +1,13 @@
/* TypeScript file generated from FirstClassModulesInterface.resi by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as FirstClassModulesInterfaceBS__Es6Import from './FirstClassModulesInterface.bs';
const FirstClassModulesInterfaceBS: any = FirstClassModulesInterfaceBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type record = { readonly x: number; readonly y: string };
-// tslint:disable-next-line:interface-over-type-literal
export type firstClassModule = { readonly x: number };
export const MT_x: number = FirstClassModulesInterfaceBS.MT.x;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/GADT.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/GADT.gen.tsx
index 8b31a0fa82..b6e29a5c55 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/GADT.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/GADT.gen.tsx
@@ -1,11 +1,8 @@
/* TypeScript file generated from GADT.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:max-classes-per-file
-// tslint:disable-next-line:class-name
export abstract class t { protected opaque!: any }; /* simulate opaque types */
-// tslint:disable-next-line:max-classes-per-file
-// tslint:disable-next-line:class-name
export abstract class tt { protected opaque!: any }; /* simulate opaque types */
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Hooks.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Hooks.gen.tsx
index 9bf99f853c..48c26b8da9 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Hooks.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Hooks.gen.tsx
@@ -1,79 +1,63 @@
/* TypeScript file generated from Hooks.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import * as React from 'react';
-// @ts-ignore: Implicit any on import
import * as HooksBS__Es6Import from './Hooks.bs';
const HooksBS: any = HooksBS__Es6Import;
import type {TypedArray2_Uint8Array_t as Js_TypedArray2_Uint8Array_t} from '../src/shims/Js.shim';
-// tslint:disable-next-line:interface-over-type-literal
export type vehicle = { readonly name: string };
-// tslint:disable-next-line:interface-over-type-literal
export type cb = (_to:vehicle) => void;
-// tslint:disable-next-line:interface-over-type-literal
export type r = { readonly x: string };
-// tslint:disable-next-line:interface-over-type-literal
export type callback = (_1:input) => output;
-// tslint:disable-next-line:interface-over-type-literal
export type testReactContext = React.Context;
-// tslint:disable-next-line:interface-over-type-literal
export type testReactRef = { current: (null | number) };
-// tslint:disable-next-line:interface-over-type-literal
export type testDomRef = React.Ref;
-// tslint:disable-next-line:interface-over-type-literal
export type testDomRef2 = React.Ref;
-// tslint:disable-next-line:interface-over-type-literal
export type Props = { readonly vehicle: vehicle };
export const $$default: React.ComponentType<{ readonly vehicle: vehicle }> = HooksBS.default;
export default $$default;
-// tslint:disable-next-line:interface-over-type-literal
export type Another_anotherComponent_Props = { readonly callback: () => void; readonly vehicle: vehicle };
export const Another_anotherComponent: React.ComponentType<{ readonly callback: () => void; readonly vehicle: vehicle }> = HooksBS.Another.anotherComponent;
-// tslint:disable-next-line:interface-over-type-literal
export type Inner_make_Props = { readonly vehicle: vehicle };
export const Inner_make: React.ComponentType<{ readonly vehicle: vehicle }> = HooksBS.Inner.make;
-// tslint:disable-next-line:interface-over-type-literal
export type Inner_Another_anotherComponent_Props = { readonly vehicle: vehicle };
export const Inner_Another_anotherComponent: React.ComponentType<{ readonly vehicle: vehicle }> = HooksBS.Inner.Another.anotherComponent;
-// tslint:disable-next-line:interface-over-type-literal
export type Inner_Inner2_make_Props = { readonly vehicle: vehicle };
export const Inner_Inner2_make: React.ComponentType<{ readonly vehicle: vehicle }> = HooksBS.Inner.Inner2.make;
-// tslint:disable-next-line:interface-over-type-literal
export type Inner_Inner2_Another_anotherComponent_Props = { readonly vehicle: vehicle };
export const Inner_Inner2_Another_anotherComponent: React.ComponentType<{ readonly vehicle: vehicle }> = HooksBS.Inner.Inner2.Another.anotherComponent;
-// tslint:disable-next-line:interface-over-type-literal
export type NoProps_make_Props = {};
export const NoProps_make: React.ComponentType<{}> = HooksBS.NoProps.make;
export const functionWithRenamedArgs: (_to:vehicle, _Type:vehicle, cb:cb) => string = HooksBS.functionWithRenamedArgs;
-// tslint:disable-next-line:interface-over-type-literal
export type WithRename_componentWithRenamedArgs_Props = {
readonly _Type: vehicle;
readonly _to: vehicle;
@@ -88,37 +72,30 @@ export const WithRename_componentWithRenamedArgs: React.ComponentType<{
export const WithRef_makeWithRef: (_1:{ readonly vehicle: vehicle }, _2:(null | undefined | any)) => JSX.Element = HooksBS.WithRef.makeWithRef;
-// tslint:disable-next-line:interface-over-type-literal
export type testForwardRef_Props = { readonly vehicle: vehicle };
export const testForwardRef: React.ComponentType<{ readonly vehicle: vehicle }> = HooksBS.testForwardRef;
-// tslint:disable-next-line:interface-over-type-literal
export type ForwardRef_input_Props = { readonly r: r };
export const ForwardRef_input: React.ComponentType<{ readonly r: r }> = HooksBS.ForwardRef.input;
-// tslint:disable-next-line:interface-over-type-literal
export type Poly_polymorphicComponent_Props = { readonly p: [vehicle, T1] };
export const Poly_polymorphicComponent: React.ComponentType<{ readonly p: [vehicle, any] }> = HooksBS.Poly.polymorphicComponent;
-// tslint:disable-next-line:interface-over-type-literal
export type Fun_functionReturningReactElement_Props = { readonly name: string };
export const Fun_functionReturningReactElement: React.ComponentType<{ readonly name: string }> = HooksBS.Fun.functionReturningReactElement;
-// tslint:disable-next-line:interface-over-type-literal
export type RenderPropRequiresConversion_make_Props = { readonly renderVehicle: React.ComponentType<{ readonly number: number; readonly vehicle: vehicle }> };
export const RenderPropRequiresConversion_make: React.ComponentType<{ readonly renderVehicle: React.ComponentType<{ readonly number: number; readonly vehicle: vehicle }> }> = HooksBS.RenderPropRequiresConversion.make;
-// tslint:disable-next-line:interface-over-type-literal
export type WithChildren_aComponentWithChildren_Props = { readonly children: React.ReactNode; readonly vehicle: vehicle };
export const WithChildren_aComponentWithChildren: React.ComponentType<{ readonly children: React.ReactNode; readonly vehicle: vehicle }> = HooksBS.WithChildren.aComponentWithChildren;
-// tslint:disable-next-line:interface-over-type-literal
export type DD_make_Props = { readonly array: Js_TypedArray2_Uint8Array_t; readonly name: string };
export const DD_make: React.ComponentType<{ readonly array: Js_TypedArray2_Uint8Array_t; readonly name: string }> = HooksBS.DD.make;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx
index ed21c4c9b3..e1da44fd51 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/IgnoreInterface.gen.tsx
@@ -1,6 +1,6 @@
/* TypeScript file generated from IgnoreInterface.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type t = number;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx
index 53527ec0de..abe6a7218d 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/ImportHookDefault.gen.tsx
@@ -1,6 +1,7 @@
/* TypeScript file generated from ImportHookDefault.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import {default as makeNotChecked} from './hookExample';
@@ -36,7 +37,6 @@ export const $$default: unknown = defaultTypeChecked as React.ComponentType<{
import type {renderMe as ImportHooks_renderMe} from './ImportHooks.gen';
-// tslint:disable-next-line:interface-over-type-literal
export type person = { readonly name: string; readonly age: number };
export default $$default;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx
index a16f0b9bbe..6324c0c90e 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/ImportHooks.gen.tsx
@@ -1,6 +1,7 @@
/* TypeScript file generated from ImportHooks.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import {makeRenamed as makeRenamedNotChecked} from './hookExample';
@@ -28,8 +29,6 @@ export const fooTypeChecked: (person:person) => string = fooNotChecked;
// Export 'foo' early to allow circular import from the '.bs.js' file.
export const foo: unknown = fooTypeChecked as (person:person) => string;
-// tslint:disable-next-line:interface-over-type-literal
export type person = { readonly name: string; readonly age: number };
-// tslint:disable-next-line:interface-over-type-literal
export type renderMe = React.ComponentType<{ readonly randomString: string; readonly poly: a }>;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx
index be5656abba..b5a81b2697 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/ImportIndex.gen.tsx
@@ -1,6 +1,7 @@
/* TypeScript file generated from ImportIndex.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import {default as defaultNotChecked} from './';
diff --git a/jscomp/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx
index ea763fd2b5..a68ca98915 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/ImportJsValue.gen.tsx
@@ -1,6 +1,7 @@
/* TypeScript file generated from ImportJsValue.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import {round as roundNotChecked} from './MyMath';
@@ -74,7 +75,6 @@ export const defaultTypeChecked: number = defaultNotChecked;
// Export '$$default' early to allow circular import from the '.bs.js' file.
export const $$default: unknown = defaultTypeChecked as number;
-// tslint:disable-next-line:no-var-requires
const ImportJsValueBS = require('./ImportJsValue.bs');
import type {AbsoluteValue as $$AbsoluteValue_t} from './MyMath';
@@ -89,33 +89,24 @@ import type {polyType as $$polyType} from './MyMath';
import type {stringFunction as $$stringFunction} from './MyMath';
-// tslint:disable-next-line:interface-over-type-literal
export type point = { readonly x: number; readonly y: (undefined | number) };
-// tslint:disable-next-line:interface-over-type-literal
export type numberOrString = $$numberOrString;
-// tslint:disable-next-line:interface-over-type-literal
export type AbsoluteValue_t = $$AbsoluteValue_t;
-// tslint:disable-next-line:interface-over-type-literal
export type stringFunction = $$stringFunction;
-// tslint:disable-next-line:interface-over-type-literal
export type color = "tomato" | "gray";
-// tslint:disable-next-line:interface-over-type-literal
export type variant =
{ TAG: "I"; _0: number }
| { TAG: "S"; _0: string };
-// tslint:disable-next-line:interface-over-type-literal
export type num = $$num;
-// tslint:disable-next-line:interface-over-type-literal
export type myNum = $$myNum;
-// tslint:disable-next-line:interface-over-type-literal
export type polyType = $$polyType;
export const roundedNumber: number = ImportJsValueBS.roundedNumber;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Inherits.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Inherits.gen.tsx
index 291711186f..29faeb762f 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Inherits.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Inherits.gen.tsx
@@ -1,12 +1,10 @@
/* TypeScript file generated from Inherits.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type red = "Ruby" | "Redwood" | "Rust";
-// tslint:disable-next-line:interface-over-type-literal
export type blue = "Sapphire" | "Neon" | "Navy";
-// tslint:disable-next-line:interface-over-type-literal
export type color = red | blue;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx
index 4dc9a9e7c0..033c413677 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/InnerModuleSignature.gen.tsx
@@ -1,12 +1,11 @@
/* TypeScript file generated from InnerModuleSignature.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as InnerModuleSignatureBS__Es6Import from './InnerModuleSignature.bs';
const InnerModuleSignatureBS: any = InnerModuleSignatureBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type InnerModule_t = string;
export const InnerModule_make: (_1:InnerModule_t) => string = InnerModuleSignatureBS.InnerModule.make;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx
index c99f191185..c27b805103 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/JSXV4.gen.tsx
@@ -1,6 +1,7 @@
/* TypeScript file generated from JSXV4.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import {make as makeNotChecked} from './hookExample';
@@ -22,19 +23,14 @@ export const make: unknown = makeTypeChecked as React.ComponentType<{
readonly renderMe: renderMe
}>;
-// tslint:disable-next-line:no-var-requires
const JSXV4BS = require('./JSXV4.bs');
-// tslint:disable-next-line:interface-over-type-literal
export type CompV4_props = { readonly x: x; readonly y: y };
-// tslint:disable-next-line:interface-over-type-literal
export type person = { readonly name: string; readonly age: number };
-// tslint:disable-next-line:interface-over-type-literal
export type renderMe = React.ComponentType<{ readonly randomString: string; readonly poly: a }>;
-// tslint:disable-next-line:interface-over-type-literal
export type props = {
readonly actions?: actions;
readonly person: person;
@@ -44,7 +40,6 @@ export type props = {
export const CompV4_make: React.ComponentType<{ readonly x: string; readonly y: string }> = JSXV4BS.CompV4.make;
-// tslint:disable-next-line:interface-over-type-literal
export type Props = { readonly x: string; readonly y: string };
export const CompV3_make: React.ComponentType<{ readonly x: string; readonly y: string }> = JSXV4BS.CompV3.make;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx
index 1d9c03e505..008d238992 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/LabeledFun.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from LabeledFun.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as LabeledFunBS__Es6Import from './LabeledFun.bs';
const LabeledFunBS: any = LabeledFunBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx
index 3f53e178e7..3a3852bbbd 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/LetPrivate.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from LetPrivate.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as LetPrivateBS__Es6Import from './LetPrivate.bs';
const LetPrivateBS: any = LetPrivateBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Lib.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Lib.gen.tsx
index 6e686fb3fa..83b8e67073 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Lib.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Lib.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from Lib.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type action =
{ action: "A"; _0: string }
| { action: "B"; _0: string };
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Machine.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Machine.gen.tsx
index da11ae974b..b4d482558c 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Machine.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Machine.gen.tsx
@@ -1,12 +1,11 @@
/* TypeScript file generated from Machine.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as MachineBS__Es6Import from './Machine.bs';
const MachineBS: any = MachineBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type aa = { TAG: "A"; _0: number };
export const a: aa = MachineBS.a;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx
index 3dd54ab8a2..6bd7e2836a 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases.gen.tsx
@@ -1,30 +1,23 @@
/* TypeScript file generated from ModuleAliases.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as ModuleAliasesBS__Es6Import from './ModuleAliases.bs';
const ModuleAliasesBS: any = ModuleAliasesBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type Outer_Inner_innerT = { readonly inner: string };
-// tslint:disable-next-line:interface-over-type-literal
export type Outer2_Inner2_InnerNested_t = { readonly nested: number };
-// tslint:disable-next-line:interface-over-type-literal
export type Outer2_OuterInnerAlias_innerT = Outer_Inner_innerT;
-// tslint:disable-next-line:interface-over-type-literal
export type Outer2_Inner2_OuterInnerAlias2_innerT = Outer2_OuterInnerAlias_innerT;
-// tslint:disable-next-line:interface-over-type-literal
export type Outer2Alias_OuterInnerAlias_innerT = Outer2_OuterInnerAlias_innerT;
-// tslint:disable-next-line:interface-over-type-literal
export type Outer2Alias_Inner2_OuterInnerAlias2_innerT = Outer2_Inner2_OuterInnerAlias2_innerT;
-// tslint:disable-next-line:interface-over-type-literal
export type InnerNestedAlias_t = Outer2_Inner2_InnerNested_t;
export const testNested: (x:InnerNestedAlias_t) => InnerNestedAlias_t = ModuleAliasesBS.testNested;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx
index 16560b745a..e5cf11bca5 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/ModuleAliases2.gen.tsx
@@ -1,21 +1,16 @@
/* TypeScript file generated from ModuleAliases2.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type record = { readonly x: number; readonly y: string };
-// tslint:disable-next-line:interface-over-type-literal
export type Outer_outer = { readonly outer: string };
-// tslint:disable-next-line:interface-over-type-literal
export type Outer_Inner_inner = { readonly inner: string };
-// tslint:disable-next-line:interface-over-type-literal
export type OuterAlias_outer = Outer_outer;
-// tslint:disable-next-line:interface-over-type-literal
export type OuterAlias_Inner_inner = Outer_Inner_inner;
-// tslint:disable-next-line:interface-over-type-literal
export type InnerAlias_inner = OuterAlias_Inner_inner;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx
index 8095a4b284..3c80d4c97f 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/MoreVariants.gen.tsx
@@ -1,15 +1,13 @@
/* TypeScript file generated from MoreVariants.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as MoreVariantsBS__Es6Import from './MoreVariants.bs';
const MoreVariantsBS: any = MoreVariantsBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type withRenaming = "type_" | "b";
-// tslint:disable-next-line:interface-over-type-literal
export type withoutRenaming = "type_" | "b";
export const testWithRenaming: (x:withRenaming) => withRenaming = MoreVariantsBS.testWithRenaming;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/MyInput.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/MyInput.gen.tsx
index 43af5fc54a..d9525c496a 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/MyInput.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/MyInput.gen.tsx
@@ -1,6 +1,7 @@
/* TypeScript file generated from MyInput.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import {default as defaultNotChecked} from './MyInput';
@@ -12,7 +13,6 @@ export const $$default: unknown = defaultTypeChecked as React.ComponentType<{ re
import type {inputFocusEvent as $$inputFocusEvent} from './shims/ReactEvent.shim';
-// tslint:disable-next-line:interface-over-type-literal
export type inputFocusEvent = $$inputFocusEvent;
export default $$default;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/MyMath.ts b/jscomp/gentype_tests/typescript-react-example/src/MyMath.ts
index 5e4c987b26..55ea301c30 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/MyMath.ts
+++ b/jscomp/gentype_tests/typescript-react-example/src/MyMath.ts
@@ -4,7 +4,6 @@ export const round: (_: number) => number = Math.round;
export const round2 = round;
-// tslint:disable-next-line:only-arrow-functions
export const area = function(point: { x: number; y?: number }): number {
return point.x * (point.y === undefined ? 1 : point.y);
};
@@ -27,7 +26,7 @@ export class AbsoluteValue {
export type stringFunction = (_: string) => string;
-// tslint:disable-next-line:only-arrow-functions
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const useColor = function(x: "tomato" | "gray"): number {
return 0;
};
@@ -35,6 +34,7 @@ export const useColor = function(x: "tomato" | "gray"): number {
export const higherOrder = (foo: (_1: number, _2: number) => number) =>
foo(3, 4);
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const convertVariant = (x: any) => x;
export const polymorphic = (x: T): T => x;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/MyModule.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/MyModule.gen.tsx
index e9acb394ff..9db1f98ce3 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/MyModule.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/MyModule.gen.tsx
@@ -1,12 +1,11 @@
/* TypeScript file generated from MyModule.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as MyModuleBS__Es6Import from './MyModule.bs';
const MyModuleBS: any = MyModuleBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type t = number;
export const add: (a:t, b:t) => t = MyModuleBS.add;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx
index 8a58e86616..d972a90f56 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/NestedModules.gen.tsx
@@ -1,21 +1,17 @@
/* TypeScript file generated from NestedModules.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as NestedModulesBS__Es6Import from './NestedModules.bs';
const NestedModulesBS: any = NestedModulesBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type Universe_nestedType = string[];
-// tslint:disable-next-line:interface-over-type-literal
export type Universe_Nested2_nested2Type = Array;
-// tslint:disable-next-line:interface-over-type-literal
export type Universe_Nested2_Nested3_nested3Type = Array>;
-// tslint:disable-next-line:interface-over-type-literal
export type Universe_variant = "A" | { TAG: "B"; _0: string };
export const notNested: number = NestedModulesBS.notNested;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx
index bbdda05a1f..126f383634 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/NestedModulesInSignature.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from NestedModulesInSignature.resi by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as NestedModulesInSignatureBS__Es6Import from './NestedModulesInSignature.bs';
const NestedModulesInSignatureBS: any = NestedModulesInSignatureBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx
index 6d33f6cfce..2120f27c49 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/NestedVariants.gen.tsx
@@ -1,57 +1,44 @@
/* TypeScript file generated from NestedVariants.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as NestedVariantsBS__Es6Import from './NestedVariants.bs';
const NestedVariantsBS: any = NestedVariantsBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type typeL =
{ TAG: "NonUnary"; _0: number; _1: number };
-// tslint:disable-next-line:interface-over-type-literal
export type typeC =
{ TAG: "C"; _0: string }
| { TAG: "D"; _0: string };
-// tslint:disable-next-line:interface-over-type-literal
export type typeB = { readonly c: typeC };
-// tslint:disable-next-line:interface-over-type-literal
export type typeD = { TAG: "Int"; _0: number };
-// tslint:disable-next-line:interface-over-type-literal
export type typeE = number;
-// tslint:disable-next-line:interface-over-type-literal
export type typeA =
{ TAG: "A"; _0: a; _1: number }
| { TAG: "B"; _0: a; _1: number };
-// tslint:disable-next-line:interface-over-type-literal
export type typeF = { TAG: "F"; _0: a } | { TAG: "G"; _0: a };
-// tslint:disable-next-line:interface-over-type-literal
export type typeH =
{ TAG: "H"; _0: typeD; _1: number }
| { TAG: "I"; _0: typeD; _1: number };
-// tslint:disable-next-line:interface-over-type-literal
export type typeJ = { TAG: "J"; _0: typeD; _1: typeD };
-// tslint:disable-next-line:interface-over-type-literal
export type typeK = { TAG: "K"; _0: typeD; _1: typeD };
-// tslint:disable-next-line:interface-over-type-literal
export type boxedBinary =
{ TAG: "BB"; _0: typeD; _1: number }
| { TAG: "Z"; _0: number };
-// tslint:disable-next-line:interface-over-type-literal
export type unboxedBinary = { TAG: "UB"; _0: typeD; _1: number };
-// tslint:disable-next-line:interface-over-type-literal
export type inline =
{ TAG: "I"; readonly i: number; readonly j: number }
| { TAG: "J"; readonly i: number; readonly j: number }
diff --git a/jscomp/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx
index 98354a6d4c..51366a0640 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/NonrecursiveTypes.gen.tsx
@@ -1,12 +1,10 @@
/* TypeScript file generated from NonrecursiveTypes.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type notRecursive = number;
-// tslint:disable-next-line:interface-over-type-literal
export type M_notRecursive = notRecursive[];
-// tslint:disable-next-line:interface-over-type-literal
export type M_recursive = { readonly self: M_recursive };
diff --git a/jscomp/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx
index ef9a5eea2d..aa422e0c12 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/NumericPolyVar.gen.tsx
@@ -1,6 +1,6 @@
/* TypeScript file generated from NumericPolyVar.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type t = 12 | 0 | "b";
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Object.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Object.gen.tsx
index 31cd17915e..c8e3a51522 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Object.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Object.gen.tsx
@@ -1,9 +1,8 @@
/* TypeScript file generated from Object.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type someType = { readonly crop?: string; readonly "fp-z"?: string };
-// tslint:disable-next-line:interface-over-type-literal
export type someType2 = { readonly crop: (undefined | string); readonly "fp-z": (undefined | string) };
diff --git a/jscomp/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx
index 98e003b9be..2feef1ec34 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/OnClick2.gen.tsx
@@ -1,14 +1,13 @@
/* TypeScript file generated from OnClick2.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import * as React from 'react';
-// @ts-ignore: Implicit any on import
import * as OnClick2BS__Es6Import from './OnClick2.bs';
const OnClick2BS: any = OnClick2BS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type Props = { readonly onClick: (_1:MouseEvent) => void };
export const make: React.ComponentType<{ readonly onClick: (_1:MouseEvent) => void }> = OnClick2BS.make;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Opaque.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Opaque.gen.tsx
index 633c0d30b8..53c4dd2e05 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Opaque.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Opaque.gen.tsx
@@ -1,18 +1,15 @@
/* TypeScript file generated from Opaque.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as OpaqueBS__Es6Import from './Opaque.bs';
const OpaqueBS: any = OpaqueBS__Es6Import;
import type {business as Records_business} from './Records.gen';
-// tslint:disable-next-line:max-classes-per-file
-// tslint:disable-next-line:class-name
export abstract class opaqueFromRecords { protected opaque!: any }; /* simulate opaque types */
-// tslint:disable-next-line:interface-over-type-literal
export type pair = [opaqueFromRecords, opaqueFromRecords];
export const noConversion: (x:opaqueFromRecords) => opaqueFromRecords = OpaqueBS.noConversion;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Records.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Records.gen.tsx
index ef6d6b7615..0c396022d1 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Records.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Records.gen.tsx
@@ -1,48 +1,41 @@
/* TypeScript file generated from Records.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as RecordsBS__Es6Import from './Records.bs';
const RecordsBS: any = RecordsBS__Es6Import;
import type {list} from '../src/shims/RescriptPervasives.shim';
-// tslint:disable-next-line:interface-over-type-literal
export type coord = {
readonly x: number;
readonly y: number;
readonly z: (undefined | number)
};
-// tslint:disable-next-line:interface-over-type-literal
export type person = {
readonly name: string;
readonly age: number;
readonly address: (undefined | string)
};
-// tslint:disable-next-line:interface-over-type-literal
export type business = {
readonly name: string;
readonly owner: (undefined | person);
readonly address: (undefined | string)
};
-// tslint:disable-next-line:interface-over-type-literal
export type payload = { readonly num: number; readonly payload: a };
-// tslint:disable-next-line:interface-over-type-literal
export type record = { readonly v: number; readonly w: number };
-// tslint:disable-next-line:interface-over-type-literal
export type business2 = {
readonly name: string;
readonly owner: (null | undefined | person);
readonly address2: (null | undefined | string)
};
-// tslint:disable-next-line:interface-over-type-literal
export type mix = {
readonly a: number;
readonly b: number;
@@ -52,13 +45,10 @@ export type mix = {
}
};
-// tslint:disable-next-line:interface-over-type-literal
export type myRec = { readonly type: string };
-// tslint:disable-next-line:interface-over-type-literal
export type myObj = { readonly type_: string };
-// tslint:disable-next-line:interface-over-type-literal
export type myRecBsAs = {
readonly jsValid0: string;
readonly type: string;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/References.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/References.gen.tsx
index ee18c0af0f..d3d8d9b514 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/References.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/References.gen.tsx
@@ -1,18 +1,15 @@
/* TypeScript file generated from References.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as ReferencesBS__Es6Import from './References.bs';
const ReferencesBS: any = ReferencesBS__Es6Import;
-// tslint:disable-next-line:max-classes-per-file
export abstract class R_t { protected opaque!: a }; /* simulate opaque types */
-// tslint:disable-next-line:interface-over-type-literal
export type t = R_t;
-// tslint:disable-next-line:interface-over-type-literal
export type requiresConversion = { readonly x: number };
export const create: (x:number) => { contents: number } = ReferencesBS.create;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Shadow.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Shadow.gen.tsx
index 491426e9f7..5b351b197c 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Shadow.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Shadow.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from Shadow.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as ShadowBS__Es6Import from './Shadow.bs';
const ShadowBS: any = ShadowBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx
index f6f0527f44..88a31f0e01 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TestEmitInnerModules.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from TestEmitInnerModules.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TestEmitInnerModulesBS__Es6Import from './TestEmitInnerModules.bs';
const TestEmitInnerModulesBS: any = TestEmitInnerModulesBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx
index 6c80daffb0..9acb20dd21 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TestFirstClassModules.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from TestFirstClassModules.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TestFirstClassModulesBS__Es6Import from './TestFirstClassModules.bs';
const TestFirstClassModulesBS: any = TestFirstClassModulesBS__Es6Import;
@@ -12,7 +12,6 @@ import type {firstClassModule as FirstClassModules_firstClassModule} from './Fir
import type {record as FirstClassModulesInterface_record} from './FirstClassModulesInterface.gen';
-// tslint:disable-next-line:interface-over-type-literal
export type firstClassModuleWithTypeEquations = { readonly out: (_1:o) => o; readonly Inner: { readonly inn: (_1:i) => i } };
export const convert: (x:FirstClassModules_firstClassModule) => FirstClassModules_firstClassModule = TestFirstClassModulesBS.convert;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx
index 6ea14f6e0f..c6ca222d2c 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TestImmutableArray.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from TestImmutableArray.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TestImmutableArrayBS__Es6Import from './TestImmutableArray.bs';
const TestImmutableArrayBS: any = TestImmutableArrayBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx
index 3c5e717c8c..96197ffdcc 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TestModuleAliases.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from TestModuleAliases.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TestModuleAliasesBS__Es6Import from './TestModuleAliases.bs';
const TestModuleAliasesBS: any = TestModuleAliasesBS__Es6Import;
@@ -14,28 +14,20 @@ import type {Outer_outer as ModuleAliases2_Outer_outer} from './ModuleAliases2.g
import type {record as ModuleAliases2_record} from './ModuleAliases2.gen';
-// tslint:disable-next-line:interface-over-type-literal
export type OtherFile_record = { readonly x: number; readonly y: string };
-// tslint:disable-next-line:interface-over-type-literal
export type record = ModuleAliases2_record;
-// tslint:disable-next-line:interface-over-type-literal
export type record2 = ModuleAliases2_record;
-// tslint:disable-next-line:interface-over-type-literal
export type outer = ModuleAliases2_Outer_outer;
-// tslint:disable-next-line:interface-over-type-literal
export type outer2 = ModuleAliases2_Outer_outer;
-// tslint:disable-next-line:interface-over-type-literal
export type my2 = ModuleAliases2_Outer_Inner_inner;
-// tslint:disable-next-line:interface-over-type-literal
export type inner1 = ModuleAliases2_InnerAlias_inner;
-// tslint:disable-next-line:interface-over-type-literal
export type inner2 = ModuleAliases2_Outer_Inner_inner;
export const testInner1: (x:inner1) => inner1 = TestModuleAliasesBS.testInner1;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx
index 8aef01e6ce..5505f59301 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TestPromise.gen.tsx
@@ -1,18 +1,15 @@
/* TypeScript file generated from TestPromise.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TestPromiseBS__Es6Import from './TestPromise.bs';
const TestPromiseBS: any = TestPromiseBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type promise = Promise;
-// tslint:disable-next-line:interface-over-type-literal
export type fromPayload = { readonly x: number; readonly s: string };
-// tslint:disable-next-line:interface-over-type-literal
export type toPayload = { readonly result: string };
export const convert: (_1:Promise) => Promise = TestPromiseBS.convert;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx
index 7d343e4543..d27fd1baa8 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TransitiveType1.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from TransitiveType1.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TransitiveType1BS__Es6Import from './TransitiveType1.bs';
const TransitiveType1BS: any = TransitiveType1BS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx
index 0ccf1b920c..02c9548b3a 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TransitiveType2.gen.tsx
@@ -1,11 +1,10 @@
/* TypeScript file generated from TransitiveType2.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import type {t3 as TransitiveType3_t3} from './TransitiveType3.gen';
-// tslint:disable-next-line:interface-over-type-literal
export type t2 = (undefined | TransitiveType3_t3);
-// tslint:disable-next-line:interface-over-type-literal
export type t2Alias = t2;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx
index a377a845af..21260a0d39 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TransitiveType3.gen.tsx
@@ -1,12 +1,11 @@
/* TypeScript file generated from TransitiveType3.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TransitiveType3BS__Es6Import from './TransitiveType3.bs';
const TransitiveType3BS: any = TransitiveType3BS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type t3 = { readonly i: number; readonly s: string };
export const convertT3: (x:t3) => t3 = TransitiveType3BS.convertT3;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx
index a83402c199..1d8672b5e4 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TypeNameSanitize.gen.tsx
@@ -1,12 +1,10 @@
/* TypeScript file generated from TypeNameSanitize.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type t_ = number;
-// tslint:disable-next-line:interface-over-type-literal
export type M_t__ = number;
-// tslint:disable-next-line:interface-over-type-literal
export type pair = [t_, M_t__];
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx
index 30cb971b21..9ec2bad966 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TypeParams1.gen.tsx
@@ -1,6 +1,6 @@
/* TypeScript file generated from TypeParams1.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type ocaml_array = a[];
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx
index 976be0ebad..bef46e020b 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TypeParams2.gen.tsx
@@ -1,14 +1,12 @@
/* TypeScript file generated from TypeParams2.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
import type {ocaml_array as TypeParams1_ocaml_array} from './TypeParams1.gen';
-// tslint:disable-next-line:interface-over-type-literal
export type item = { readonly id: number };
-// tslint:disable-next-line:interface-over-type-literal
export type items = TypeParams1_ocaml_array- ;
-// tslint:disable-next-line:interface-over-type-literal
export type items2 = item[];
diff --git a/jscomp/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx
index 5347b93ec3..46ff4963c1 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/TypeParams3.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from TypeParams3.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TypeParams3BS__Es6Import from './TypeParams3.bs';
const TypeParams3BS: any = TypeParams3BS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx
index e1a45ac733..ae18d4863d 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Unboxed.gen.tsx
@@ -1,24 +1,19 @@
/* TypeScript file generated from Unboxed.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as UnboxedBS__Es6Import from './Unboxed.bs';
const UnboxedBS: any = UnboxedBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type v1 = number;
-// tslint:disable-next-line:interface-over-type-literal
export type v2 = number;
-// tslint:disable-next-line:interface-over-type-literal
export type r1 = number;
-// tslint:disable-next-line:interface-over-type-literal
export type r2 = string;
-// tslint:disable-next-line:interface-over-type-literal
export type t = number[] | number | ((_1:number) => number);
export const testV1: (x:v1) => v1 = UnboxedBS.testV1;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx
index aec96f4a1e..0dea01f734 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Uncurried.gen.tsx
@@ -1,27 +1,21 @@
/* TypeScript file generated from Uncurried.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as UncurriedBS__Es6Import from './Uncurried.bs';
const UncurriedBS: any = UncurriedBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type u0 = () => string;
-// tslint:disable-next-line:interface-over-type-literal
export type u1 = (_1:number) => string;
-// tslint:disable-next-line:interface-over-type-literal
export type u2 = (_1:number, _2:string) => string;
-// tslint:disable-next-line:interface-over-type-literal
export type u3 = (_1:number, _2:string, _3:number) => string;
-// tslint:disable-next-line:interface-over-type-literal
export type auth = { readonly login: () => string };
-// tslint:disable-next-line:interface-over-type-literal
export type authU = { readonly loginU: () => string };
export const uncurried0: () => string = UncurriedBS.uncurried0;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Usage.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Usage.gen.tsx
index 383e5d732c..abe93d3ae6 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Usage.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Usage.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from Usage.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as UsageBS__Es6Import from './Usage.bs';
const UsageBS: any = UsageBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx
index f9e5f95da8..e1b1995e3a 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/UseImportJsValue.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from UseImportJsValue.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as UseImportJsValueBS__Es6Import from './UseImportJsValue.bs';
const UseImportJsValueBS: any = UseImportJsValueBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/V3Compatibility.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/V3Compatibility.gen.tsx
index 9fdfc8bebd..2b55a93c66 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/V3Compatibility.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/V3Compatibility.gen.tsx
@@ -1,6 +1,6 @@
/* TypeScript file generated from V3Compatibility.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type cb = (_1:number) => string;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Variants.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Variants.gen.tsx
index 4adf4f1588..433e8cac4c 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Variants.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Variants.gen.tsx
@@ -1,14 +1,13 @@
/* TypeScript file generated from Variants.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as VariantsBS__Es6Import from './Variants.bs';
const VariantsBS: any = VariantsBS__Es6Import;
import type {list} from '../src/shims/RescriptPervasives.shim';
-// tslint:disable-next-line:interface-over-type-literal
export type weekday =
"monday"
| "tuesday"
@@ -18,42 +17,31 @@ export type weekday =
| "saturday"
| "sunday";
-// tslint:disable-next-line:interface-over-type-literal
export type testGenTypeAs = "type_" | "module_" | "fortytwo";
-// tslint:disable-next-line:interface-over-type-literal
export type testGenTypeAs2 = "type_" | "module" | 42;
-// tslint:disable-next-line:interface-over-type-literal
export type testGenTypeAs3 = "type_" | "module" | 42;
-// tslint:disable-next-line:interface-over-type-literal
export type x1 = "x" | "x1";
-// tslint:disable-next-line:interface-over-type-literal
export type x2 = "x" | "x2";
-// tslint:disable-next-line:interface-over-type-literal
export type type_ = "Type";
export type type = type_;
-// tslint:disable-next-line:interface-over-type-literal
export type myList = "E" | { TAG: "C"; _0: number; _1: myList };
-// tslint:disable-next-line:interface-over-type-literal
export type builtinList = list;
-// tslint:disable-next-line:interface-over-type-literal
export type result1 =
{ TAG: "Ok"; _0: a }
| { TAG: "Error"; _0: b };
-// tslint:disable-next-line:interface-over-type-literal
export type result2 =
{ TAG: "Ok"; _0: a }
| { TAG: "Error"; _0: b };
-// tslint:disable-next-line:interface-over-type-literal
export type result3 =
{ TAG: "Ok"; _0: a }
| { TAG: "Error"; _0: b };
diff --git a/jscomp/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx
index 4420b28595..65f55baef7 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/VariantsWithPayload.gen.tsx
@@ -1,15 +1,13 @@
/* TypeScript file generated from VariantsWithPayload.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as VariantsWithPayloadBS__Es6Import from './VariantsWithPayload.bs';
const VariantsWithPayloadBS: any = VariantsWithPayloadBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type payload = { readonly x: number; readonly y?: string };
-// tslint:disable-next-line:interface-over-type-literal
export type withPayload =
"a"
| "b"
@@ -18,16 +16,13 @@ export type withPayload =
| "Half"
| { NAME: "c"; VAL: payload };
-// tslint:disable-next-line:interface-over-type-literal
export type manyPayloads =
{ NAME: "one"; VAL: number }
| { NAME: "two"; VAL: [string, string] }
| { NAME: "three"; VAL: payload };
-// tslint:disable-next-line:interface-over-type-literal
export type simpleVariant = "A" | "B" | "C";
-// tslint:disable-next-line:interface-over-type-literal
export type variantWithPayloads =
"A"
| { TAG: "B"; _0: number }
@@ -35,10 +30,8 @@ export type variantWithPayloads =
| { TAG: "D"; _0: number; _1: number }
| { TAG: "E"; _0: number; _1: string; _2: number };
-// tslint:disable-next-line:interface-over-type-literal
export type variant1Int = { TAG: "R"; _0: number };
-// tslint:disable-next-line:interface-over-type-literal
export type variant1Object = { TAG: "R"; _0: payload };
export const testWithPayload: (x:withPayload) => withPayload = VariantsWithPayloadBS.testWithPayload;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Warnings.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Warnings.gen.tsx
index ba56d1cfc8..92663ae709 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Warnings.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Warnings.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from Warnings.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as WarningsBS__Es6Import from './Warnings.bs';
const WarningsBS: any = WarningsBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx
index 27ab2e87ef..ad8868f99d 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/Wrapper.gen.tsx
@@ -1,12 +1,11 @@
/* TypeScript file generated from Wrapper.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as WrapperBS__Es6Import from './Wrapper.bs';
const WrapperBS: any = WrapperBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type MyModuleAlias_t = number;
export const MyModuleAlias_add: (_1:MyModuleAlias_t, _2:MyModuleAlias_t) => MyModuleAlias_t = WrapperBS.MyModuleAlias.add;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/counter.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/counter.gen.tsx
index 58a59a93e3..62149b2e59 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/counter.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/counter.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from counter.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as counterBS__Es6Import from './counter.bs';
const counterBS: any = counterBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/index.tsx b/jscomp/gentype_tests/typescript-react-example/src/index.tsx
index 14bc1a0134..c9c9a2bdfb 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/index.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/index.tsx
@@ -21,7 +21,6 @@ import {
} from "./VariantsWithPayload.gen";
import * as TestPromise from "./TestPromise.gen";
-// tslint:disable-next-line:no-console
const consoleLog = console.log;
const intList = Types.map((x) => x + 1, Types.someIntList);
@@ -129,6 +128,7 @@ TestPromise.convert(Promise.resolve({ x: 3, s: "hello" })).then((x) =>
type Props = {
readonly method?: "push" | "replace";
};
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const make: React.FC = (x: Props) => {
return ;
};
diff --git a/jscomp/gentype_tests/typescript-react-example/src/location/location.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/location/location.gen.tsx
index 50e96e2889..d5a66cf1ec 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/location/location.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/location/location.gen.tsx
@@ -1,6 +1,6 @@
/* TypeScript file generated from location.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type t = { readonly id: string; readonly name: string };
diff --git a/jscomp/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx
index 1419d29251..2d97146ee2 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/nested/Tuples.gen.tsx
@@ -1,21 +1,17 @@
/* TypeScript file generated from Tuples.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TuplesBS__Es6Import from './Tuples.bs';
const TuplesBS: any = TuplesBS__Es6Import;
-// tslint:disable-next-line:interface-over-type-literal
export type coord = [number, number, (undefined | number)];
-// tslint:disable-next-line:interface-over-type-literal
export type coord2 = [number, number, (null | undefined | number)];
-// tslint:disable-next-line:interface-over-type-literal
export type person = { readonly name: string; readonly age: number };
-// tslint:disable-next-line:interface-over-type-literal
export type couple = [person, person];
export const testTuple: (param:[number, number]) => number = TuplesBS.testTuple;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx
index 7f7da2be5a..7ec83fc4df 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/nested/Types.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from Types.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as TypesBS__Es6Import from './Types.bs';
const TypesBS: any = TypesBS__Es6Import;
@@ -16,56 +16,40 @@ import type {t_ as TypeNameSanitize_t_} from '../../src/TypeNameSanitize.gen';
import type {t as Location_t} from '../../src/location/location.gen';
-// tslint:disable-next-line:interface-over-type-literal
export type t = number;
-// tslint:disable-next-line:interface-over-type-literal
export type typeWithVars =
{ TAG: "A"; _0: x; _1: y }
| { TAG: "B"; _0: z };
-// tslint:disable-next-line:interface-over-type-literal
export type tree = {
readonly label: string;
readonly left?: tree;
readonly right?: tree
};
-// tslint:disable-next-line:interface-over-type-literal
export type selfRecursive = { readonly self: selfRecursive };
-// tslint:disable-next-line:interface-over-type-literal
export type mutuallyRecursiveA = { readonly b: mutuallyRecursiveB };
-// tslint:disable-next-line:interface-over-type-literal
export type mutuallyRecursiveB = { readonly a: mutuallyRecursiveA };
-// tslint:disable-next-line:max-classes-per-file
-// tslint:disable-next-line:class-name
export abstract class opaqueVariant { protected opaque!: any }; /* simulate opaque types */
-// tslint:disable-next-line:interface-over-type-literal
export type twice = [a, a];
-// tslint:disable-next-line:interface-over-type-literal
export type genTypeMispelled = number;
-// tslint:disable-next-line:interface-over-type-literal
export type dictString = {[id: string]: string};
-// tslint:disable-next-line:interface-over-type-literal
export type nullOrString = (null | string);
-// tslint:disable-next-line:interface-over-type-literal
export type nullOrString2 = (null | string);
-// tslint:disable-next-line:interface-over-type-literal
export type record = { readonly i: number; readonly s: string };
-// tslint:disable-next-line:interface-over-type-literal
export type decorator = (_1:a) => b;
-// tslint:disable-next-line:interface-over-type-literal
export type marshalFields = {
readonly _rec: string;
readonly _switch: string;
@@ -78,35 +62,25 @@ export type marshalFields = {
readonly _Uppercase__: string
};
-// tslint:disable-next-line:interface-over-type-literal
export type marshalMutableField = { _match: number };
-// tslint:disable-next-line:interface-over-type-literal
export type ocaml_array = a[];
-// tslint:disable-next-line:interface-over-type-literal
export type someRecord = { readonly id: number };
-// tslint:disable-next-line:interface-over-type-literal
export type instantiateTypeParameter = ocaml_array;
-// tslint:disable-next-line:interface-over-type-literal
export type vector = [a, a];
export type Vector = vector;
-// tslint:disable-next-line:interface-over-type-literal
export type date = Date;
-// tslint:disable-next-line:interface-over-type-literal
export type i64A = [number, number];
-// tslint:disable-next-line:interface-over-type-literal
export type i64B = [number, number];
-// tslint:disable-next-line:interface-over-type-literal
export type ObjectId_t = number;
-// tslint:disable-next-line:interface-over-type-literal
export type tPrimed = [TypeNameSanitize_t_, TypeNameSanitize_M_t__];
export const someIntList: list = TypesBS.someIntList;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/shims/ReactEvent.shim.ts b/jscomp/gentype_tests/typescript-react-example/src/shims/ReactEvent.shim.ts
index 994e10e1e3..4ad7494fa1 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/shims/ReactEvent.shim.ts
+++ b/jscomp/gentype_tests/typescript-react-example/src/shims/ReactEvent.shim.ts
@@ -1,69 +1,69 @@
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Animation_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Clipboard_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Composition_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Focus_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Form_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Keyboard_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Image_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Media_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Selection_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Synthetic_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Touch_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Transition_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class UI_t {
protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Wheel_t {
protected opaque: unknown;
}
diff --git a/jscomp/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts b/jscomp/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts
index 3e6ba0ac25..d83f49ce57 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts
+++ b/jscomp/gentype_tests/typescript-react-example/src/shims/RescriptPervasives.shim.ts
@@ -1,12 +1,12 @@
-// tslint:disable-next-line:no-var-requires
+// eslint-disable-next-line @typescript-eslint/no-var-requires
const $$Array = require("bs-platform/lib/js/array");
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class EmptyList {
- protected opaque: any;
+ protected opaque: unknown;
}
-// tslint:disable-next-line:max-classes-per-file
+// eslint-disable-next-line max-classes-per-file
export abstract class Cons {
protected opaque!: T;
}
@@ -14,9 +14,11 @@ export abstract class Cons {
export type list = Cons | EmptyList;
export function cons(itm: T, lst: list) : list {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
return /* :: */ [itm, lst] as any;
}
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const emptyList : EmptyList = /* [] */ 0 as any;
export const fromArray = $$Array.to_list;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx
index 4fc6d2bb6b..b9335e6494 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/404.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from 404.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as _404BS__Es6Import from './404.bs';
const _404BS: any = _404BS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx
index 6860883adf..a57734235d 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/AppModal.web.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from AppModal.web.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as AppModal_webBS__Es6Import from './AppModal.web.bs';
const AppModal_webBS: any = AppModal_webBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx
index faf6961b6e..6cc6826931 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/_under.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from _under.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as _underBS__Es6Import from './_under.bs';
const _underBS: any = _underBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx
index 7a0c3e8c9f..0225f5acba 100644
--- a/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx
+++ b/jscomp/gentype_tests/typescript-react-example/src/strange_file_names/with_underscore.gen.tsx
@@ -1,8 +1,8 @@
/* TypeScript file generated from with_underscore.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// @ts-ignore: Implicit any on import
import * as with_underscoreBS__Es6Import from './with_underscore.bs';
const with_underscoreBS: any = with_underscoreBS__Es6Import;
diff --git a/jscomp/gentype_tests/typescript-react-example/tslint.json b/jscomp/gentype_tests/typescript-react-example/tslint.json
deleted file mode 100644
index 24b0d5b1f7..0000000000
--- a/jscomp/gentype_tests/typescript-react-example/tslint.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
- "defaultSeverity": "warning",
- "linterOptions": {
- "exclude": [
- "config/**/*.js",
- "node_modules/**/*.ts",
- "src/**/*.bs.js"
- ]
- }
-}
diff --git a/jscomp/syntax/tests/idempotency/genType/src/EmitType.res b/jscomp/syntax/tests/idempotency/genType/src/EmitType.res
index f603693d1a..ea04291541 100644
--- a/jscomp/syntax/tests/idempotency/genType/src/EmitType.res
+++ b/jscomp/syntax/tests/idempotency/genType/src/EmitType.res
@@ -479,7 +479,7 @@ let emitRequire = (
importPath,
) => {
let commentBeforeRequire = switch config.language {
- | TypeScript => "// tslint:disable-next-line:no-var-requires\n"
+ | TypeScript => "// eslint-disable-next-line @typescript-eslint/no-var-requires\n"
| Flow => strict ? early ? "// flowlint-next-line nonstrict-import:off\n" : "" : flowExpectedError
| Untyped => ""
}
diff --git a/jscomp/test/variantsMatching.gen.tsx b/jscomp/test/variantsMatching.gen.tsx
index 023a483cec..1f281b4510 100644
--- a/jscomp/test/variantsMatching.gen.tsx
+++ b/jscomp/test/variantsMatching.gen.tsx
@@ -1,24 +1,18 @@
/* TypeScript file generated from variantsMatching.res by genType. */
-/* eslint-disable import/first */
+/* eslint-disable */
+/* tslint:disable */
-// tslint:disable-next-line:interface-over-type-literal
export type t = "thisIsA" | 42 | null | "D" | 3.14;
-// tslint:disable-next-line:interface-over-type-literal
export type tNU = null | undefined;
-// tslint:disable-next-line:interface-over-type-literal
export type MyUndefined_t = undefined | a;
-// tslint:disable-next-line:interface-over-type-literal
export type MyNull_t = null | a;
-// tslint:disable-next-line:interface-over-type-literal
export type MyNullable_t = null | undefined | a;
-// tslint:disable-next-line:interface-over-type-literal
export type MyNullableExtended_t = null | undefined | "WhyNotAnotherOne" | a;
-// tslint:disable-next-line:interface-over-type-literal
export type UntaggedWithBool_t = string | number | boolean | string;