Skip to content

Commit

Permalink
Upgrade to TypeScript 5 (#644)
Browse files Browse the repository at this point in the history
* chore: upgrade to TypeScript 5

* chore: add changeset

* fix: use public registry

* fix: fix linting dependencies and errors

* fix: use public registry

* Trigger new Chromatic build
  • Loading branch information
daneah committed Nov 2, 2023
1 parent ff057f1 commit 55c263f
Show file tree
Hide file tree
Showing 9 changed files with 759 additions and 883 deletions.
7 changes: 7 additions & 0 deletions .changeset/fast-dodos-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@ithaka/pharos': patch
'@ithaka/pharos-cli': patch
'@ithaka/pharos-site': patch
---

Upgrade to TypeScript 5
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
"@storybook/web-components": "^7.2.1",
"@storybook/web-components-vite": "^7.2.1",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"all-contributors-cli": "^6.20.0",
"concurrently": "^6.2.0",
"cssnano": "^5.0.1",
Expand All @@ -98,12 +98,12 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.13",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-wc": "^1.3.2",
"husky": "^7.0.0",
"lint-staged": "^12.0.2",
"lit": "^2.7.5",
"lit-analyzer": "^1.2.1",
"lit-analyzer": "^2.0.1",
"markdown-toc": "^1.2.0",
"postcss": "^8.4.31",
"postcss-import": "^14.0.0",
Expand All @@ -129,7 +129,7 @@
]
},
"resolutions": {
"@typescript-eslint/parser": "^5.41.0",
"@typescript-eslint/parser": "^6.9.0",
"axe-core": "^4.3.3",
"ansi-regex": "^5.0.1",
"nth-check": "^2.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/pharos-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"devDependencies": {
"@types/jest": "^26.0.15",
"@types/node": "^14.14.6",
"jest": "^27.0.1",
"ts-jest": "^27.0.1",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.0.0",
"typescript": "^4.5.2",
"typescript": "^5.2.2",
"ts-morph": "^20.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pharos-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/react-dom": "^17.0.0",
"@types/react-helmet": "^6.1.0",
"babel-preset-gatsby": "^2.2.0",
"typescript": "^4.5.2"
"typescript": "^5.2.2"
},
"author": "ITHAKA",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/pharos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"sinon": "^12.0.1",
"style-dictionary": "^3.0.1",
"ts-lit-plugin": "^1.2.1",
"typescript": "^4.5.2"
"typescript": "^5.2.2"
},
"customElements": "custom-elements.json"
}
2 changes: 1 addition & 1 deletion packages/pharos/src/components/alert/pharos-alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export enum ALERT_ICON {
INFO = 'info-inverse',
ERROR = 'exclamation-inverse',
SUCCESS = 'checkmark-inverse',
WARNING = 'exclamation-inverse',
WARNING = 'exclamation-inverse', // eslint-disable-line @typescript-eslint/no-duplicate-enum-values
}

const STATUSES = ['info', 'success', 'warning', 'error'] as AlertStatus[];
Expand Down
2 changes: 1 addition & 1 deletion packages/pharos/src/components/toast/pharos-toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type ToastStatus = 'success' | 'error' | 'info';
export enum TOAST_ICON {
ERROR = 'exclamation-inverse',
SUCCESS = 'checkmark-inverse',
INFO = 'exclamation-inverse',
INFO = 'exclamation-inverse', // eslint-disable-line @typescript-eslint/no-duplicate-enum-values
}

const STATUSES = ['success', 'error', 'info'];
Expand Down
2 changes: 1 addition & 1 deletion packages/pharos/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error",
"verbatimModuleSyntax": true,
"resolveJsonModule": true,
"noImplicitOverride": true,
"useDefineForClassFields": false,
Expand Down

0 comments on commit 55c263f

Please sign in to comment.