Merge branch 'main' into add-codeql-version
This commit is contained in:
commit
e6438b3296
834 changed files with 906 additions and 35821 deletions
|
|
@ -6,8 +6,13 @@ Note that the only difference between `v2` and `v3` of the CodeQL Action is the
|
|||
|
||||
## [UNRELEASED]
|
||||
|
||||
No user facing changes.
|
||||
|
||||
## 3.25.12 - 12 Jul 2024
|
||||
|
||||
- Improve the reliability and performance of analyzing code when analyzing a compiled language with the `autobuild` [build mode](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#codeql-build-modes) on GitHub Enterprise Server. This feature is already available to GitHub.com users. [#2353](https://github.com/github/codeql-action/pull/2353)
|
||||
- Add `codeql-version` to outputs. [#2368](https://github.com/github/codeql-action/pull/2368)
|
||||
- Update default CodeQL bundle version to 2.18.0. [#2364](https://github.com/github/codeql-action/pull/2364)
|
||||
|
||||
## 3.25.11 - 28 Jun 2024
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"bundleVersion": "codeql-bundle-v2.17.6",
|
||||
"cliVersion": "2.17.6",
|
||||
"priorBundleVersion": "codeql-bundle-v2.17.5",
|
||||
"priorCliVersion": "2.17.5"
|
||||
"bundleVersion": "codeql-bundle-v2.18.0",
|
||||
"cliVersion": "2.18.0",
|
||||
"priorBundleVersion": "codeql-bundle-v2.17.6",
|
||||
"priorCliVersion": "2.17.6"
|
||||
}
|
||||
|
|
|
|||
275
node_modules/.package-lock.json
generated
vendored
275
node_modules/.package-lock.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "codeql",
|
||||
"version": "3.25.12",
|
||||
"version": "3.25.13",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
@ -856,17 +856,16 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.15.0.tgz",
|
||||
"integrity": "sha512-uiNHpyjZtFrLwLDpHnzaDlP3Tt6sGMqTCiqmxaN4n4RP0EfYZDODJyddiFDF44Hjwxr5xAcaYxVKm9QKQFJFLA==",
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.16.0.tgz",
|
||||
"integrity": "sha512-py1miT6iQpJcs1BiJjm54AMzeuMPBSPuKPlnT8HlfudbcS5rYeX5jajpLf3mrdRh9dA/Ec2FVUY0ifeVNDIhZw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.10.0",
|
||||
"@typescript-eslint/scope-manager": "7.15.0",
|
||||
"@typescript-eslint/type-utils": "7.15.0",
|
||||
"@typescript-eslint/utils": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0",
|
||||
"@typescript-eslint/scope-manager": "7.16.0",
|
||||
"@typescript-eslint/type-utils": "7.16.0",
|
||||
"@typescript-eslint/utils": "7.16.0",
|
||||
"@typescript-eslint/visitor-keys": "7.16.0",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.3.1",
|
||||
"natural-compare": "^1.4.0",
|
||||
|
|
@ -890,16 +889,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.15.0.tgz",
|
||||
"integrity": "sha512-k9fYuQNnypLFcqORNClRykkGOMOj+pV6V91R4GO/l1FDGwpqmSwoOQrOHo3cGaH63e+D3ZiCAOsuS/D2c99j/A==",
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.16.0.tgz",
|
||||
"integrity": "sha512-ar9E+k7CU8rWi2e5ErzQiC93KKEFAXA2Kky0scAlPcxYblLt8+XZuHUZwlyfXILyQa95P6lQg+eZgh/dDs3+Vw==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "7.15.0",
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/typescript-estree": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0",
|
||||
"@typescript-eslint/scope-manager": "7.16.0",
|
||||
"@typescript-eslint/types": "7.16.0",
|
||||
"@typescript-eslint/typescript-estree": "7.16.0",
|
||||
"@typescript-eslint/visitor-keys": "7.16.0",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"engines": {
|
||||
|
|
@ -918,84 +916,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.15.0.tgz",
|
||||
"integrity": "sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.15.0.tgz",
|
||||
"integrity": "sha512-gjyB/rHAopL/XxfmYThQbXbzRMGhZzGw6KpcMbfe8Q3nNQKStpxnUKeXb0KiN/fFDR42Z43szs6rY7eHk0zdGQ==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0",
|
||||
"debug": "^4.3.4",
|
||||
"globby": "^11.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"minimatch": "^9.0.4",
|
||||
"semver": "^7.6.0",
|
||||
"ts-api-utils": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser/node_modules/minimatch": {
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/scope-manager": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.15.0.tgz",
|
||||
"integrity": "sha512-Q/1yrF/XbxOTvttNVPihxh1b9fxamjEoz2Os/Pe38OHwxC24CyCqXxGTOdpb4lt6HYtqw9HetA/Rf6gDGaMPlw==",
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.16.0.tgz",
|
||||
"integrity": "sha512-8gVv3kW6n01Q6TrI1cmTZ9YMFi3ucDT7i7aI5lEikk2ebk1AEjrwX8MDTdaX5D7fPXMBLvnsaa0IFTAu+jcfOw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0"
|
||||
"@typescript-eslint/types": "7.16.0",
|
||||
"@typescript-eslint/visitor-keys": "7.16.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
|
|
@ -1005,29 +933,14 @@
|
|||
"url": "https://opencollective.com/typescript-eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/scope-manager/node_modules/@typescript-eslint/types": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.15.0.tgz",
|
||||
"integrity": "sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.15.0.tgz",
|
||||
"integrity": "sha512-SkgriaeV6PDvpA6253PDVep0qCqgbO1IOBiycjnXsszNTVQe5flN5wR5jiczoEoDEnAqYFSFFc9al9BSGVltkg==",
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.16.0.tgz",
|
||||
"integrity": "sha512-j0fuUswUjDHfqV/UdW6mLtOQQseORqfdmoBNDFOqs9rvNVR2e+cmu6zJu/Ku4SDuqiJko6YnhwcL8x45r8Oqxg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "7.15.0",
|
||||
"@typescript-eslint/utils": "7.15.0",
|
||||
"@typescript-eslint/typescript-estree": "7.16.0",
|
||||
"@typescript-eslint/utils": "7.16.0",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.3.0"
|
||||
},
|
||||
|
|
@ -1047,12 +960,11 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.15.0.tgz",
|
||||
"integrity": "sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw==",
|
||||
"node_modules/@typescript-eslint/types": {
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.16.0.tgz",
|
||||
"integrity": "sha512-fecuH15Y+TzlUutvUl9Cc2XJxqdLr7+93SQIbcZfd4XRGGKoxyljK27b+kxKamjRkU7FYC6RrbSCg0ALcZn/xw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
|
|
@ -1061,15 +973,14 @@
|
|||
"url": "https://opencollective.com/typescript-eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.15.0.tgz",
|
||||
"integrity": "sha512-gjyB/rHAopL/XxfmYThQbXbzRMGhZzGw6KpcMbfe8Q3nNQKStpxnUKeXb0KiN/fFDR42Z43szs6rY7eHk0zdGQ==",
|
||||
"node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.16.0.tgz",
|
||||
"integrity": "sha512-a5NTvk51ZndFuOLCh5OaJBELYc2O3Zqxfl3Js78VFE1zE46J2AaVuW+rEbVkQznjkmlzWsUI15BG5tQMixzZLw==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0",
|
||||
"@typescript-eslint/types": "7.16.0",
|
||||
"@typescript-eslint/visitor-keys": "7.16.0",
|
||||
"debug": "^4.3.4",
|
||||
"globby": "^11.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
|
|
@ -1090,22 +1001,20 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils/node_modules/brace-expansion": {
|
||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils/node_modules/minimatch": {
|
||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
},
|
||||
|
|
@ -1117,16 +1026,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.15.0.tgz",
|
||||
"integrity": "sha512-hfDMDqaqOqsUVGiEPSMLR/AjTSCsmJwjpKkYQRo1FNbmW4tBwBspYDwO9eh7sKSTwMQgBw9/T4DHudPaqshRWA==",
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.16.0.tgz",
|
||||
"integrity": "sha512-PqP4kP3hb4r7Jav+NiRCntlVzhxBNWq6ZQ+zQwII1y/G/1gdIPeYDCKr2+dH6049yJQsWZiHU6RlwvIFBXXGNA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.4.0",
|
||||
"@typescript-eslint/scope-manager": "7.15.0",
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/typescript-estree": "7.15.0"
|
||||
"@typescript-eslint/scope-manager": "7.16.0",
|
||||
"@typescript-eslint/types": "7.16.0",
|
||||
"@typescript-eslint/typescript-estree": "7.16.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
|
|
@ -1139,83 +1047,13 @@
|
|||
"eslint": "^8.56.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.15.0.tgz",
|
||||
"integrity": "sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.15.0.tgz",
|
||||
"integrity": "sha512-gjyB/rHAopL/XxfmYThQbXbzRMGhZzGw6KpcMbfe8Q3nNQKStpxnUKeXb0KiN/fFDR42Z43szs6rY7eHk0zdGQ==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0",
|
||||
"debug": "^4.3.4",
|
||||
"globby": "^11.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"minimatch": "^9.0.4",
|
||||
"semver": "^7.6.0",
|
||||
"ts-api-utils": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils/node_modules/minimatch": {
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/visitor-keys": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.15.0.tgz",
|
||||
"integrity": "sha512-Hqgy/ETgpt2L5xueA/zHHIl4fJI2O4XUE9l4+OIfbJIRSnTJb/QscncdqqZzofQegIJugRIF57OJea1khw2SDw==",
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.16.0.tgz",
|
||||
"integrity": "sha512-rMo01uPy9C7XxG7AFsxa8zLnWXTF8N3PYclekWSrurvhwiw1eW88mrKiAYe6s53AUY57nTRz8dJsuuXdkAhzCg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/types": "7.16.0",
|
||||
"eslint-visitor-keys": "^3.4.3"
|
||||
},
|
||||
"engines": {
|
||||
|
|
@ -1226,20 +1064,6 @@
|
|||
"url": "https://opencollective.com/typescript-eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/visitor-keys/node_modules/@typescript-eslint/types": {
|
||||
"version": "7.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.15.0.tgz",
|
||||
"integrity": "sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
}
|
||||
},
|
||||
"node_modules/@ungap/structured-clone": {
|
||||
"version": "1.2.0",
|
||||
"dev": true,
|
||||
|
|
@ -5733,9 +5557,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.5.2",
|
||||
"version": "5.5.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz",
|
||||
"integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js
generated
vendored
|
|
@ -91,11 +91,13 @@ module.exports = {
|
|||
'@typescript-eslint/no-this-alias': 'error',
|
||||
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
|
||||
'@typescript-eslint/no-unnecessary-condition': 'error',
|
||||
'@typescript-eslint/no-unnecessary-parameter-property-assignment': 'error',
|
||||
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
||||
'@typescript-eslint/no-unnecessary-template-expression': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
|
||||
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
|
||||
'@typescript-eslint/no-unsafe-argument': 'error',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'error',
|
||||
'@typescript-eslint/no-unsafe-call': 'error',
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/configs/all.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+BAA+B,EAAE,OAAO;QACxC,mCAAmC,EAAE,OAAO;QAC5C,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,8BAA8B,EAAE,OAAO;QACvC,iDAAiD,EAAE,OAAO;QAC1D,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,OAAO;QACpD,oDAAoD,EAAE,OAAO;QAC7D,oDAAoD,EAAE,OAAO;QAC7D,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,4CAA4C,EAAE,OAAO;QACrD,4CAA4C,EAAE,OAAO;QACrD,oBAAoB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AkD,EAAE,OAAO;QAC3D,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE,OAAO;QAC1C,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,2CAA2C,EAAE,OAAO;QACpD,4BAA4B,EAAE,OAAO;QACrC,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,2DAA2D,EAAE,OAAO;KACrE;CAC6B,CAAC"}
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js
generated
vendored
1
node_modules/@typescript-eslint/eslint-plugin/dist/configs/disable-type-checked.js
generated
vendored
|
|
@ -35,6 +35,7 @@ module.exports = {
|
|||
'@typescript-eslint/no-unnecessary-template-expression': 'off',
|
||||
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
|
||||
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
|
||||
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
||||
'@typescript-eslint/no-unsafe-argument': 'off',
|
||||
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||
'@typescript-eslint/no-unsafe-call': 'off',
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"disable-type-checked.js","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,aAAa,EAAE;QACb,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,IAAI;QACb,8BAA8B,EAAE,KAAK;KACtC;IACD,KAAK,EAAE;QACL,mCAAmC,EAAE,KAAK;QAC1C,sCAAsC,EAAE,KAAK;QAC7C,4CAA4C,EAAE,KAAK;QACnD,iCAAiC,EAAE,KAAK;QACxC,sCAAsC,EAAE,KAAK;QAC7C,oCAAoC,EAAE,KAAK;QAC3C,sCAAsC,EAAE,KAAK;QAC7C,iDAAiD,E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AAmC,EAAE,KAAK;QAC1C,2DAA2D,EAAE,KAAK;KACnE;CAC6B,CAAC"}
|
||||
{"version":3,"file":"disable-type-checked.js","sourceRoot":"","sources":["../../src/configs/disable-type-checked.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,iDAAiD;AACjD,EAAE;AACF,4DAA4D;AAC5D,sDAAsD;AAItD,iBAAS;IACP,aAAa,EAAE;QACb,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,IAAI;QACb,8BAA8B,EAAE,KAAK;KACtC;IACD,KAAK,EAAE;QACL,mCAAmC,EAAE,KAAK;QAC1C,sCAAsC,EAAE,KAAK;QAC7C,4CAA4C,EAAE,KAAK;QACnD,iCAAiC,EAAE,KAAK;QACxC,sCAAsC,EAAE,KAAK;QAC7C,oCAAoC,EAAE,KAAK;QAC3C,sCAAsC,EAAE,KAAK;QAC7C,iDAAiD,EAAE,KAAK;QACxD,mDAAmD,EAAE,KAAK;QAC1D,yCAAyC,EAAE,KAAK;QAChD,oCAAoC,EAAE,KAAK;QAC3C,oCAAoC,EAAE,KAAK;QAC3C,iDAAiD,EAAE,KAAK;QACxD,wCAAwC,EAAE,KAAK;QAC/C,mCAAmC,EAAE,KAAK;QAC1C,mDAAmD,EAAE,KAAK;QAC1D,qCAAqC,EAAE,KAAK;QAC5C,2DAA2D,EAAE,KAAK;QAClE,6CAA6C,EAAE,KAAK;QACpD,6CAA6C,EAAE,KAAK;QACpD,uDAAuD,EAAE,KAAK;QAC9D,kDAAkD,EAAE,KAAK;QACzD,kDAAkD,EAAE,KAAK;QACzD,mDAAmD,EAAE,KAAK;QAC1D,uCAAuC,EAAE,KAAK;QAC9C,yCAAyC,EAAE,KAAK;QAChD,mCAAmC,EAAE,KAAK;QAC1C,8CAA8C,EAAE,KAAK;QACrD,4CAA4C,EAAE,KAAK;QACnD,qCAAqC,EAAE,KAAK;QAC5C,0CAA0C,EAAE,KAAK;QACjD,iDAAiD,EAAE,KAAK;QACxD,sDAAsD,EAAE,KAAK;QAC7D,qCAAqC,EAAE,KAAK;QAC5C,yCAAyC,EAAE,KAAK;QAChD,gCAAgC,EAAE,KAAK;QACvC,oCAAoC,EAAE,KAAK;QAC3C,8CAA8C,EAAE,KAAK;QACrD,0CAA0C,EAAE,KAAK;QACjD,iDAAiD,EAAE,KAAK;QACxD,oCAAoC,EAAE,KAAK;QAC3C,oDAAoD,EAAE,KAAK;QAC3D,iDAAiD,EAAE,KAAK;QACxD,uCAAuC,EAAE,KAAK;QAC9C,4CAA4C,EAAE,KAAK;QACnD,mDAAmD,EAAE,KAAK;QAC1D,2CAA2C,EAAE,KAAK;QAClD,+CAA+C,EAAE,KAAK;QACtD,kCAAkC,EAAE,KAAK;QACzC,2CAA2C,EAAE,KAAK;QAClD,kDAAkD,EAAE,KAAK;QACzD,iCAAiC,EAAE,KAAK;QACxC,+CAA+C,EAAE,KAAK;QACtD,gDAAgD,EAAE,KAAK;QACvD,mCAAmC,EAAE,KAAK;QAC1C,2DAA2D,EAAE,KAAK;KACnE;CAC6B,CAAC"}
|
||||
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
generated
vendored
|
|
@ -84,11 +84,13 @@ const no_throw_literal_1 = __importDefault(require("./no-throw-literal"));
|
|||
const no_type_alias_1 = __importDefault(require("./no-type-alias"));
|
||||
const no_unnecessary_boolean_literal_compare_1 = __importDefault(require("./no-unnecessary-boolean-literal-compare"));
|
||||
const no_unnecessary_condition_1 = __importDefault(require("./no-unnecessary-condition"));
|
||||
const no_unnecessary_parameter_property_assignment_1 = __importDefault(require("./no-unnecessary-parameter-property-assignment"));
|
||||
const no_unnecessary_qualifier_1 = __importDefault(require("./no-unnecessary-qualifier"));
|
||||
const no_unnecessary_template_expression_1 = __importDefault(require("./no-unnecessary-template-expression"));
|
||||
const no_unnecessary_type_arguments_1 = __importDefault(require("./no-unnecessary-type-arguments"));
|
||||
const no_unnecessary_type_assertion_1 = __importDefault(require("./no-unnecessary-type-assertion"));
|
||||
const no_unnecessary_type_constraint_1 = __importDefault(require("./no-unnecessary-type-constraint"));
|
||||
const no_unnecessary_type_parameters_1 = __importDefault(require("./no-unnecessary-type-parameters"));
|
||||
const no_unsafe_argument_1 = __importDefault(require("./no-unsafe-argument"));
|
||||
const no_unsafe_assignment_1 = __importDefault(require("./no-unsafe-assignment"));
|
||||
const no_unsafe_call_1 = __importDefault(require("./no-unsafe-call"));
|
||||
|
|
@ -230,11 +232,13 @@ exports.default = {
|
|||
'no-type-alias': no_type_alias_1.default,
|
||||
'no-unnecessary-boolean-literal-compare': no_unnecessary_boolean_literal_compare_1.default,
|
||||
'no-unnecessary-condition': no_unnecessary_condition_1.default,
|
||||
'no-unnecessary-parameter-property-assignment': no_unnecessary_parameter_property_assignment_1.default,
|
||||
'no-unnecessary-qualifier': no_unnecessary_qualifier_1.default,
|
||||
'no-unnecessary-template-expression': no_unnecessary_template_expression_1.default,
|
||||
'no-unnecessary-type-arguments': no_unnecessary_type_arguments_1.default,
|
||||
'no-unnecessary-type-assertion': no_unnecessary_type_assertion_1.default,
|
||||
'no-unnecessary-type-constraint': no_unnecessary_type_constraint_1.default,
|
||||
'no-unnecessary-type-parameters': no_unnecessary_type_parameters_1.default,
|
||||
'no-unsafe-argument': no_unsafe_argument_1.default,
|
||||
'no-unsafe-assignment': no_unsafe_assignment_1.default,
|
||||
'no-unsafe-call': no_unsafe_call_1.default,
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
31
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js
generated
vendored
31
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js
generated
vendored
|
|
@ -57,6 +57,11 @@ exports.default = (0, util_1.createRule)({
|
|||
{
|
||||
type: 'object',
|
||||
properties: {
|
||||
allowForKnownSafePromises: util_1.readonlynessOptionsSchema.properties.allow,
|
||||
checkThenables: {
|
||||
description: 'Whether to check all "Thenable"s, not just the built-in Promise type.',
|
||||
type: 'boolean',
|
||||
},
|
||||
ignoreVoid: {
|
||||
description: 'Whether to ignore `void` expressions.',
|
||||
type: 'boolean',
|
||||
|
|
@ -65,7 +70,6 @@ exports.default = (0, util_1.createRule)({
|
|||
description: 'Whether to ignore async IIFEs (Immediately Invoked Function Expressions).',
|
||||
type: 'boolean',
|
||||
},
|
||||
allowForKnownSafePromises: util_1.readonlynessOptionsSchema.properties.allow,
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
|
|
@ -74,14 +78,16 @@ exports.default = (0, util_1.createRule)({
|
|||
},
|
||||
defaultOptions: [
|
||||
{
|
||||
allowForKnownSafePromises: util_1.readonlynessOptionsDefaults.allow,
|
||||
checkThenables: true,
|
||||
ignoreVoid: true,
|
||||
ignoreIIFE: false,
|
||||
allowForKnownSafePromises: util_1.readonlynessOptionsDefaults.allow,
|
||||
},
|
||||
],
|
||||
create(context, [options]) {
|
||||
const services = (0, util_1.getParserServices)(context);
|
||||
const checker = services.program.getTypeChecker();
|
||||
const { checkThenables } = options;
|
||||
// TODO: #5439
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const allowForKnownSafePromises = options.allowForKnownSafePromises;
|
||||
|
|
@ -283,17 +289,26 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
return false;
|
||||
}
|
||||
// Modified from tsutils.isThenable() to only consider thenables which can be
|
||||
// rejected/caught via a second parameter. Original source (MIT licensed):
|
||||
//
|
||||
// https://github.com/ajafff/tsutils/blob/49d0d31050b44b81e918eae4fbaf1dfe7b7286af/util/type.ts#L95-L125
|
||||
function isPromiseLike(node, type) {
|
||||
type ??= checker.getTypeAtLocation(node);
|
||||
// Ignore anything specified by `allowForKnownSafePromises` option.
|
||||
// The highest priority is to allow anything allowlisted
|
||||
if (allowForKnownSafePromises.some(allowedType => (0, util_1.typeMatchesSpecifier)(type, allowedType, services.program))) {
|
||||
return false;
|
||||
}
|
||||
for (const ty of tsutils.unionTypeParts(checker.getApparentType(type))) {
|
||||
// Otherwise, we always consider the built-in Promise to be Promise-like...
|
||||
const typeParts = tsutils.unionTypeParts(checker.getApparentType(type));
|
||||
if (typeParts.some(typePart => (0, util_1.isBuiltinSymbolLike)(services.program, typePart, 'Promise'))) {
|
||||
return true;
|
||||
}
|
||||
// ...and only check all Thenables if explicitly told to
|
||||
if (!checkThenables) {
|
||||
return false;
|
||||
}
|
||||
// Modified from tsutils.isThenable() to only consider thenables which can be
|
||||
// rejected/caught via a second parameter. Original source (MIT licensed):
|
||||
//
|
||||
// https://github.com/ajafff/tsutils/blob/49d0d31050b44b81e918eae4fbaf1dfe7b7286af/util/type.ts#L95-L125
|
||||
for (const ty of typeParts) {
|
||||
const then = ty.getProperty('then');
|
||||
if (then === undefined) {
|
||||
continue;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map
generated
vendored
File diff suppressed because one or more lines are too long
21
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js
generated
vendored
21
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js
generated
vendored
|
|
@ -79,15 +79,8 @@ exports.default = (0, util_1.createRule)({
|
|||
tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Function | ts.SymbolFlags.Method)) {
|
||||
return true;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
|
||||
if (symbol && symbol.escapedName === FUNCTION_CONSTRUCTOR) {
|
||||
const declarations = symbol.getDeclarations() ?? [];
|
||||
for (const declaration of declarations) {
|
||||
const sourceFile = declaration.getSourceFile();
|
||||
if (services.program.isSourceFileDefaultLibrary(sourceFile)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if ((0, util_1.isBuiltinSymbolLike)(services.program, type, FUNCTION_CONSTRUCTOR)) {
|
||||
return true;
|
||||
}
|
||||
const signatures = checker.getSignaturesOfType(type, ts.SignatureKind.Call);
|
||||
return signatures.length > 0;
|
||||
|
|
@ -128,13 +121,9 @@ exports.default = (0, util_1.createRule)({
|
|||
const type = services.getTypeAtLocation(node.callee);
|
||||
const symbol = type.getSymbol();
|
||||
if (symbol) {
|
||||
const declarations = symbol.getDeclarations() ?? [];
|
||||
for (const declaration of declarations) {
|
||||
const sourceFile = declaration.getSourceFile();
|
||||
if (services.program.isSourceFileDefaultLibrary(sourceFile)) {
|
||||
context.report({ node, messageId: 'noFunctionConstructor' });
|
||||
return;
|
||||
}
|
||||
if ((0, util_1.isBuiltinSymbolLike)(services.program, type, 'FunctionConstructor')) {
|
||||
context.report({ node, messageId: 'noFunctionConstructor' });
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-implied-eval.js","sourceRoot":"","sources":["../../src/rules/no-implied-eval.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AACxC,+CAAiC;AAEjC,kCAAwD;AAExD,MAAM,oBAAoB,GAAG,UAAU,CAAC;AACxC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AACtE,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,cAAc;IACd,aAAa;IACb,YAAY;IACZ,YAAY;CACb,CAAC,CAAC;AAEH,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IAC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AE,uBAAuB,EAAE,CAAC,CAAC;wBAC7D,OAAO;oBACT,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;oBAC7D,OAAO;gBACT,CAAC;YACH,CAAC;YAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChC,OAAO;YACT,CAAC;YAED,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IACE,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC;gBACjC,CAAC,UAAU,CAAC,OAAO,CAAC;gBACpB,2BAA2B,CAAC,UAAU,EAAE,IAAI,CAAC,EAC7C,CAAC;gBACD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;YACrE,CAAC;QACH,CAAC;QAED,OAAO;YACL,aAAa,EAAE,gBAAgB;YAC/B,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
152
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js
generated
vendored
Normal file
152
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js
generated
vendored
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const scope_manager_1 = require("@typescript-eslint/scope-manager");
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const util_1 = require("../util");
|
||||
const UNNECESSARY_OPERATORS = new Set(['=', '&&=', '||=', '??=']);
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'no-unnecessary-parameter-property-assignment',
|
||||
meta: {
|
||||
docs: {
|
||||
description: 'Disallow unnecessary assignment of constructor property parameter',
|
||||
},
|
||||
fixable: 'code',
|
||||
messages: {
|
||||
unnecessaryAssign: 'This assignment is unnecessary since it is already assigned by a parameter property.',
|
||||
},
|
||||
schema: [],
|
||||
type: 'suggestion',
|
||||
},
|
||||
defaultOptions: [],
|
||||
create(context) {
|
||||
const reportInfoStack = [];
|
||||
function isThisMemberExpression(node) {
|
||||
return (node.type === utils_1.AST_NODE_TYPES.MemberExpression &&
|
||||
node.object.type === utils_1.AST_NODE_TYPES.ThisExpression);
|
||||
}
|
||||
function getPropertyName(node) {
|
||||
if (!isThisMemberExpression(node)) {
|
||||
return null;
|
||||
}
|
||||
if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) {
|
||||
return node.property.name;
|
||||
}
|
||||
if (node.computed) {
|
||||
return (0, util_1.getStaticStringValue)(node.property);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function findParentFunction(node) {
|
||||
if (!node ||
|
||||
node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration ||
|
||||
node.type === utils_1.AST_NODE_TYPES.FunctionExpression ||
|
||||
node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) {
|
||||
return node;
|
||||
}
|
||||
return findParentFunction(node.parent);
|
||||
}
|
||||
function findParentPropertyDefinition(node) {
|
||||
if (!node || node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) {
|
||||
return node;
|
||||
}
|
||||
return findParentPropertyDefinition(node.parent);
|
||||
}
|
||||
function isConstructorFunctionExpression(node) {
|
||||
return (node?.type === utils_1.AST_NODE_TYPES.FunctionExpression &&
|
||||
utils_1.ASTUtils.isConstructor(node.parent));
|
||||
}
|
||||
function isReferenceFromParameter(node) {
|
||||
const scope = context.sourceCode.getScope(node);
|
||||
const rightRef = scope.references.find(ref => ref.identifier.name === node.name);
|
||||
return rightRef?.resolved?.defs.at(0)?.type === scope_manager_1.DefinitionType.Parameter;
|
||||
}
|
||||
function isParameterPropertyWithName(node, name) {
|
||||
return (node.type === utils_1.AST_NODE_TYPES.TSParameterProperty &&
|
||||
((node.parameter.type === utils_1.AST_NODE_TYPES.Identifier && // constructor (public foo) {}
|
||||
node.parameter.name === name) ||
|
||||
(node.parameter.type === utils_1.AST_NODE_TYPES.AssignmentPattern && // constructor (public foo = 1) {}
|
||||
node.parameter.left.type === utils_1.AST_NODE_TYPES.Identifier &&
|
||||
node.parameter.left.name === name)));
|
||||
}
|
||||
function getIdentifier(node) {
|
||||
if (node.type === utils_1.AST_NODE_TYPES.Identifier) {
|
||||
return node;
|
||||
}
|
||||
if (node.type === utils_1.AST_NODE_TYPES.TSAsExpression ||
|
||||
node.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) {
|
||||
return getIdentifier(node.expression);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function isArrowIIFE(node) {
|
||||
return (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression &&
|
||||
node.parent.type === utils_1.AST_NODE_TYPES.CallExpression);
|
||||
}
|
||||
return {
|
||||
ClassBody() {
|
||||
reportInfoStack.push({
|
||||
unnecessaryAssignments: [],
|
||||
assignedBeforeUnnecessary: new Set(),
|
||||
assignedBeforeConstructor: new Set(),
|
||||
});
|
||||
},
|
||||
'ClassBody:exit'() {
|
||||
const { unnecessaryAssignments, assignedBeforeConstructor } = (0, util_1.nullThrows)(reportInfoStack.pop(), 'The top stack should exist');
|
||||
unnecessaryAssignments.forEach(({ name, node }) => {
|
||||
if (assignedBeforeConstructor.has(name)) {
|
||||
return;
|
||||
}
|
||||
context.report({
|
||||
node,
|
||||
messageId: 'unnecessaryAssign',
|
||||
});
|
||||
});
|
||||
},
|
||||
'PropertyDefinition AssignmentExpression'(node) {
|
||||
const name = getPropertyName(node.left);
|
||||
if (!name) {
|
||||
return;
|
||||
}
|
||||
const functionNode = findParentFunction(node);
|
||||
if (functionNode) {
|
||||
if (!(isArrowIIFE(functionNode) &&
|
||||
findParentPropertyDefinition(node)?.value === functionNode.parent)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
const { assignedBeforeConstructor } = (0, util_1.nullThrows)(reportInfoStack.at(-1), 'The top stack should exist');
|
||||
assignedBeforeConstructor.add(name);
|
||||
},
|
||||
"MethodDefinition[kind='constructor'] > FunctionExpression AssignmentExpression"(node) {
|
||||
const leftName = getPropertyName(node.left);
|
||||
if (!leftName) {
|
||||
return;
|
||||
}
|
||||
let functionNode = findParentFunction(node);
|
||||
if (functionNode && isArrowIIFE(functionNode)) {
|
||||
functionNode = findParentFunction(functionNode.parent);
|
||||
}
|
||||
if (!isConstructorFunctionExpression(functionNode)) {
|
||||
return;
|
||||
}
|
||||
const { assignedBeforeUnnecessary, unnecessaryAssignments } = (0, util_1.nullThrows)(reportInfoStack.at(reportInfoStack.length - 1), 'The top of stack should exist');
|
||||
if (!UNNECESSARY_OPERATORS.has(node.operator)) {
|
||||
assignedBeforeUnnecessary.add(leftName);
|
||||
return;
|
||||
}
|
||||
const rightId = getIdentifier(node.right);
|
||||
if (leftName !== rightId?.name || !isReferenceFromParameter(rightId)) {
|
||||
return;
|
||||
}
|
||||
const hasParameterProperty = functionNode.params.some(param => isParameterPropertyWithName(param, rightId.name));
|
||||
if (hasParameterProperty && !assignedBeforeUnnecessary.has(leftName)) {
|
||||
unnecessaryAssignments.push({
|
||||
name: leftName,
|
||||
node,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
//# sourceMappingURL=no-unnecessary-parameter-property-assignment.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
302
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js
generated
vendored
Normal file
302
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js
generated
vendored
Normal file
|
|
@ -0,0 +1,302 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const tsutils = __importStar(require("ts-api-utils"));
|
||||
const ts = __importStar(require("typescript"));
|
||||
const util_1 = require("../util");
|
||||
exports.default = (0, util_1.createRule)({
|
||||
defaultOptions: [],
|
||||
meta: {
|
||||
docs: {
|
||||
description: 'Disallow type parameters that only appear once',
|
||||
requiresTypeChecking: true,
|
||||
},
|
||||
messages: {
|
||||
sole: 'Type parameter {{name}} is used only once.',
|
||||
},
|
||||
schema: [],
|
||||
type: 'problem',
|
||||
},
|
||||
name: 'no-unnecessary-type-parameters',
|
||||
create(context) {
|
||||
const parserServices = (0, util_1.getParserServices)(context);
|
||||
return {
|
||||
[[
|
||||
'ArrowFunctionExpression[typeParameters]',
|
||||
'ClassDeclaration[typeParameters]',
|
||||
'ClassExpression[typeParameters]',
|
||||
'FunctionDeclaration[typeParameters]',
|
||||
'FunctionExpression[typeParameters]',
|
||||
'TSCallSignatureDeclaration[typeParameters]',
|
||||
'TSConstructorType[typeParameters]',
|
||||
'TSDeclareFunction[typeParameters]',
|
||||
'TSEmptyBodyFunctionExpression[typeParameters]',
|
||||
'TSFunctionType[typeParameters]',
|
||||
'TSMethodSignature[typeParameters]',
|
||||
].join(', ')](node) {
|
||||
const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
|
||||
const checker = parserServices.program.getTypeChecker();
|
||||
let counts;
|
||||
for (const typeParameter of tsNode.typeParameters) {
|
||||
const esTypeParameter = parserServices.tsNodeToESTreeNodeMap.get(typeParameter);
|
||||
const scope = context.sourceCode.getScope(esTypeParameter);
|
||||
// Quick path: if the type parameter is used multiple times in the AST,
|
||||
// we don't need to dip into types to know it's repeated.
|
||||
if (isTypeParameterRepeatedInAST(esTypeParameter, scope.references)) {
|
||||
continue;
|
||||
}
|
||||
// For any inferred types, we have to dip into type checking.
|
||||
counts ??= countTypeParameterUsage(checker, tsNode);
|
||||
const identifierCounts = counts.get(typeParameter.name);
|
||||
if (!identifierCounts || identifierCounts > 2) {
|
||||
continue;
|
||||
}
|
||||
context.report({
|
||||
data: {
|
||||
name: typeParameter.name.text,
|
||||
},
|
||||
node: esTypeParameter,
|
||||
messageId: 'sole',
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
function isTypeParameterRepeatedInAST(node, references) {
|
||||
let total = 0;
|
||||
for (const reference of references) {
|
||||
// References inside the type parameter's definition don't count.
|
||||
if (reference.identifier.range[0] < node.range[1] &&
|
||||
reference.identifier.range[1] > node.range[0]) {
|
||||
continue;
|
||||
}
|
||||
// Neither do references that aren't to the same type parameter,
|
||||
// namely value-land (non-type) identifiers of the type parameter's type,
|
||||
// and references to different type parameters or values.
|
||||
if (!reference.isTypeReference ||
|
||||
reference.identifier.name !== node.name.name) {
|
||||
continue;
|
||||
}
|
||||
// If the type parameter is being used as a type argument, then we
|
||||
// know the type parameter is being reused and can't be reported.
|
||||
if (reference.identifier.parent.type === utils_1.AST_NODE_TYPES.TSTypeReference) {
|
||||
const grandparent = skipConstituentsUpward(reference.identifier.parent.parent);
|
||||
if (grandparent.type === utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation &&
|
||||
grandparent.params.includes(reference.identifier.parent)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
total += 1;
|
||||
if (total > 2) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function skipConstituentsUpward(node) {
|
||||
switch (node.type) {
|
||||
case utils_1.AST_NODE_TYPES.TSIntersectionType:
|
||||
case utils_1.AST_NODE_TYPES.TSUnionType:
|
||||
return skipConstituentsUpward(node.parent);
|
||||
default:
|
||||
return node;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Count uses of type parameters in inferred return types.
|
||||
* We need to resolve and analyze the inferred return type of a function
|
||||
* to see whether it contains additional references to the type parameters.
|
||||
* For classes, we need to do this for all their methods.
|
||||
*/
|
||||
function countTypeParameterUsage(checker, node) {
|
||||
const counts = new Map();
|
||||
if (ts.isClassLike(node)) {
|
||||
for (const typeParameter of node.typeParameters) {
|
||||
collectTypeParameterUsageCounts(checker, typeParameter, counts);
|
||||
}
|
||||
for (const member of node.members) {
|
||||
collectTypeParameterUsageCounts(checker, member, counts);
|
||||
}
|
||||
}
|
||||
else {
|
||||
collectTypeParameterUsageCounts(checker, node, counts);
|
||||
}
|
||||
return counts;
|
||||
}
|
||||
/**
|
||||
* Populates {@link foundIdentifierUsages} by the number of times each type parameter
|
||||
* appears in the given type by checking its uses through its type references.
|
||||
* This is essentially a limited subset of the scope manager, but for types.
|
||||
*/
|
||||
function collectTypeParameterUsageCounts(checker, node, foundIdentifierUsages) {
|
||||
const visitedSymbolLists = new Set();
|
||||
const type = checker.getTypeAtLocation(node);
|
||||
const typeUsages = new Map();
|
||||
const visitedConstraints = new Set();
|
||||
let functionLikeType = false;
|
||||
let visitedDefault = false;
|
||||
if (ts.isCallSignatureDeclaration(node) ||
|
||||
ts.isConstructorDeclaration(node)) {
|
||||
functionLikeType = true;
|
||||
visitSignature(checker.getSignatureFromDeclaration(node));
|
||||
}
|
||||
if (!functionLikeType) {
|
||||
visitType(type, false);
|
||||
}
|
||||
function visitType(type, assumeMultipleUses) {
|
||||
// Seeing the same type > (threshold=3 ** 2) times indicates a likely
|
||||
// recursive type, like `type T = { [P in keyof T]: T }`.
|
||||
// If it's not recursive, then heck, we've seen it enough times that any
|
||||
// referenced types have been counted enough to qualify as used.
|
||||
if (!type || incrementTypeUsages(type) > 9) {
|
||||
return;
|
||||
}
|
||||
// https://github.com/JoshuaKGoldberg/ts-api-utils/issues/382
|
||||
if (tsutils.isTypeParameter(type)) {
|
||||
const declaration = type.getSymbol()?.getDeclarations()?.[0];
|
||||
if (declaration) {
|
||||
incrementIdentifierCount(declaration.name, assumeMultipleUses);
|
||||
// Visiting the type of a constrained type parameter will recurse into
|
||||
// the constraint. We avoid infinite loops by visiting each only once.
|
||||
if (declaration.constraint &&
|
||||
!visitedConstraints.has(declaration.constraint)) {
|
||||
visitedConstraints.add(declaration.constraint);
|
||||
visitType(checker.getTypeAtLocation(declaration.constraint), false);
|
||||
}
|
||||
if (declaration.default && !visitedDefault) {
|
||||
visitedDefault = true;
|
||||
visitType(checker.getTypeAtLocation(declaration.default), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Intersections and unions like `0 | 1`
|
||||
else if (tsutils.isUnionOrIntersectionType(type)) {
|
||||
visitTypesList(type.types, assumeMultipleUses);
|
||||
}
|
||||
// Index access types like `T[K]`
|
||||
else if (tsutils.isIndexedAccessType(type)) {
|
||||
visitType(type.objectType, assumeMultipleUses);
|
||||
visitType(type.indexType, assumeMultipleUses);
|
||||
}
|
||||
// Tuple types like `[K, V]`
|
||||
// Generic type references like `Map<K, V>`
|
||||
else if (tsutils.isTupleType(type) || tsutils.isTypeReference(type)) {
|
||||
for (const typeArgument of type.typeArguments ?? []) {
|
||||
visitType(typeArgument, true);
|
||||
}
|
||||
}
|
||||
// Template literals like `a${T}b`
|
||||
else if (tsutils.isTemplateLiteralType(type)) {
|
||||
for (const subType of type.types) {
|
||||
visitType(subType, assumeMultipleUses);
|
||||
}
|
||||
}
|
||||
// Conditional types like `T extends string ? T : never`
|
||||
else if (tsutils.isConditionalType(type)) {
|
||||
visitType(type.checkType, assumeMultipleUses);
|
||||
visitType(type.extendsType, assumeMultipleUses);
|
||||
}
|
||||
// Catch-all: inferred object types like `{ K: V }`.
|
||||
// These catch-alls should be _after_ more specific checks like
|
||||
// `isTypeReference` to avoid descending into all the properties of a
|
||||
// generic interface/class, e.g. `Map<K, V>`.
|
||||
else if (tsutils.isObjectType(type)) {
|
||||
visitSymbolsListOnce(type.getProperties(), false);
|
||||
if (isMappedType(type)) {
|
||||
visitType(type.typeParameter, false);
|
||||
}
|
||||
for (const typeArgument of type.aliasTypeArguments ?? []) {
|
||||
visitType(typeArgument, true);
|
||||
}
|
||||
visitType(type.getNumberIndexType(), true);
|
||||
visitType(type.getStringIndexType(), true);
|
||||
type.getCallSignatures().forEach(signature => {
|
||||
functionLikeType = true;
|
||||
visitSignature(signature);
|
||||
});
|
||||
type.getConstructSignatures().forEach(signature => {
|
||||
functionLikeType = true;
|
||||
visitSignature(signature);
|
||||
});
|
||||
}
|
||||
// Catch-all: operator types like `keyof T`
|
||||
else if (isOperatorType(type)) {
|
||||
visitType(type.type, assumeMultipleUses);
|
||||
}
|
||||
// Catch-all: generic type references like `Exclude<T, null>`
|
||||
else if (type.aliasTypeArguments) {
|
||||
visitTypesList(type.aliasTypeArguments, true);
|
||||
}
|
||||
}
|
||||
function incrementIdentifierCount(id, assumeMultipleUses) {
|
||||
const identifierCount = foundIdentifierUsages.get(id) ?? 0;
|
||||
const value = assumeMultipleUses ? 2 : 1;
|
||||
foundIdentifierUsages.set(id, identifierCount + value);
|
||||
}
|
||||
function incrementTypeUsages(type) {
|
||||
const count = (typeUsages.get(type) ?? 0) + 1;
|
||||
typeUsages.set(type, count);
|
||||
return count;
|
||||
}
|
||||
function visitSignature(signature) {
|
||||
if (!signature) {
|
||||
return;
|
||||
}
|
||||
if (signature.thisParameter) {
|
||||
visitType(checker.getTypeOfSymbol(signature.thisParameter), false);
|
||||
}
|
||||
for (const parameter of signature.parameters) {
|
||||
visitType(checker.getTypeOfSymbol(parameter), false);
|
||||
}
|
||||
for (const typeParameter of signature.getTypeParameters() ?? []) {
|
||||
visitType(typeParameter, false);
|
||||
}
|
||||
visitType(checker.getTypePredicateOfSignature(signature)?.type ??
|
||||
signature.getReturnType(), false);
|
||||
}
|
||||
function visitSymbolsListOnce(symbols, assumeMultipleUses) {
|
||||
if (visitedSymbolLists.has(symbols)) {
|
||||
return;
|
||||
}
|
||||
visitedSymbolLists.add(symbols);
|
||||
for (const symbol of symbols) {
|
||||
visitType(checker.getTypeOfSymbol(symbol), assumeMultipleUses);
|
||||
}
|
||||
}
|
||||
function visitTypesList(types, assumeMultipleUses) {
|
||||
for (const type of types) {
|
||||
visitType(type, assumeMultipleUses);
|
||||
}
|
||||
}
|
||||
}
|
||||
function isMappedType(type) {
|
||||
return 'typeParameter' in type;
|
||||
}
|
||||
function isOperatorType(type) {
|
||||
return 'type' in type && !!type.type;
|
||||
}
|
||||
//# sourceMappingURL=no-unnecessary-type-parameters.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js
generated
vendored
|
|
@ -95,8 +95,8 @@ exports.default = (0, util_1.createRule)({
|
|||
return state;
|
||||
}
|
||||
return {
|
||||
// ignore MemberExpression if it's parent is TSClassImplements or TSInterfaceHeritage
|
||||
':not(TSClassImplements, TSInterfaceHeritage) > MemberExpression': checkMemberExpression,
|
||||
// ignore MemberExpressions with ancestors of type `TSClassImplements` or `TSInterfaceHeritage`
|
||||
'MemberExpression:not(TSClassImplements MemberExpression, TSInterfaceHeritage MemberExpression)': checkMemberExpression,
|
||||
'MemberExpression[computed = true] > *.property'(node) {
|
||||
if (
|
||||
// x[1]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-unsafe-member-access.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-member-access.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,sDAAwC;AAGxC,kCAMiB;AAOjB,SAAS,cAAc,CAAC,IAAa;IACnC,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC;AACjD,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,sBAAsB,EACpB,yDAAyD;YAC3D,0BAA0B,EAAE;gBAC1B,gFAAgF;gBAChF,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,0BAA0B,EACxB,2DAA2D;SAC9D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAC9D,MAAM,gBAAgB,GAAG,O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qBAC3B;iBACF,CAAC,CAAC;YACL,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO;YACL,+FAA+F;YAC/F,gGAAgG,EAC9F,qBAAqB;YACvB,gDAAgD,CAC9C,IAAyB;gBAEzB;gBACE,OAAO;gBACP,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;oBACpC,oBAAoB;oBACpB,+FAA+F;oBAC/F,uEAAuE;oBACvE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAC7C,CAAC;oBACD,6DAA6D;oBAC7D,OAAO;gBACT,CAAC;gBAED,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;gBAE9C,IAAI,IAAA,oBAAa,EAAC,IAAI,CAAC,EAAE,CAAC;oBACxB,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACtD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,4BAA4B;wBACvC,IAAI,EAAE;4BACJ,QAAQ,EAAE,IAAI,YAAY,GAAG;4BAC7B,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;yBAC3B;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
|
|
@ -8,7 +8,7 @@ const optionTesters = [
|
|||
['Any', util_1.isTypeAnyType],
|
||||
[
|
||||
'Array',
|
||||
(type, checker, recursivelyCheckType) => checker.isArrayType(type) &&
|
||||
(type, checker, recursivelyCheckType) => (checker.isArrayType(type) || checker.isTupleType(type)) &&
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
recursivelyCheckType(type.getNumberIndexType()),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"restrict-template-expressions.js","sourceRoot":"","sources":["../../src/rules/restrict-template-expressions.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gBACT,CAAC;gBAED,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;oBAC1C,MAAM,cAAc,GAAG,IAAA,mCAA4B,EACjD,QAAQ,EACR,UAAU,CACX,CAAC;oBAEF,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,CAAC;wBAC1C,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,UAAU;4BAChB,SAAS,EAAE,aAAa;4BACxB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE;yBACrD,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;QAEF,SAAS,oBAAoB,CAAC,SAAe;YAC3C,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;gBACxB,OAAO,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,SAAS,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC/B,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACpD,CAAC;YAED,OAAO,CACL,IAAA,oBAAa,EAAC,SAAS,EAAE,sBAAS,CAAC,UAAU,CAAC;gBAC9C,oBAAoB,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACvC,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,oBAAoB,CAAC,CACjD,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
||||
{"version":3,"file":"restrict-template-expressions.js","sourceRoot":"","sources":["../../src/rules/restrict-template-expressions.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,2CAAuC;AAEvC,kCAQiB;AAQjB,MAAM,YAAY,GAChB,CAAC,YAAuB,EAAgB,EAAE,CAC1C,IAAI,CAAC,EAAE,CACL,IAAA,oBAAa,EAAC,IAAI,EAAE,YA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,EACR,UAAU,CACX,CAAC;oBAEF,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,CAAC;wBAC1C,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,UAAU;4BAChB,SAAS,EAAE,aAAa;4BACxB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE;yBACrD,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;QAEF,SAAS,oBAAoB,CAAC,SAAe;YAC3C,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;gBACxB,OAAO,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,SAAS,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC/B,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACpD,CAAC;YAED,OAAO,CACL,IAAA,oBAAa,EAAC,SAAS,EAAE,sBAAS,CAAC,UAAU,CAAC;gBAC9C,oBAAoB,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACvC,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,oBAAoB,CAAC,CACjD,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
||||
File diff suppressed because one or more lines are too long
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-methods-use-this.mdx
generated
vendored
|
|
@ -31,7 +31,7 @@ const defaultOptions: Options = {
|
|||
|
||||
### `ignoreOverrideMethods`
|
||||
|
||||
Makes the rule to ignores any class member explicitly marked with `override`.
|
||||
Makes the rule ignore any class member explicitly marked with `override`.
|
||||
|
||||
Example of a correct code when `ignoreOverrideMethods` is set to `true`:
|
||||
|
||||
|
|
|
|||
49
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx
generated
vendored
49
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx
generated
vendored
|
|
@ -84,6 +84,55 @@ await Promise.all([1, 2, 3].map(async x => x + 1));
|
|||
|
||||
## Options
|
||||
|
||||
### `checkThenables`
|
||||
|
||||
A ["Thenable"](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#thenables) value is an object which has a `then` method, such as a `Promise`.
|
||||
Other Thenables include TypeScript's built-in `PromiseLike` interface and any custom object that happens to have a `.then()`.
|
||||
|
||||
The `checkThenables` option triggers `no-floating-promises` to also consider all values that satisfy the Thenable shape (a `.then()` method that takes two callback parameters), not just Promises.
|
||||
This can be useful if your code works with older `Promise` polyfills instead of the native `Promise` class.
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="❌ Incorrect">
|
||||
|
||||
```ts option='{"checkThenables": true}'
|
||||
declare function createPromiseLike(): PromiseLike<string>;
|
||||
|
||||
createPromiseLike();
|
||||
|
||||
interface MyThenable {
|
||||
then(onFulfilled: () => void, onRejected: () => void): MyThenable;
|
||||
}
|
||||
|
||||
declare function createMyThenable(): MyThenable;
|
||||
|
||||
createMyThenable();
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="✅ Correct">
|
||||
|
||||
```ts option='{"checkThenables": true}'
|
||||
declare function createPromiseLike(): PromiseLike<string>;
|
||||
|
||||
await createPromiseLike();
|
||||
|
||||
interface MyThenable {
|
||||
then(onFulfilled: () => void, onRejected: () => void): MyThenable;
|
||||
}
|
||||
|
||||
declare function createMyThenable(): MyThenable;
|
||||
|
||||
await createMyThenable();
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
:::info
|
||||
This option is enabled by default in v7 but will be turned off by default in v8.
|
||||
:::
|
||||
|
||||
### `ignoreVoid`
|
||||
|
||||
This option, which is `true` by default, allows you to stop the rule reporting promises consumed with void operator.
|
||||
|
|
|
|||
42
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx
generated
vendored
Normal file
42
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
description: 'Disallow unnecessary assignment of constructor property parameter.'
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
> 🛑 This file is source code, not the primary documentation location! 🛑
|
||||
>
|
||||
> See **https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment** for documentation.
|
||||
|
||||
[TypeScript's parameter properties](https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties) allow creating and initializing a member in one place.
|
||||
Therefore, in most cases, it is not necessary to assign parameter properties of the same name to members within a constructor.
|
||||
|
||||
## Examples
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="❌ Incorrect">
|
||||
|
||||
```ts
|
||||
class Foo {
|
||||
constructor(public bar: string) {
|
||||
this.bar = bar;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="✅ Correct">
|
||||
|
||||
```ts
|
||||
class Foo {
|
||||
constructor(public bar: string) {}
|
||||
}
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## When Not To Use It
|
||||
|
||||
If you don't use parameter properties, you can ignore this rule.
|
||||
115
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx
generated
vendored
Normal file
115
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx
generated
vendored
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
---
|
||||
description: 'Disallow type parameters that only appear once.'
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
> 🛑 This file is source code, not the primary documentation location! 🛑
|
||||
>
|
||||
> See **https://typescript-eslint.io/rules/no-unnecessary-type-parameters** for documentation.
|
||||
|
||||
This rule forbids type parameters that only appear once in a function, method, or class definition.
|
||||
|
||||
Type parameters relate two types.
|
||||
If a type parameter only appears once, then it is not relating anything.
|
||||
It can usually be replaced with explicit types such as `unknown`.
|
||||
|
||||
At best unnecessary type parameters make code harder to read.
|
||||
At worst they can be used to disguise unsafe type assertions.
|
||||
|
||||
:::warning Early Stage
|
||||
This rule was recently added to typescript-eslint and still considered experimental.
|
||||
It might change significantly between minor versions.
|
||||
Please try it out and give us feedback!
|
||||
:::
|
||||
|
||||
## Examples
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="❌ Incorrect">
|
||||
|
||||
```ts
|
||||
function second<A, B>(a: A, b: B): B {
|
||||
return b;
|
||||
}
|
||||
|
||||
function parseJSON<T>(input: string): T {
|
||||
return JSON.parse(input);
|
||||
}
|
||||
|
||||
function printProperty<T, K extends keyof T>(obj: T, key: K) {
|
||||
console.log(obj[key]);
|
||||
}
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="✅ Correct">
|
||||
|
||||
```ts
|
||||
function second<B>(a: unknown, b: B): B {
|
||||
return b;
|
||||
}
|
||||
|
||||
function parseJSON(input: string): unknown {
|
||||
return JSON.parse(input);
|
||||
}
|
||||
|
||||
function printProperty<T>(obj: T, key: keyof T) {
|
||||
console.log(obj[key]);
|
||||
}
|
||||
|
||||
// T appears twice: in the type of arg and as the return type
|
||||
function identity<T>(arg: T): T {
|
||||
return arg;
|
||||
}
|
||||
|
||||
// T appears twice: "keyof T" and in the inferred return type (T[K]).
|
||||
// K appears twice: "key: K" and in the inferred return type (T[K]).
|
||||
function getProperty<T, K extends keyof T>(obj: T, key: K) {
|
||||
return obj[key];
|
||||
}
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Limitations
|
||||
|
||||
Note that this rule allows any type parameter that is used multiple times, even if those uses are via a type argument.
|
||||
For example, the following `T` is used multiple times by virtue of being in an `Array`, even though its name only appears once after declaration:
|
||||
|
||||
```ts
|
||||
declare function createStateHistory<T>(): T[];
|
||||
```
|
||||
|
||||
This is because the type parameter `T` relates multiple methods in the `T[]` together, making it used more than once.
|
||||
|
||||
Therefore, this rule won't report on type parameters used as a type argument.
|
||||
That includes type arguments given to global types such as `Array` (including the `T[]` shorthand and in tuples), `Map`, and `Set`.
|
||||
|
||||
## When Not To Use It
|
||||
|
||||
This rule will report on functions that use type parameters solely to test types, for example:
|
||||
|
||||
```ts
|
||||
function assertType<T>(arg: T) {}
|
||||
|
||||
assertType<number>(123);
|
||||
assertType<number>('abc');
|
||||
// ~~~~~
|
||||
// Argument of type 'string' is not assignable to parameter of type 'number'.
|
||||
```
|
||||
|
||||
If you're using this pattern then you'll want to disable this rule on files that test types.
|
||||
|
||||
## Further Reading
|
||||
|
||||
- TypeScript handbook: [Type Parameters Should Appear Twice](https://microsoft.github.io/TypeScript-New-Handbook/everything/#type-parameters-should-appear-twice)
|
||||
- Effective TypeScript: [The Golden Rule of Generics](https://effectivetypescript.com/2020/08/12/generics-golden-rule/)
|
||||
|
||||
## Related To
|
||||
|
||||
- eslint-plugin-etc's [`no-misused-generics`](https://github.com/cartant/eslint-plugin-etc/blob/main/docs/rules/no-misused-generics.md)
|
||||
- wotan's [`no-misused-generics`](https://github.com/fimbullinter/wotan/blob/master/packages/mimir/docs/no-misused-generics.md)
|
||||
- DefinitelyTyped-tools' [`no-unnecessary-generics`](https://github.com/microsoft/DefinitelyTyped-tools/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-generics.md)
|
||||
14
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
14
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/eslint-plugin",
|
||||
"version": "7.15.0",
|
||||
"version": "7.16.0",
|
||||
"description": "TypeScript plugin for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -60,10 +60,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.10.0",
|
||||
"@typescript-eslint/scope-manager": "7.15.0",
|
||||
"@typescript-eslint/type-utils": "7.15.0",
|
||||
"@typescript-eslint/utils": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0",
|
||||
"@typescript-eslint/scope-manager": "7.16.0",
|
||||
"@typescript-eslint/type-utils": "7.16.0",
|
||||
"@typescript-eslint/utils": "7.16.0",
|
||||
"@typescript-eslint/visitor-keys": "7.16.0",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.3.1",
|
||||
"natural-compare": "^1.4.0",
|
||||
|
|
@ -74,8 +74,8 @@
|
|||
"@types/marked": "^5.0.2",
|
||||
"@types/mdast": "^4.0.3",
|
||||
"@types/natural-compare": "*",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "7.15.0",
|
||||
"@typescript-eslint/rule-tester": "7.15.0",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "7.16.0",
|
||||
"@typescript-eslint/rule-tester": "7.16.0",
|
||||
"ajv": "^6.12.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"cross-fetch": "*",
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC;KACvB;IAED,UAAU,OAAO;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC;KAChB;CACF;AAED,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,iEAAiD"}
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
{
|
||||
"name": "@typescript-eslint/types",
|
||||
"version": "7.15.0",
|
||||
"description": "Types for the TypeScript-ESTree AST spec",
|
||||
"files": [
|
||||
"dist",
|
||||
"_ts4.3",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"type": "commonjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/typescript-eslint/typescript-eslint.git",
|
||||
"directory": "packages/types"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
|
||||
},
|
||||
"homepage": "https://typescript-eslint.io",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"typescript",
|
||||
"estree"
|
||||
],
|
||||
"scripts": {
|
||||
"copy-ast-spec": "tsx ./tools/copy-ast-spec.ts",
|
||||
"build": "tsc -b tsconfig.build.json",
|
||||
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
|
||||
"clean": "tsc -b tsconfig.build.json --clean",
|
||||
"postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
|
||||
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
|
||||
"generate-lib": "npx nx run scope-manager:generate-lib",
|
||||
"lint": "npx nx lint",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"nx": {
|
||||
"targets": {
|
||||
"copy-ast-spec": {
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
],
|
||||
"outputs": [
|
||||
"{projectRoot}/src/generated"
|
||||
],
|
||||
"cache": true
|
||||
},
|
||||
"build": {
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"copy-ast-spec"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "29.6.3",
|
||||
"downlevel-dts": "*",
|
||||
"prettier": "^3.2.5",
|
||||
"rimraf": "*",
|
||||
"tsx": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"typesVersions": {
|
||||
"<4.7": {
|
||||
"*": [
|
||||
"_ts4.3/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
10
node_modules/@typescript-eslint/parser/package.json
generated
vendored
10
node_modules/@typescript-eslint/parser/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/parser",
|
||||
"version": "7.15.0",
|
||||
"version": "7.16.0",
|
||||
"description": "An ESLint custom parser which leverages TypeScript ESTree",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -52,10 +52,10 @@
|
|||
"eslint": "^8.56.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "7.15.0",
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/typescript-estree": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0",
|
||||
"@typescript-eslint/scope-manager": "7.16.0",
|
||||
"@typescript-eslint/types": "7.16.0",
|
||||
"@typescript-eslint/typescript-estree": "7.16.0",
|
||||
"@typescript-eslint/visitor-keys": "7.16.0",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2019 typescript-eslint and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# `@typescript-eslint/types`
|
||||
|
||||
> Types for the TypeScript-ESTree AST spec
|
||||
|
||||
This package exists to help us reduce cycles and provide lighter-weight packages at runtime.
|
||||
|
||||
## ✋ Internal Package
|
||||
|
||||
This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint).
|
||||
You likely don't want to use it directly.
|
||||
|
||||
👉 See **https://typescript-eslint.io** for docs on typescript-eslint.
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -1,202 +0,0 @@
|
|||
"use strict";
|
||||
/**********************************************
|
||||
* DO NOT MODIFY THIS FILE MANUALLY *
|
||||
* *
|
||||
* THIS FILE HAS BEEN COPIED FROM ast-spec. *
|
||||
* ANY CHANGES WILL BE LOST ON THE NEXT BUILD *
|
||||
* *
|
||||
* MAKE CHANGES TO ast-spec AND THEN RUN *
|
||||
* yarn build *
|
||||
**********************************************/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
||||
var AST_NODE_TYPES;
|
||||
(function (AST_NODE_TYPES) {
|
||||
AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty";
|
||||
AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression";
|
||||
AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern";
|
||||
AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression";
|
||||
AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression";
|
||||
AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern";
|
||||
AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression";
|
||||
AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression";
|
||||
AST_NODE_TYPES["BlockStatement"] = "BlockStatement";
|
||||
AST_NODE_TYPES["BreakStatement"] = "BreakStatement";
|
||||
AST_NODE_TYPES["CallExpression"] = "CallExpression";
|
||||
AST_NODE_TYPES["CatchClause"] = "CatchClause";
|
||||
AST_NODE_TYPES["ChainExpression"] = "ChainExpression";
|
||||
AST_NODE_TYPES["ClassBody"] = "ClassBody";
|
||||
AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration";
|
||||
AST_NODE_TYPES["ClassExpression"] = "ClassExpression";
|
||||
AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression";
|
||||
AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement";
|
||||
AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement";
|
||||
AST_NODE_TYPES["Decorator"] = "Decorator";
|
||||
AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement";
|
||||
AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement";
|
||||
AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration";
|
||||
AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration";
|
||||
AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration";
|
||||
AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier";
|
||||
AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement";
|
||||
AST_NODE_TYPES["ForInStatement"] = "ForInStatement";
|
||||
AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement";
|
||||
AST_NODE_TYPES["ForStatement"] = "ForStatement";
|
||||
AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration";
|
||||
AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression";
|
||||
AST_NODE_TYPES["Identifier"] = "Identifier";
|
||||
AST_NODE_TYPES["IfStatement"] = "IfStatement";
|
||||
AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute";
|
||||
AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration";
|
||||
AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier";
|
||||
AST_NODE_TYPES["ImportExpression"] = "ImportExpression";
|
||||
AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier";
|
||||
AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier";
|
||||
AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute";
|
||||
AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement";
|
||||
AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment";
|
||||
AST_NODE_TYPES["JSXElement"] = "JSXElement";
|
||||
AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression";
|
||||
AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer";
|
||||
AST_NODE_TYPES["JSXFragment"] = "JSXFragment";
|
||||
AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier";
|
||||
AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression";
|
||||
AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName";
|
||||
AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement";
|
||||
AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment";
|
||||
AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute";
|
||||
AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild";
|
||||
AST_NODE_TYPES["JSXText"] = "JSXText";
|
||||
AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement";
|
||||
AST_NODE_TYPES["Literal"] = "Literal";
|
||||
AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression";
|
||||
AST_NODE_TYPES["MemberExpression"] = "MemberExpression";
|
||||
AST_NODE_TYPES["MetaProperty"] = "MetaProperty";
|
||||
AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition";
|
||||
AST_NODE_TYPES["NewExpression"] = "NewExpression";
|
||||
AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression";
|
||||
AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern";
|
||||
AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier";
|
||||
AST_NODE_TYPES["Program"] = "Program";
|
||||
AST_NODE_TYPES["Property"] = "Property";
|
||||
AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition";
|
||||
AST_NODE_TYPES["RestElement"] = "RestElement";
|
||||
AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement";
|
||||
AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression";
|
||||
AST_NODE_TYPES["SpreadElement"] = "SpreadElement";
|
||||
AST_NODE_TYPES["StaticBlock"] = "StaticBlock";
|
||||
AST_NODE_TYPES["Super"] = "Super";
|
||||
AST_NODE_TYPES["SwitchCase"] = "SwitchCase";
|
||||
AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement";
|
||||
AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression";
|
||||
AST_NODE_TYPES["TemplateElement"] = "TemplateElement";
|
||||
AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral";
|
||||
AST_NODE_TYPES["ThisExpression"] = "ThisExpression";
|
||||
AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement";
|
||||
AST_NODE_TYPES["TryStatement"] = "TryStatement";
|
||||
AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression";
|
||||
AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression";
|
||||
AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration";
|
||||
AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator";
|
||||
AST_NODE_TYPES["WhileStatement"] = "WhileStatement";
|
||||
AST_NODE_TYPES["WithStatement"] = "WithStatement";
|
||||
AST_NODE_TYPES["YieldExpression"] = "YieldExpression";
|
||||
/**
|
||||
* TS-prefixed nodes
|
||||
*/
|
||||
AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty";
|
||||
AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword";
|
||||
AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition";
|
||||
AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition";
|
||||
AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword";
|
||||
AST_NODE_TYPES["TSArrayType"] = "TSArrayType";
|
||||
AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression";
|
||||
AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword";
|
||||
AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword";
|
||||
AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword";
|
||||
AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration";
|
||||
AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements";
|
||||
AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType";
|
||||
AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType";
|
||||
AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration";
|
||||
AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction";
|
||||
AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword";
|
||||
AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression";
|
||||
AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration";
|
||||
AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember";
|
||||
AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment";
|
||||
AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword";
|
||||
AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference";
|
||||
AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType";
|
||||
AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression";
|
||||
AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration";
|
||||
AST_NODE_TYPES["TSImportType"] = "TSImportType";
|
||||
AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType";
|
||||
AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature";
|
||||
AST_NODE_TYPES["TSInferType"] = "TSInferType";
|
||||
AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody";
|
||||
AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration";
|
||||
AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage";
|
||||
AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType";
|
||||
AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword";
|
||||
AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType";
|
||||
AST_NODE_TYPES["TSMappedType"] = "TSMappedType";
|
||||
AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature";
|
||||
AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock";
|
||||
AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration";
|
||||
AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember";
|
||||
AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration";
|
||||
AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword";
|
||||
AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression";
|
||||
AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword";
|
||||
AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword";
|
||||
AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword";
|
||||
AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType";
|
||||
AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty";
|
||||
AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword";
|
||||
AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature";
|
||||
AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword";
|
||||
AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword";
|
||||
AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName";
|
||||
AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword";
|
||||
AST_NODE_TYPES["TSRestType"] = "TSRestType";
|
||||
AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression";
|
||||
AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword";
|
||||
AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword";
|
||||
AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword";
|
||||
AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType";
|
||||
AST_NODE_TYPES["TSThisType"] = "TSThisType";
|
||||
AST_NODE_TYPES["TSTupleType"] = "TSTupleType";
|
||||
AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration";
|
||||
AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation";
|
||||
AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion";
|
||||
AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral";
|
||||
AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator";
|
||||
AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter";
|
||||
AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration";
|
||||
AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation";
|
||||
AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate";
|
||||
AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery";
|
||||
AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference";
|
||||
AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword";
|
||||
AST_NODE_TYPES["TSUnionType"] = "TSUnionType";
|
||||
AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword";
|
||||
AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword";
|
||||
})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {}));
|
||||
var AST_TOKEN_TYPES;
|
||||
(function (AST_TOKEN_TYPES) {
|
||||
AST_TOKEN_TYPES["Boolean"] = "Boolean";
|
||||
AST_TOKEN_TYPES["Identifier"] = "Identifier";
|
||||
AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier";
|
||||
AST_TOKEN_TYPES["JSXText"] = "JSXText";
|
||||
AST_TOKEN_TYPES["Keyword"] = "Keyword";
|
||||
AST_TOKEN_TYPES["Null"] = "Null";
|
||||
AST_TOKEN_TYPES["Numeric"] = "Numeric";
|
||||
AST_TOKEN_TYPES["Punctuator"] = "Punctuator";
|
||||
AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression";
|
||||
AST_TOKEN_TYPES["String"] = "String";
|
||||
AST_TOKEN_TYPES["Template"] = "Template";
|
||||
AST_TOKEN_TYPES["Block"] = "Block";
|
||||
AST_TOKEN_TYPES["Line"] = "Line";
|
||||
})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {}));
|
||||
//# sourceMappingURL=ast-spec.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ast-spec.js","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;gDAQgD;;;AAmFhD,IAAY,cA2KX;AA3KD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,qEAAmD,CAAA;IACnD,+DAA6C,CAAA;IAC7C,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iEAA+C,CAAA;IAC/C,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;IACvC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,+DAA6C,CAAA;IAC7C,uEAAqD,CAAA;IACrD,mEAAiD,CAAA;IACjD,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,6DAA2C,CAAA;IAC3C,2DAAyC,CAAA;IACzC,2CAAyB,CAAA;IACzB,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yDAAuC,CAAA;IACvC,mEAAiD,CAAA;IACjD,uDAAqC,CAAA;IACrC,uEAAqD,CAAA;IACrD,qDAAmC,CAAA;IACnC,+CAA6B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D,CAAA;IACzD,+EAA6D,CAAA;IAC7D,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,2DAAyC,CAAA;IACzC,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,iDAA+B,CAAA;AACjC,CAAC,EA3KW,cAAc,8BAAd,cAAc,QA2KzB;AAED,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,0DAAuC,CAAA;IACvC,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,gCAAa,CAAA;AACf,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B"}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec';
|
||||
export * from './lib';
|
||||
export * from './parser-options';
|
||||
export * from './ts-estree';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
||||
var ast_spec_1 = require("./generated/ast-spec");
|
||||
Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } });
|
||||
Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } });
|
||||
__exportStar(require("./lib"), exports);
|
||||
__exportStar(require("./parser-options"), exports);
|
||||
__exportStar(require("./ts-estree"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'esnext' | 'dom' | 'dom.iterable' | 'dom.asynciterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'webworker.asynciterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2016.intl' | 'es2017.date' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' | 'es2022.regexp' | 'es2023.array' | 'es2023.collection' | 'es2023.intl' | 'esnext.array' | 'esnext.collection' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.disposable' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'esnext.decorators' | 'esnext.object' | 'esnext.regexp' | 'decorators' | 'decorators.legacy' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'es2022.full' | 'es2023.full' | 'esnext.full' | 'lib';
|
||||
export { Lib };
|
||||
//# sourceMappingURL=lib.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAKA,KAAK,GAAG,GACJ,KAAK,GACL,KAAK,GACL,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,cAAc,GACd,mBAAmB,GACnB,WAAW,GACX,yBAAyB,GACzB,oBAAoB,GACpB,yBAAyB,GACzB,YAAY,GACZ,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,yBAAyB,GACzB,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,GACb,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,cAAc,GACd,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,sBAAsB,GACtB,aAAa,GACb,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,KAAK,CAAC;AAEV,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
|
||||
// npx nx generate-lib @typescript-eslint/repo-tools
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=lib.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,oDAAoD"}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
import type { Program } from 'typescript';
|
||||
import type { Lib } from './lib';
|
||||
type DebugLevel = ('eslint' | 'typescript-eslint' | 'typescript')[] | boolean;
|
||||
type CacheDurationSeconds = number | 'Infinity';
|
||||
type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 'latest' | undefined;
|
||||
type SourceTypeClassic = 'module' | 'script';
|
||||
type SourceType = SourceTypeClassic | 'commonjs';
|
||||
type JSDocParsingMode = 'all' | 'none' | 'type-info';
|
||||
interface ParserOptions {
|
||||
ecmaFeatures?: {
|
||||
globalReturn?: boolean | undefined;
|
||||
jsx?: boolean | undefined;
|
||||
[key: string]: unknown;
|
||||
} | undefined;
|
||||
ecmaVersion?: EcmaVersion;
|
||||
jsxPragma?: string | null;
|
||||
jsxFragmentName?: string | null;
|
||||
lib?: Lib[];
|
||||
emitDecoratorMetadata?: boolean;
|
||||
experimentalDecorators?: boolean;
|
||||
comment?: boolean;
|
||||
debugLevel?: DebugLevel;
|
||||
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
|
||||
errorOnUnknownASTType?: boolean;
|
||||
EXPERIMENTAL_useProjectService?: boolean;
|
||||
EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean;
|
||||
extraFileExtensions?: string[];
|
||||
filePath?: string;
|
||||
jsDocParsingMode?: JSDocParsingMode;
|
||||
loc?: boolean;
|
||||
programs?: Program[] | null;
|
||||
project?: string[] | string | boolean | null;
|
||||
projectFolderIgnoreList?: string[];
|
||||
range?: boolean;
|
||||
sourceType?: SourceType | undefined;
|
||||
tokens?: boolean;
|
||||
tsconfigRootDir?: string;
|
||||
warnOnUnsupportedTypeScriptVersion?: boolean;
|
||||
cacheLifetime?: {
|
||||
glob?: CacheDurationSeconds;
|
||||
};
|
||||
[additionalProperties: string]: unknown;
|
||||
}
|
||||
export { CacheDurationSeconds, DebugLevel, EcmaVersion, JSDocParsingMode, ParserOptions, SourceType, };
|
||||
//# sourceMappingURL=parser-options.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,KAAK,UAAU,GAAG,CAAC,QAAQ,GAAG,mBAAmB,GAAG,YAAY,CAAC,EAAE,GAAG,OAAO,CAAC;AAC9E,KAAK,oBAAoB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhD,KAAK,WAAW,GACZ,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,SAAS,CAAC;AAEd,KAAK,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7C,KAAK,UAAU,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAEjD,KAAK,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;AAGrD,UAAU,aAAa;IACrB,YAAY,CAAC,EACT;QACE,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QACnC,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,GACD,SAAS,CAAC;IACd,WAAW,CAAC,EA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
|
|
@ -1,3 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=parser-options.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
import type * as TSESTree from './generated/ast-spec';
|
||||
declare module './generated/ast-spec' {
|
||||
interface BaseNode {
|
||||
parent: TSESTree.Node;
|
||||
}
|
||||
interface Program {
|
||||
/**
|
||||
* @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly.
|
||||
*/
|
||||
parent?: never;
|
||||
}
|
||||
}
|
||||
export * as TSESTree from './generated/ast-spec';
|
||||
//# sourceMappingURL=ts-estree.d.ts.map
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TSESTree = void 0;
|
||||
exports.TSESTree = __importStar(require("./generated/ast-spec"));
|
||||
//# sourceMappingURL=ts-estree.js.map
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
{
|
||||
"name": "@typescript-eslint/types",
|
||||
"version": "7.15.0",
|
||||
"description": "Types for the TypeScript-ESTree AST spec",
|
||||
"files": [
|
||||
"dist",
|
||||
"_ts4.3",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"type": "commonjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/typescript-eslint/typescript-eslint.git",
|
||||
"directory": "packages/types"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
|
||||
},
|
||||
"homepage": "https://typescript-eslint.io",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"typescript",
|
||||
"estree"
|
||||
],
|
||||
"scripts": {
|
||||
"copy-ast-spec": "tsx ./tools/copy-ast-spec.ts",
|
||||
"build": "tsc -b tsconfig.build.json",
|
||||
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
|
||||
"clean": "tsc -b tsconfig.build.json --clean",
|
||||
"postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
|
||||
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
|
||||
"generate-lib": "npx nx run scope-manager:generate-lib",
|
||||
"lint": "npx nx lint",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"nx": {
|
||||
"targets": {
|
||||
"copy-ast-spec": {
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
],
|
||||
"outputs": [
|
||||
"{projectRoot}/src/generated"
|
||||
],
|
||||
"cache": true
|
||||
},
|
||||
"build": {
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"copy-ast-spec"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "29.6.3",
|
||||
"downlevel-dts": "*",
|
||||
"prettier": "^3.2.5",
|
||||
"rimraf": "*",
|
||||
"tsx": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"typesVersions": {
|
||||
"<4.7": {
|
||||
"*": [
|
||||
"_ts4.3/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
8
node_modules/@typescript-eslint/scope-manager/package.json
generated
vendored
8
node_modules/@typescript-eslint/scope-manager/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/scope-manager",
|
||||
"version": "7.15.0",
|
||||
"version": "7.16.0",
|
||||
"description": "TypeScript scope analyser for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -46,13 +46,13 @@
|
|||
"typecheck": "npx nx typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "7.15.0",
|
||||
"@typescript-eslint/visitor-keys": "7.15.0"
|
||||
"@typescript-eslint/types": "7.16.0",
|
||||
"@typescript-eslint/visitor-keys": "7.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "29.6.3",
|
||||
"@types/glob": "*",
|
||||
"@typescript-eslint/typescript-estree": "7.15.0",
|
||||
"@typescript-eslint/typescript-estree": "7.16.0",
|
||||
"glob": "*",
|
||||
"jest-specific-snapshot": "*",
|
||||
"make-dir": "*",
|
||||
|
|
|
|||
21
node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/LICENSE
generated
vendored
21
node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types/LICENSE
generated
vendored
|
|
@ -1,21 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2019 typescript-eslint and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# `@typescript-eslint/types`
|
||||
|
||||
> Types for the TypeScript-ESTree AST spec
|
||||
|
||||
This package exists to help us reduce cycles and provide lighter-weight packages at runtime.
|
||||
|
||||
## ✋ Internal Package
|
||||
|
||||
This is an _internal package_ to the [typescript-eslint monorepo](https://github.com/typescript-eslint/typescript-eslint).
|
||||
You likely don't want to use it directly.
|
||||
|
||||
👉 See **https://typescript-eslint.io** for docs on typescript-eslint.
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -1,202 +0,0 @@
|
|||
"use strict";
|
||||
/**********************************************
|
||||
* DO NOT MODIFY THIS FILE MANUALLY *
|
||||
* *
|
||||
* THIS FILE HAS BEEN COPIED FROM ast-spec. *
|
||||
* ANY CHANGES WILL BE LOST ON THE NEXT BUILD *
|
||||
* *
|
||||
* MAKE CHANGES TO ast-spec AND THEN RUN *
|
||||
* yarn build *
|
||||
**********************************************/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
||||
var AST_NODE_TYPES;
|
||||
(function (AST_NODE_TYPES) {
|
||||
AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty";
|
||||
AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression";
|
||||
AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern";
|
||||
AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression";
|
||||
AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression";
|
||||
AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern";
|
||||
AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression";
|
||||
AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression";
|
||||
AST_NODE_TYPES["BlockStatement"] = "BlockStatement";
|
||||
AST_NODE_TYPES["BreakStatement"] = "BreakStatement";
|
||||
AST_NODE_TYPES["CallExpression"] = "CallExpression";
|
||||
AST_NODE_TYPES["CatchClause"] = "CatchClause";
|
||||
AST_NODE_TYPES["ChainExpression"] = "ChainExpression";
|
||||
AST_NODE_TYPES["ClassBody"] = "ClassBody";
|
||||
AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration";
|
||||
AST_NODE_TYPES["ClassExpression"] = "ClassExpression";
|
||||
AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression";
|
||||
AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement";
|
||||
AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement";
|
||||
AST_NODE_TYPES["Decorator"] = "Decorator";
|
||||
AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement";
|
||||
AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement";
|
||||
AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration";
|
||||
AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration";
|
||||
AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration";
|
||||
AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier";
|
||||
AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement";
|
||||
AST_NODE_TYPES["ForInStatement"] = "ForInStatement";
|
||||
AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement";
|
||||
AST_NODE_TYPES["ForStatement"] = "ForStatement";
|
||||
AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration";
|
||||
AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression";
|
||||
AST_NODE_TYPES["Identifier"] = "Identifier";
|
||||
AST_NODE_TYPES["IfStatement"] = "IfStatement";
|
||||
AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute";
|
||||
AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration";
|
||||
AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier";
|
||||
AST_NODE_TYPES["ImportExpression"] = "ImportExpression";
|
||||
AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier";
|
||||
AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier";
|
||||
AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute";
|
||||
AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement";
|
||||
AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment";
|
||||
AST_NODE_TYPES["JSXElement"] = "JSXElement";
|
||||
AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression";
|
||||
AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer";
|
||||
AST_NODE_TYPES["JSXFragment"] = "JSXFragment";
|
||||
AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier";
|
||||
AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression";
|
||||
AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName";
|
||||
AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement";
|
||||
AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment";
|
||||
AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute";
|
||||
AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild";
|
||||
AST_NODE_TYPES["JSXText"] = "JSXText";
|
||||
AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement";
|
||||
AST_NODE_TYPES["Literal"] = "Literal";
|
||||
AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression";
|
||||
AST_NODE_TYPES["MemberExpression"] = "MemberExpression";
|
||||
AST_NODE_TYPES["MetaProperty"] = "MetaProperty";
|
||||
AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition";
|
||||
AST_NODE_TYPES["NewExpression"] = "NewExpression";
|
||||
AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression";
|
||||
AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern";
|
||||
AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier";
|
||||
AST_NODE_TYPES["Program"] = "Program";
|
||||
AST_NODE_TYPES["Property"] = "Property";
|
||||
AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition";
|
||||
AST_NODE_TYPES["RestElement"] = "RestElement";
|
||||
AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement";
|
||||
AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression";
|
||||
AST_NODE_TYPES["SpreadElement"] = "SpreadElement";
|
||||
AST_NODE_TYPES["StaticBlock"] = "StaticBlock";
|
||||
AST_NODE_TYPES["Super"] = "Super";
|
||||
AST_NODE_TYPES["SwitchCase"] = "SwitchCase";
|
||||
AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement";
|
||||
AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression";
|
||||
AST_NODE_TYPES["TemplateElement"] = "TemplateElement";
|
||||
AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral";
|
||||
AST_NODE_TYPES["ThisExpression"] = "ThisExpression";
|
||||
AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement";
|
||||
AST_NODE_TYPES["TryStatement"] = "TryStatement";
|
||||
AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression";
|
||||
AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression";
|
||||
AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration";
|
||||
AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator";
|
||||
AST_NODE_TYPES["WhileStatement"] = "WhileStatement";
|
||||
AST_NODE_TYPES["WithStatement"] = "WithStatement";
|
||||
AST_NODE_TYPES["YieldExpression"] = "YieldExpression";
|
||||
/**
|
||||
* TS-prefixed nodes
|
||||
*/
|
||||
AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty";
|
||||
AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword";
|
||||
AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition";
|
||||
AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition";
|
||||
AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword";
|
||||
AST_NODE_TYPES["TSArrayType"] = "TSArrayType";
|
||||
AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression";
|
||||
AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword";
|
||||
AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword";
|
||||
AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword";
|
||||
AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration";
|
||||
AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements";
|
||||
AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType";
|
||||
AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType";
|
||||
AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration";
|
||||
AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction";
|
||||
AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword";
|
||||
AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression";
|
||||
AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration";
|
||||
AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember";
|
||||
AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment";
|
||||
AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword";
|
||||
AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference";
|
||||
AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType";
|
||||
AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression";
|
||||
AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration";
|
||||
AST_NODE_TYPES["TSImportType"] = "TSImportType";
|
||||
AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType";
|
||||
AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature";
|
||||
AST_NODE_TYPES["TSInferType"] = "TSInferType";
|
||||
AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody";
|
||||
AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration";
|
||||
AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage";
|
||||
AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType";
|
||||
AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword";
|
||||
AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType";
|
||||
AST_NODE_TYPES["TSMappedType"] = "TSMappedType";
|
||||
AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature";
|
||||
AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock";
|
||||
AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration";
|
||||
AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember";
|
||||
AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration";
|
||||
AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword";
|
||||
AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression";
|
||||
AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword";
|
||||
AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword";
|
||||
AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword";
|
||||
AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType";
|
||||
AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty";
|
||||
AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword";
|
||||
AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature";
|
||||
AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword";
|
||||
AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword";
|
||||
AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName";
|
||||
AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword";
|
||||
AST_NODE_TYPES["TSRestType"] = "TSRestType";
|
||||
AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression";
|
||||
AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword";
|
||||
AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword";
|
||||
AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword";
|
||||
AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType";
|
||||
AST_NODE_TYPES["TSThisType"] = "TSThisType";
|
||||
AST_NODE_TYPES["TSTupleType"] = "TSTupleType";
|
||||
AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration";
|
||||
AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation";
|
||||
AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion";
|
||||
AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral";
|
||||
AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator";
|
||||
AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter";
|
||||
AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration";
|
||||
AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation";
|
||||
AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate";
|
||||
AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery";
|
||||
AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference";
|
||||
AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword";
|
||||
AST_NODE_TYPES["TSUnionType"] = "TSUnionType";
|
||||
AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword";
|
||||
AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword";
|
||||
})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {}));
|
||||
var AST_TOKEN_TYPES;
|
||||
(function (AST_TOKEN_TYPES) {
|
||||
AST_TOKEN_TYPES["Boolean"] = "Boolean";
|
||||
AST_TOKEN_TYPES["Identifier"] = "Identifier";
|
||||
AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier";
|
||||
AST_TOKEN_TYPES["JSXText"] = "JSXText";
|
||||
AST_TOKEN_TYPES["Keyword"] = "Keyword";
|
||||
AST_TOKEN_TYPES["Null"] = "Null";
|
||||
AST_TOKEN_TYPES["Numeric"] = "Numeric";
|
||||
AST_TOKEN_TYPES["Punctuator"] = "Punctuator";
|
||||
AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression";
|
||||
AST_TOKEN_TYPES["String"] = "String";
|
||||
AST_TOKEN_TYPES["Template"] = "Template";
|
||||
AST_TOKEN_TYPES["Block"] = "Block";
|
||||
AST_TOKEN_TYPES["Line"] = "Line";
|
||||
})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {}));
|
||||
//# sourceMappingURL=ast-spec.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ast-spec.js","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;gDAQgD;;;AAmFhD,IAAY,cA2KX;AA3KD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,qEAAmD,CAAA;IACnD,+DAA6C,CAAA;IAC7C,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iEAA+C,CAAA;IAC/C,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;IACvC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,+DAA6C,CAAA;IAC7C,uEAAqD,CAAA;IACrD,mEAAiD,CAAA;IACjD,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,6DAA2C,CAAA;IAC3C,2DAAyC,CAAA;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AC/C,2CAAyB,CAAA;IACzB,6CAA2B,CAAA;IAC3B,mEAAiD,CAAA;IACjD,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,2EAAyD,CAAA;IACzD,+EAA6D,CAAA;IAC7D,qDAAmC,CAAA;IACnC,6CAA2B,CAAA;IAC3B,qDAAmC,CAAA;IACnC,2DAAyC,CAAA;IACzC,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,iDAA+B,CAAA;AACjC,CAAC,EA3KW,cAAc,8BAAd,cAAc,QA2KzB;AAED,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,kDAA+B,CAAA;IAC/B,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,sCAAmB,CAAA;IACnB,4CAAyB,CAAA;IACzB,0DAAuC,CAAA;IACvC,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,gCAAa,CAAA;AACf,CAAC,EAdW,eAAe,+BAAf,eAAe,QAc1B"}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec';
|
||||
export * from './lib';
|
||||
export * from './parser-options';
|
||||
export * from './ts-estree';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
||||
var ast_spec_1 = require("./generated/ast-spec");
|
||||
Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } });
|
||||
Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } });
|
||||
__exportStar(require("./lib"), exports);
|
||||
__exportStar(require("./parser-options"), exports);
|
||||
__exportStar(require("./ts-estree"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'esnext' | 'dom' | 'dom.iterable' | 'dom.asynciterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'webworker.asynciterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2016.intl' | 'es2017.date' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' | 'es2022.regexp' | 'es2023.array' | 'es2023.collection' | 'es2023.intl' | 'esnext.array' | 'esnext.collection' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.disposable' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'esnext.decorators' | 'esnext.object' | 'esnext.regexp' | 'decorators' | 'decorators.legacy' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'es2022.full' | 'es2023.full' | 'esnext.full' | 'lib';
|
||||
export { Lib };
|
||||
//# sourceMappingURL=lib.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAKA,KAAK,GAAG,GACJ,KAAK,GACL,KAAK,GACL,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,cAAc,GACd,mBAAmB,GACnB,WAAW,GACX,yBAAyB,GACzB,oBAAoB,GACpB,yBAAyB,GACzB,YAAY,GACZ,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,yBAAyB,GACzB,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,GACb,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,cAAc,GACd,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,sBAAsB,GACtB,aAAa,GACb,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,KAAK,CAAC;AAEV,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
"use strict";
|
||||
// THIS CODE WAS AUTOMATICALLY GENERATED
|
||||
// DO NOT EDIT THIS CODE BY HAND
|
||||
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
|
||||
// npx nx generate-lib @typescript-eslint/repo-tools
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=lib.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,oDAAoD"}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
import type { Program } from 'typescript';
|
||||
import type { Lib } from './lib';
|
||||
type DebugLevel = ('eslint' | 'typescript-eslint' | 'typescript')[] | boolean;
|
||||
type CacheDurationSeconds = number | 'Infinity';
|
||||
type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 'latest' | undefined;
|
||||
type SourceTypeClassic = 'module' | 'script';
|
||||
type SourceType = SourceTypeClassic | 'commonjs';
|
||||
type JSDocParsingMode = 'all' | 'none' | 'type-info';
|
||||
interface ParserOptions {
|
||||
ecmaFeatures?: {
|
||||
globalReturn?: boolean | undefined;
|
||||
jsx?: boolean | undefined;
|
||||
[key: string]: unknown;
|
||||
} | undefined;
|
||||
ecmaVersion?: EcmaVersion;
|
||||
jsxPragma?: string | null;
|
||||
jsxFragmentName?: string | null;
|
||||
lib?: Lib[];
|
||||
emitDecoratorMetadata?: boolean;
|
||||
experimentalDecorators?: boolean;
|
||||
comment?: boolean;
|
||||
debugLevel?: DebugLevel;
|
||||
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
|
||||
errorOnUnknownASTType?: boolean;
|
||||
EXPERIMENTAL_useProjectService?: boolean;
|
||||
EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean;
|
||||
extraFileExtensions?: string[];
|
||||
filePath?: string;
|
||||
jsDocParsingMode?: JSDocParsingMode;
|
||||
loc?: boolean;
|
||||
programs?: Program[] | null;
|
||||
project?: string[] | string | boolean | null;
|
||||
projectFolderIgnoreList?: string[];
|
||||
range?: boolean;
|
||||
sourceType?: SourceType | undefined;
|
||||
tokens?: boolean;
|
||||
tsconfigRootDir?: string;
|
||||
warnOnUnsupportedTypeScriptVersion?: boolean;
|
||||
cacheLifetime?: {
|
||||
glob?: CacheDurationSeconds;
|
||||
};
|
||||
[additionalProperties: string]: unknown;
|
||||
}
|
||||
export { CacheDurationSeconds, DebugLevel, EcmaVersion, JSDocParsingMode, ParserOptions, SourceType, };
|
||||
//# sourceMappingURL=parser-options.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,KAAK,UAAU,GAAG,CAAC,QAAQ,GAAG,mBAAmB,GAAG,YAAY,CAAC,EAAE,GAAG,OAAO,CAAC;AAC9E,KAAK,oBAAoB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhD,KAAK,WAAW,GACZ,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,SAAS,CAAC;AAEd,KAAK,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC7C,KAAK,UAAU,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAEjD,KAAK,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,CAAC;AAGrD,UAAU,aAAa;IACrB,YAAY,CAAC,EACT;QACE,YAA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,CAAC;KAC7B,CAAC;IAEF,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC;AAED,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,UAAU,GACX,CAAC"}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=parser-options.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
import type * as TSESTree from './generated/ast-spec';
|
||||
declare module './generated/ast-spec' {
|
||||
interface BaseNode {
|
||||
parent: TSESTree.Node;
|
||||
}
|
||||
interface Program {
|
||||
/**
|
||||
* @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly.
|
||||
*/
|
||||
parent?: never;
|
||||
}
|
||||
}
|
||||
export * as TSESTree from './generated/ast-spec';
|
||||
//# sourceMappingURL=ts-estree.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC;KACvB;IAED,UAAU,OAAO;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC;KAChB;CACF;AAED,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TSESTree = void 0;
|
||||
exports.TSESTree = __importStar(require("./generated/ast-spec"));
|
||||
//# sourceMappingURL=ts-estree.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,iEAAiD"}
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
{
|
||||
"name": "@typescript-eslint/types",
|
||||
"version": "7.15.0",
|
||||
"description": "Types for the TypeScript-ESTree AST spec",
|
||||
"files": [
|
||||
"dist",
|
||||
"_ts4.3",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"type": "commonjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"engines": {
|
||||
"node": "^18.18.0 || >=20.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/typescript-eslint/typescript-eslint.git",
|
||||
"directory": "packages/types"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
|
||||
},
|
||||
"homepage": "https://typescript-eslint.io",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"typescript",
|
||||
"estree"
|
||||
],
|
||||
"scripts": {
|
||||
"copy-ast-spec": "tsx ./tools/copy-ast-spec.ts",
|
||||
"build": "tsc -b tsconfig.build.json",
|
||||
"postbuild": "downlevel-dts dist _ts4.3/dist --to=4.3",
|
||||
"clean": "tsc -b tsconfig.build.json --clean",
|
||||
"postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
|
||||
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
|
||||
"generate-lib": "npx nx run scope-manager:generate-lib",
|
||||
"lint": "npx nx lint",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"nx": {
|
||||
"targets": {
|
||||
"copy-ast-spec": {
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
],
|
||||
"outputs": [
|
||||
"{projectRoot}/src/generated"
|
||||
],
|
||||
"cache": true
|
||||
},
|
||||
"build": {
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"copy-ast-spec"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "29.6.3",
|
||||
"downlevel-dts": "*",
|
||||
"prettier": "^3.2.5",
|
||||
"rimraf": "*",
|
||||
"tsx": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"typesVersions": {
|
||||
"<4.7": {
|
||||
"*": [
|
||||
"_ts4.3/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
TypeScript ESTree
|
||||
|
||||
Originally extracted from:
|
||||
|
||||
TypeScript ESLint Parser
|
||||
Copyright JS Foundation and other contributors, https://js.foundation
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
# `@typescript-eslint/typescript-estree`
|
||||
|
||||
> A parser that produces an ESTree-compatible AST for TypeScript code.
|
||||
|
||||
[](https://www.npmjs.com/package/@typescript-eslint/utils)
|
||||
[](https://www.npmjs.com/package/@typescript-eslint/utils)
|
||||
|
||||
## Contributing
|
||||
|
||||
👉 See **https://typescript-eslint.io/packages/typescript-estree** for documentation on this package.
|
||||
|
||||
> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
|
||||
|
||||
<!-- Local path for docs: docs/packages/TypeScript_ESTree.mdx -->
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import type { SourceFile } from 'typescript';
|
||||
import type { ASTMaps } from './convert';
|
||||
import type { ParseSettings } from './parseSettings';
|
||||
import type { TSESTree } from './ts-estree';
|
||||
export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): {
|
||||
estree: TSESTree.Program;
|
||||
astMaps: ASTMaps;
|
||||
};
|
||||
//# sourceMappingURL=ast-converter.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"ast-converter.d.ts","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,aAAa,EAAE,aAAa,EAC5B,sBAAsB,EAAE,OAAO,GAC9B;IAAE,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CA4DhD"}
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.astConverter = astConverter;
|
||||
const convert_1 = require("./convert");
|
||||
const convert_comments_1 = require("./convert-comments");
|
||||
const node_utils_1 = require("./node-utils");
|
||||
const simple_traverse_1 = require("./simple-traverse");
|
||||
function astConverter(ast, parseSettings, shouldPreserveNodeMaps) {
|
||||
/**
|
||||
* The TypeScript compiler produced fundamental parse errors when parsing the
|
||||
* source.
|
||||
*/
|
||||
const { parseDiagnostics } = ast;
|
||||
if (parseDiagnostics.length) {
|
||||
throw (0, convert_1.convertError)(parseDiagnostics[0]);
|
||||
}
|
||||
/**
|
||||
* Recursively convert the TypeScript AST into an ESTree-compatible AST
|
||||
*/
|
||||
const instance = new convert_1.Converter(ast, {
|
||||
allowInvalidAST: parseSettings.allowInvalidAST,
|
||||
errorOnUnknownASTType: parseSettings.errorOnUnknownASTType,
|
||||
shouldPreserveNodeMaps,
|
||||
suppressDeprecatedPropertyWarnings: parseSettings.suppressDeprecatedPropertyWarnings,
|
||||
});
|
||||
const estree = instance.convertProgram();
|
||||
/**
|
||||
* Optionally remove range and loc if specified
|
||||
*/
|
||||
if (!parseSettings.range || !parseSettings.loc) {
|
||||
(0, simple_traverse_1.simpleTraverse)(estree, {
|
||||
enter: node => {
|
||||
if (!parseSettings.range) {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional
|
||||
// @ts-expect-error
|
||||
delete node.range;
|
||||
}
|
||||
if (!parseSettings.loc) {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional
|
||||
// @ts-expect-error
|
||||
delete node.loc;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Optionally convert and include all tokens in the AST
|
||||
*/
|
||||
if (parseSettings.tokens) {
|
||||
estree.tokens = (0, node_utils_1.convertTokens)(ast);
|
||||
}
|
||||
/**
|
||||
* Optionally convert and include all comments in the AST
|
||||
*/
|
||||
if (parseSettings.comment) {
|
||||
estree.comments = (0, convert_comments_1.convertComments)(ast, parseSettings.codeFullText);
|
||||
}
|
||||
const astMaps = instance.getASTMaps();
|
||||
return { estree, astMaps };
|
||||
}
|
||||
//# sourceMappingUR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,CAAC;QACzB,MAAM,CAAC,MAAM,GAAG,IAAA,0BAAa,EAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;QAC1B,MAAM,CAAC,QAAQ,GAAG,IAAA,kCAAe,EAAC,GAAG,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;IAEtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC"}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
/**
|
||||
* Clears all of the internal caches.
|
||||
* Generally you shouldn't need or want to use this.
|
||||
* Examples of intended uses:
|
||||
* - In tests to reset parser state to keep tests isolated.
|
||||
* - In custom lint tooling that iteratively lints one project at a time to prevent OOMs.
|
||||
*/
|
||||
export declare function clearCaches(): void;
|
||||
export declare const clearProgramCache: typeof clearCaches;
|
||||
//# sourceMappingURL=clear-caches.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"clear-caches.d.ts","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAOlC;AAGD,eAAO,MAAM,iBAAiB,oBAAc,CAAC"}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.clearProgramCache = void 0;
|
||||
exports.clearCaches = clearCaches;
|
||||
const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects");
|
||||
const parser_1 = require("./parser");
|
||||
const createParseSettings_1 = require("./parseSettings/createParseSettings");
|
||||
const resolveProjectList_1 = require("./parseSettings/resolveProjectList");
|
||||
/**
|
||||
* Clears all of the internal caches.
|
||||
* Generally you shouldn't need or want to use this.
|
||||
* Examples of intended uses:
|
||||
* - In tests to reset parser state to keep tests isolated.
|
||||
* - In custom lint tooling that iteratively lints one project at a time to prevent OOMs.
|
||||
*/
|
||||
function clearCaches() {
|
||||
(0, parser_1.clearDefaultProjectMatchedFiles)();
|
||||
(0, parser_1.clearProgramCache)();
|
||||
(0, getWatchProgramsForProjects_1.clearWatchCaches)();
|
||||
(0, createParseSettings_1.clearTSConfigMatchCache)();
|
||||
(0, createParseSettings_1.clearTSServerProjectService)();
|
||||
(0, resolveProjectList_1.clearGlobCache)();
|
||||
}
|
||||
// TODO - delete this in next major
|
||||
exports.clearProgramCache = clearCaches;
|
||||
//# sourceMappingURL=clear-caches.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"clear-caches.js","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":";;;AAkBA,kCAOC;AAzBD,8FAAgF;AAChF,qCAGkB;AAClB,6EAG6C;AAC7C,2EAAoE;AAEpE;;;;;;GAMG;AACH,SAAgB,WAAW;IACzB,IAAA,wCAA+B,GAAE,CAAC;IAClC,IAAA,0BAAyB,GAAE,CAAC;IAC5B,IAAA,8CAAgB,GAAE,CAAC;IACnB,IAAA,6CAAuB,GAAE,CAAC;IAC1B,IAAA,iDAA2B,GAAE,CAAC;IAC9B,IAAA,mCAAc,GAAE,CAAC;AACnB,CAAC;AAED,mCAAmC;AACtB,QAAA,iBAAiB,GAAG,WAAW,CAAC"}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
import type { TSESTree } from './ts-estree';
|
||||
/**
|
||||
* Convert all comments for the given AST.
|
||||
* @param ast the AST object
|
||||
* @param code the TypeScript code
|
||||
* @returns the converted ESTreeComment
|
||||
* @private
|
||||
*/
|
||||
export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[];
|
||||
//# sourceMappingURL=convert-comments.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"convert-comments.d.ts","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,EAClB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,OAAO,EAAE,CAgCpB"}
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.convertComments = convertComments;
|
||||
const tsutils = __importStar(require("ts-api-utils"));
|
||||
const ts = __importStar(require("typescript"));
|
||||
const node_utils_1 = require("./node-utils");
|
||||
const ts_estree_1 = require("./ts-estree");
|
||||
/**
|
||||
* Convert all comments for the given AST.
|
||||
* @param ast the AST object
|
||||
* @param code the TypeScript code
|
||||
* @returns the converted ESTreeComment
|
||||
* @private
|
||||
*/
|
||||
function convertComments(ast, code) {
|
||||
const comments = [];
|
||||
tsutils.forEachComment(ast, (_, comment) => {
|
||||
const type = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia
|
||||
? ts_estree_1.AST_TOKEN_TYPES.Line
|
||||
: ts_estree_1.AST_TOKEN_TYPES.Block;
|
||||
const range = [comment.pos, comment.end];
|
||||
const loc = (0, node_utils_1.getLocFor)(range, ast);
|
||||
// both comments start with 2 characters - /* or //
|
||||
const textStart = range[0] + 2;
|
||||
const textEnd = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia
|
||||
? // single line comments end at the end
|
||||
range[1] - textStart
|
||||
: // multiline comments end 2 characters early
|
||||
range[1] - textStart - 2;
|
||||
comments.push({
|
||||
type,
|
||||
value: code.slice(textStart, textStart + textEnd),
|
||||
range,
|
||||
loc,
|
||||
});
|
||||
}, ast);
|
||||
return comments;
|
||||
}
|
||||
//# sourceMappingURL=convert-comments.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"convert-comments.js","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAcA,0CAmCC;AAjDD,sDAAwC;AACxC,+CAAiC;AAEjC,6CAAyC;AAEzC,2CAA8C;AAE9C;;;;;;GAMG;AACH,SAAgB,eAAe,CAC7B,GAAkB,EAClB,IAAY;IAEZ,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,OAAO,CAAC,cAAc,CACpB,GAAG,EACH,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACb,MAAM,IAAI,GACR,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,2BAAe,CAAC,IAAI;YACtB,CAAC,CAAC,2BAAe,CAAC,KAAK,CAAC;QAC5B,MAAM,KAAK,GAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,IAAA,sBAAS,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAElC,mDAAmD;QACnD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/B,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,uBAAuB;YACpD,CAAC,CAAC,sCAAsC;gBACtC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS;YACtB,CAAC,CAAC,4CAA4C;gBAC5C,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI;YACJ,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;YACjD,KAAK;YACL,GAAG;SACJ,CAAC,CAAC;IACL,CAAC,EACD,GAAG,CACJ,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
||||
|
|
@ -1,137 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
import type { TSError } from './node-utils';
|
||||
import type { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options';
|
||||
import type { SemanticOrSyntacticError } from './semantic-or-syntactic-errors';
|
||||
import type { TSESTree, TSNode } from './ts-estree';
|
||||
export interface ConverterOptions {
|
||||
allowInvalidAST?: boolean;
|
||||
errorOnUnknownASTType?: boolean;
|
||||
shouldPreserveNodeMaps?: boolean;
|
||||
suppressDeprecatedPropertyWarnings?: boolean;
|
||||
}
|
||||
/**
|
||||
* Extends and formats a given error object
|
||||
* @param error the error object
|
||||
* @returns converted error object
|
||||
*/
|
||||
export declare function convertError(error: SemanticOrSyntacticError | ts.DiagnosticWithLocation): TSError;
|
||||
export interface ASTMaps {
|
||||
esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
|
||||
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode, TSESTree.Node>;
|
||||
}
|
||||
export declare class Converter {
|
||||
#private;
|
||||
private readonly ast;
|
||||
private readonly options;
|
||||
private readonly esTreeNodeToTSNodeMap;
|
||||
private readonly tsNodeToESTreeNodeMap;
|
||||
private allowPattern;
|
||||
/**
|
||||
* Converts a TypeScript node into an ESTree node
|
||||
* @param ast the full TypeScript AST
|
||||
* @param options additional options for the conversion
|
||||
* @returns the converted ESTreeNode
|
||||
*/
|
||||
constructor(ast: ts.SourceFile, options?: ConverterOptions);
|
||||
getASTMaps(): ASTMaps;
|
||||
convertProgram(): TSESTree.Program;
|
||||
/**
|
||||
* Converts a TypeScript node into an ESTree node.
|
||||
* @param node the child ts.Node
|
||||
* @param parent parentNode
|
||||
* @param allowPattern flag to determine if patterns are allowed
|
||||
* @returns the converted ESTree node
|
||||
*/
|
||||
private converter;
|
||||
/**
|
||||
* Fixes the exports of the given ts.Node
|
||||
* @returns the ESTreeNode with fixed exports
|
||||
*/
|
||||
private fixExports;
|
||||
/**
|
||||
* Register specific TypeScript node into map with first ESTree node provided
|
||||
*/
|
||||
private registerTSNodeInNodeMap;
|
||||
/**
|
||||
* Converts a TypeScript node into an ESTree node.
|
||||
* @param child the child ts.Node
|
||||
* @param parent parentNode
|
||||
* @returns the converted ESTree node
|
||||
*/
|
||||
private convertPattern;
|
||||
/**
|
||||
* Converts a TypeScript node into an ESTree node.
|
||||
* @param child the child ts.Node
|
||||
* @param parent parentNode
|
||||
* @returns the converted ESTree node
|
||||
*/
|
||||
private convertChild;
|
||||
private createNode;
|
||||
private convertBindingNameWithTypeAnnotation;
|
||||
/**
|
||||
* Converts a child into a type annotation. This creates an intermediary
|
||||
* TypeAnnotation node to match what Flow does.
|
||||
* @param child The TypeScript AST node to convert.
|
||||
* @param parent parentNode
|
||||
* @returns The type annotation node.
|
||||
*/
|
||||
private convertTypeAnnotation;
|
||||
/**
|
||||
* Coverts body Nodes and add a directive field to StringLiterals
|
||||
* @param nodes of ts.Node
|
||||
* @param parent parentNode
|
||||
* @returns Array of body statements
|
||||
*/
|
||||
private convertBodyExpressions;
|
||||
/**
|
||||
* Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node
|
||||
* @param typeArguments ts.NodeArray typeArguments
|
||||
* @param node parent used to create this node
|
||||
* @returns TypeParameterInstantiation node
|
||||
*/
|
||||
private convertTypeArgumentsToTypeParameterInstantiation;
|
||||
/**
|
||||
* Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node
|
||||
* @param typeParameters ts.Node typeParameters
|
||||
* @returns TypeParameterDeclaration node
|
||||
*/
|
||||
private convertTSTypeParametersToTypeParametersDeclaration;
|
||||
/**
|
||||
* Converts an array of ts.Node parameters into an array of ESTreeNode params
|
||||
* @param parameters An array of ts.Node params to be converted
|
||||
* @returns an array of converted ESTreeNode params
|
||||
*/
|
||||
private convertParameters;
|
||||
private convertChainExpression;
|
||||
/**
|
||||
* For nodes that are copied directly from the TypeScript AST into
|
||||
* ESTree mostly as-is. The only difference is the addition of a type
|
||||
* property instead of a kind property. Recursively copies all children.
|
||||
*/
|
||||
private deeplyCopy;
|
||||
private convertJSXIdentifier;
|
||||
private convertJSXNamespaceOrIdentifier;
|
||||
/**
|
||||
* Converts a TypeScript JSX node.tagName into an ESTree node.name
|
||||
* @param node the tagName object from a JSX ts.Node
|
||||
* @returns the converted ESTree name object
|
||||
*/
|
||||
private convertJSXTagName;
|
||||
private convertMethodSignature;
|
||||
private convertImportAttributes;
|
||||
/**
|
||||
* Uses the provided range location to adjust the location data of the given Node
|
||||
* @param result The node that will have its location data mutated
|
||||
* @param childRange The child node range used to expand location
|
||||
*/
|
||||
private fixParentLocation;
|
||||
private assertModuleSpecifier;
|
||||
/**
|
||||
* Converts a TypeScript node into an ESTree node.
|
||||
* The core of the conversion logic:
|
||||
* Identify and convert each relevant TypeScript SyntaxKind
|
||||
* @returns the converted ESTree node
|
||||
*/
|
||||
private convertNode;
|
||||
}
|
||||
//# sourceMappingURL=convert.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version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;OAGG;IACH,OAAO,CAAC,UAAU;IAiFlB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,oCAAoC;IAe5C;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,sBAAsB;IA4C9B;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA+FlB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAiDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B,OAAO,CAAC,uBAAuB;IAQ/B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,WAAW;CAswFpB"}
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -1,13 +0,0 @@
|
|||
import type * as ts from 'typescript';
|
||||
interface DirectoryStructureHost {
|
||||
readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[];
|
||||
}
|
||||
interface CachedDirectoryStructureHost extends DirectoryStructureHost {
|
||||
readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[];
|
||||
}
|
||||
interface WatchCompilerHostOfConfigFile<T extends ts.BuilderProgram> extends ts.WatchCompilerHostOfConfigFile<T> {
|
||||
onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void;
|
||||
extraFileExtensions?: readonly ts.FileExtensionInfo[];
|
||||
}
|
||||
export { WatchCompilerHostOfConfigFile };
|
||||
//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"WatchCompilerHostOfConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAGtC,UAAU,sBAAsB;IAC9B,aAAa,CAAC,CACZ,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,aAAa,CACX,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,EAC3B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,6BAA6B,CAAC,CAAC,SAAS,EAAE,CAAC,cAAc,CACjE,SAAQ,EAAE,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC3C,oCAAoC,CAClC,IAAI,EAAE,4BAA4B,GACjC,IAAI,CAAC;IACR,mBAAmB,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,EAAE,CAAC;CACvD;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
"use strict";
|
||||
// These types are internal to TS.
|
||||
// They have been trimmed down to only include the relevant bits
|
||||
// We use some special internal TS apis to help us do our parsing flexibly
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=WatchCompilerHostOfConfigFile.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"WatchCompilerHostOfConfigFile.js","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,gEAAgE;AAChE,0EAA0E"}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import type { ParseSettings } from '../parseSettings';
|
||||
import type { ASTAndDefiniteProgram } from './shared';
|
||||
/**
|
||||
* @param parseSettings Internal settings for parsing the file
|
||||
* @returns If found, returns the source file corresponding to the code and the containing program
|
||||
* @deprecated
|
||||
* This is a legacy option that comes with severe performance penalties.
|
||||
* Please do not use it.
|
||||
*/
|
||||
declare function createDefaultProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined;
|
||||
export { createDefaultProgram };
|
||||
//# sourceMappingURL=createDefaultProgram.d.ts.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"createDefaultProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createDefaultProgram.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAKtD;;;;;;GAMG;AACH,iBAAS,oBAAoB,CAC3B,aAAa,EAAE,aAAa,GAC3B,qBAAqB,GAAG,SAAS,CAiDnC;AAGD,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue