Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies and typescript version to latest #51

Merged
merged 11 commits into from
Feb 6, 2024
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "pnpm test",
"name": "Run tests and Debug",
"request": "launch",
"type": "node-terminal"
}
]
}
8 changes: 4 additions & 4 deletions dist/rules/no-internal-barrel-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ const rule = {

const thisModule = importNodeTs.getSourceFile();

const importInfo = ts.getResolvedModule(
const importInfo = program.getResolvedModule(
aruniverse marked this conversation as resolved.
Show resolved Hide resolved
thisModule,
importNodeTs.moduleSpecifier.text
);
).resolvedModule;

const importIsPackage =
importInfo === undefined || importInfo.isExternalLibraryImport;
Expand Down Expand Up @@ -224,10 +224,10 @@ const rule = {
child.moduleSpecifier !== undefined &&
!child.isTypeOnly;
if (!potentialReExport) return;
const transitiveImportInfo = ts.getResolvedModule(
const transitiveImportInfo = program.getResolvedModule(
importedModule,
child.moduleSpecifier.text
);
).resolvedModule;
const reExportsExternalPackage =
transitiveImportInfo === undefined ||
transitiveImportInfo.isExternalLibraryImport;
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,33 @@
"url": "http://www.bentley.com"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "~5.55.0",
"@typescript-eslint/parser": "~5.55.0",
"eslint-import-resolver-node": "0.3.4",
paulius-valiunas marked this conversation as resolved.
Show resolved Hide resolved
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-deprecation": "^1.4.1",
"eslint-plugin-import": "^2.27.5",
"@typescript-eslint/eslint-plugin": "~6.19.1",
"@typescript-eslint/parser": "~6.19.1",
"eslint-import-resolver-node": "0.3.9",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-deprecation": "^2.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jam3": "^0.2.3",
"eslint-plugin-jsdoc": "^43.2.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-jsdoc": "^48.0.3",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"workspace-tools": "^0.34.6"
"workspace-tools": "^0.36.4"
},
"peerDependencies": {
"eslint": "^8.36.0",
"typescript": "^3.7.0 || ^4.0.0 || ^5.0.0"
},
"devDependencies": {
"@types/eslint": "~7.2.14",
"@types/estree": "~0.0.52",
"@types/node": "^18.16.6",
aruniverse marked this conversation as resolved.
Show resolved Hide resolved
"@typescript-eslint/typescript-estree": "~5.55.0",
"beachball": "^2.32.2",
"eslint": "^8.40.0",
"husky": "^8.0.3",
"@types/eslint": "~8.56.2",
"@types/estree": "~1.0.5",
"@types/node": "^20.11.6",
"@typescript-eslint/typescript-estree": "~6.19.1",
"beachball": "^2.39.0",
"eslint": "^8.56.0",
"husky": "^9.0.5",
"mocha": "^10.2.0",
"typescript": "~5.0.4"
"typescript": "~5.3.3"
}
}
Loading
Loading