Cleanup unused Javascript (#3027)

* chore(js): be stricter about dead code warnings

* chore(js): remove dead code and unused exports

* rebase

* chore: remove unused files

* chore(deps): remove unused prop-types dep

* chore(js): remove unused function

* chore(deps): remove + check unused deps

* chore(js): remove unused exports. Closes #3036
This commit is contained in:
Gabe Kangas
2023-05-20 21:15:25 -07:00
committed by GitHub
parent 429289d508
commit e50b23d081
55 changed files with 1187 additions and 1071 deletions

View File

@@ -26,31 +26,25 @@
"@uiw/react-codemirror": "4.19.16",
"@xstate/react": "3.2.2",
"antd": "4.24.10",
"autoprefixer": "10.4.14",
"autoprefixer": "^10.4.14",
"chart.js": "^4.2.0",
"classnames": "2.3.2",
"date-fns": "^2.29.3",
"interweave": "^13.0.0",
"interweave-autolink": "^5.1.0",
"linkifyjs": "^4.1.0",
"lodash": "4.17.21",
"next": "13.3.0",
"next-pwa": "^5.6.0",
"next-with-less": "2.0.5",
"next-with-workbox": "^3.0.5",
"picmo": "5.8.4",
"postcss-flexbugs-fixes": "5.0.2",
"prop-types": "15.8.1",
"react": "18.2.0",
"react-chartjs-2": "^5.2.0",
"react-chartkick": "^0.5.3",
"react-crossfade-img": "1.0.0",
"react-dom": "18.2.0",
"react-error-boundary": "^4.0.0",
"react-hotkeys-hook": "4.4.0",
"react-linkify": "1.0.0-alpha",
"react-markdown": "8.0.7",
"react-use": "^17.4.0",
"react-virtuoso": "4.3.6",
"recoil": "0.7.7",
"sharp": "0.32.1",
@@ -58,6 +52,7 @@
"slate-react": "0.94.2",
"ua-parser-js": "1.0.35",
"video.js": "^8.3.0",
"webpack-deadcode-plugin": "^0.1.17",
"workbox-precaching": "^6.5.4",
"workbox-window": "^6.5.4",
"xstate": "4.37.2",
@@ -101,7 +96,7 @@
"eslint-config-airbnb": "19.0.4",
"eslint-config-next": "13.3.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2",
@@ -110,6 +105,7 @@
"handlebars": "^4.7.7",
"html-webpack-plugin": "5.5.1",
"install": "^0.13.0",
"knip": "^2.11.0",
"less": "4.1.3",
"less-loader": "11.1.0",
"mdx-mermaid": "^1.3.2",