-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: upgrade babel/typescript to support latest features #1172
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,8 @@ | |
"release": "./scripts/release.sh" | ||
}, | ||
"prettier": { | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
|
@@ -43,14 +44,12 @@ | |
}, | ||
"devDependencies": { | ||
"@axe-core/puppeteer": "^4.3.1", | ||
"@babel/core": "^7.4.3", | ||
"@babel/plugin-proposal-class-properties": "^7.4.0", | ||
"@babel/plugin-proposal-export-default-from": "^7.2.0", | ||
"@babel/preset-env": "^7.8.4", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/preset-stage-0": "^7.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not really needed anymore |
||
"@babel/preset-typescript": "^7.8.3", | ||
"@babel/register": "^7.4.0", | ||
"@babel/core": "^7.22.10", | ||
"@babel/plugin-proposal-export-default-from": "^7.22.5", | ||
"@babel/preset-env": "^7.22.10", | ||
"@babel/preset-react": "^7.22.5", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@babel/register": "^7.22.5", | ||
"@fontsource/lato": "^4.5.0", | ||
"@fontsource/pt-mono": "^4.5.0", | ||
"@fontsource/roboto": "^4.5.1", | ||
|
@@ -128,7 +127,7 @@ | |
"style-loader": "^0.19.0", | ||
"terser-webpack-plugin": "^5.3.6", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^3.7.5", | ||
"typescript": "~5.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prettier yells at you if it's 5.1.0 or greater 🤷 |
||
"webpack": "^5.76.0", | ||
"webpack-cli": "^5.0.1", | ||
"webpack-dev-server": "^4.11.1" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
} | ||
], | ||
"transform-export-extensions", | ||
"@babel/plugin-proposal-class-properties", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now included as part of preset-env |
||
"@babel/plugin-proposal-export-default-from" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,18 +34,15 @@ | |
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unused |
||
"@babel/core": "^7.9.6", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/plugin-proposal-export-default-from": "^7.8.3", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/preset-react": "^7.9.4", | ||
"@babel/preset-stage-0": "^7.8.3", | ||
"@babel/preset-typescript": "^7.9.0", | ||
"@babel/register": "^7.9.0", | ||
"@babel/core": "^7.22.10", | ||
"@babel/plugin-proposal-export-default-from": "^7.22.5", | ||
"@babel/preset-env": "^7.22.10", | ||
"@babel/preset-react": "^7.22.5", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@babel/register": "^7.22.5", | ||
"@rollup/plugin-commonjs": "^14.0.0", | ||
"@rollup/plugin-dynamic-import-vars": "^1.4.2", | ||
"@rollup/plugin-typescript": "^5.0.2", | ||
"@rollup/plugin-typescript": "^11.1.2", | ||
"@svgr/rollup": "^6.1.2", | ||
"@types/classnames": "^2.2.10", | ||
"@types/node": "^17.0.42", | ||
|
@@ -78,7 +75,7 @@ | |
"rollup": "^2.23.0", | ||
"sinon": "^10.0.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.3" | ||
"typescript": "~5.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,6 @@ IconButton.propTypes = { | |
as: PropTypes.elementType, | ||
// @ts-expect-error | ||
icon: PropTypes.string.isRequired, | ||
// @ts-expect-error | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. apparently none of these error anymore There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The others still error? |
||
label: PropTypes.node.isRequired, | ||
// @ts-expect-error | ||
tooltipPlacement: PropTypes.string, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really care that much, but this keeps the existing behavior that was present before the upgrade to keep things consistent