Skip to content

Commit

Permalink
Niloofar Sadeghi / Add typescript to each workspace dependency (binar…
Browse files Browse the repository at this point in the history
…y-com#6306)

* build: add typescript to all packages

* build: move typescript to devdependency

* add some TS configs to eslint file

* fix: conflicts
  • Loading branch information
niloofar-deriv committed Sep 6, 2022
1 parent b18455a commit 0917f24
Show file tree
Hide file tree
Showing 13 changed files with 2,777 additions and 2,986 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ module.exports = {
'**/*.test.js*',
'**/*.spec.js',
'**/*.spec.jsx',
'**/*.spec.ts',
'**/*.test.ts',
'**/*.spec.tsx',
'**/*.test.tsx',
],
},
],
Expand Down
5,727 changes: 2,741 additions & 2,986 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"@babel/preset-react": "^7.16.7",
"@jest/globals": "^26.5.3",
"@testing-library/react": "^12.0.0",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"clean-webpack-plugin": "^3.0.0",
"css-loader": "^5.0.1",
Expand All @@ -75,6 +77,7 @@
"sass-loader": "^12.6.0",
"sass-resources-loader": "^2.1.1",
"terser-webpack-plugin": "^5.1.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0"
}
}
2 changes: 2 additions & 0 deletions packages/appstore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@types/object.fromentries": "^2.0.0",
"@types/react-router-dom": "^5.1.6",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.1.0",
"chai": "^4.2.0",
Expand All @@ -72,6 +73,7 @@
"source-map-loader": "^1.1.2",
"style-loader": "^1.2.1",
"terser-webpack-plugin": "^5.1.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-cli": "^4.7.2"
Expand Down
3 changes: 3 additions & 0 deletions packages/bot-skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"chai": "^4.2.0",
"deep-diff": "^1.0.2",
"typescript": "^4.6.3",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-binary": "^1.0.2",
"eslint-config-prettier": "^7.2.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/bot-web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"chai": "^4.2.0",
"clean-webpack-plugin": "^3.0.0",
Expand All @@ -60,6 +62,7 @@
"sass-resources-loader": "^2.1.1",
"stylelint-webpack-plugin": "^2.1.1",
"svg-sprite-loader": "^5.2.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-cli": "^4.7.2"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/cashier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.16.7",
"@testing-library/react": "^12.0.0",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^9.0.1",
Expand All @@ -86,6 +88,7 @@
"resolve-url-loader": "^3.1.2",
"sass-loader": "^12.6.0",
"sass-resources-loader": "^2.1.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-cli": "^4.7.2",
"webpack-manifest-plugin": "^4.0.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/cfd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"devDependencies": {
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"chai": "^4.2.0",
"circular-dependency-plugin": "^5.2.2",
"clean-webpack-plugin": "^3.0.0",
Expand Down Expand Up @@ -76,6 +78,7 @@
"stylelint-formatter-pretty": "^2.1.1",
"svgo": "^2.8.0",
"terser-webpack-plugin": "^5.1.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-cli": "^4.7.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"@storybook/addon-info": "^5.3.21",
"@storybook/addon-knobs": "^6.4.0",
"@testing-library/react": "^12.0.0",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"copy-webpack-plugin": "^9.0.1",
"copy-webpack-plugin-v6": "npm:copy-webpack-plugin@6",
Expand All @@ -60,6 +62,7 @@
"style-loader": "^1.2.1",
"svg-sprite-loader": "^5.2.1",
"svgo-loader": "^3.0.0",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-cli": "^4.7.2"
Expand Down
3 changes: 3 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"@babel/plugin-proposal-unicode-property-regex": "^7.16.7",
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"chai": "^4.2.0",
"circular-dependency-plugin": "^5.2.2",
Expand Down Expand Up @@ -82,6 +84,7 @@
"stylelint-webpack-plugin": "^2.1.1",
"svgo": "^2.8.0",
"terser-webpack-plugin": "^5.1.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-cli": "^4.7.2",
Expand Down
3 changes: 3 additions & 0 deletions packages/p2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.16.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"@deriv/publisher": "0.0.1-beta4",
"babel-core": "^6.26.3",
"babel-loader": "^8.1.0",
Expand Down Expand Up @@ -93,6 +95,7 @@
"sass-resources-loader": "^2.1.1",
"style-loader": "^1.2.1",
"terser-webpack-plugin": "^5.1.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-cli": "^4.7.2"
Expand Down
3 changes: 3 additions & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"typescript": "^4.6.3",
"chai": "^4.2.0",
"jsdom": "^16.2.1",
"moment": "^2.29.2"
Expand Down
3 changes: 3 additions & 0 deletions packages/trader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@babel/preset-react": "^7.16.7",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.0",
"babel-loader": "^8.1.0",
"chai": "^4.2.0",
"circular-dependency-plugin": "^5.2.2",
Expand Down Expand Up @@ -77,6 +79,7 @@
"stylelint-formatter-pretty": "^2.1.1",
"svgo": "^2.8.0",
"terser-webpack-plugin": "^5.1.1",
"typescript": "^4.6.3",
"webpack": "^5.46.0",
"webpack-bundle-analyzer": "^4.3.0",
"webpack-cli": "^4.7.2",
Expand Down

0 comments on commit 0917f24

Please sign in to comment.