diff --git a/.eslintrc.js b/.eslintrc.js index dbf43124daaf..8117c216f349 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -97,7 +97,7 @@ module.exports = { // TODO re-enable some these as errors // context: https://github.com/facebook/docusaurus/pull/2949 '@typescript-eslint/ban-types': WARNING, - 'import/no-extraneous-dependencies': WARNING, + 'import/no-extraneous-dependencies': ERROR, 'no-useless-escape': WARNING, 'prefer-template': WARNING, 'no-param-reassign': WARNING, diff --git a/packages/docusaurus-plugin-content-blog/package.json b/packages/docusaurus-plugin-content-blog/package.json index 3cbb69f88394..cc6a19a3948a 100644 --- a/packages/docusaurus-plugin-content-blog/package.json +++ b/packages/docusaurus-plugin-content-blog/package.json @@ -29,7 +29,8 @@ "loader-utils": "^1.2.3", "lodash.kebabcase": "^4.1.1", "reading-time": "^1.2.0", - "remark-admonitions": "^1.2.1" + "remark-admonitions": "^1.2.1", + "webpack": "^4.41.2" }, "peerDependencies": { "react": "^16.8.4", diff --git a/packages/docusaurus-plugin-content-pages/package.json b/packages/docusaurus-plugin-content-pages/package.json index 7868fa42bd2f..20b392fcfb80 100644 --- a/packages/docusaurus-plugin-content-pages/package.json +++ b/packages/docusaurus-plugin-content-pages/package.json @@ -25,7 +25,8 @@ "loader-utils": "^1.2.3", "minimatch": "^3.0.4", "remark-admonitions": "^1.2.1", - "slash": "^3.0.0" + "slash": "^3.0.0", + "webpack": "^4.41.2" }, "peerDependencies": { "@docusaurus/core": "^2.0.0", diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json index 5380f1cead8a..1a709faa7de9 100644 --- a/packages/docusaurus-plugin-ideal-image/package.json +++ b/packages/docusaurus-plugin-ideal-image/package.json @@ -12,15 +12,16 @@ }, "license": "MIT", "devDependencies": { - "@docusaurus/types": "^2.0.0-alpha.61", "fs-extra": "^9.0.0" }, "dependencies": { "@docusaurus/lqip-loader": "^2.0.0-alpha.61", + "@docusaurus/types": "^2.0.0-alpha.61", "@endiliey/react-ideal-image": "^0.0.11", "@endiliey/responsive-loader": "^1.3.2", "react-waypoint": "^9.0.2", - "sharp": "^0.25.2" + "sharp": "^0.25.2", + "webpack": "^4.41.2" }, "peerDependencies": { "@docusaurus/core": "^2.0.0", diff --git a/packages/docusaurus-plugin-pwa/package.json b/packages/docusaurus-plugin-pwa/package.json index 7491375790a9..1596e5e3952b 100644 --- a/packages/docusaurus-plugin-pwa/package.json +++ b/packages/docusaurus-plugin-pwa/package.json @@ -13,6 +13,7 @@ "@babel/preset-env": "^7.9.0", "@hapi/joi": "^17.1.1", "babel-loader": "^8.1.0", + "clsx": "^1.1.1", "core-js": "^2.6.5", "terser-webpack-plugin": "^2.3.5", "webpack": "^4.41.2", diff --git a/packages/docusaurus-theme-bootstrap/package.json b/packages/docusaurus-theme-bootstrap/package.json index f2fb2da39e87..71179dd613ee 100644 --- a/packages/docusaurus-theme-bootstrap/package.json +++ b/packages/docusaurus-theme-bootstrap/package.json @@ -11,6 +11,7 @@ "@mdx-js/react": "^1.5.8", "bootstrap": "^4.4.1", "classnames": "^2.2.6", + "clsx": "^1.1.1", "prism-react-renderer": "^1.1.0", "reactstrap": "^8.4.1" }, diff --git a/packages/docusaurus-theme-search-algolia/package.json b/packages/docusaurus-theme-search-algolia/package.json index 9d57f83c51ba..2b1ea93964bd 100644 --- a/packages/docusaurus-theme-search-algolia/package.json +++ b/packages/docusaurus-theme-search-algolia/package.json @@ -9,15 +9,16 @@ "license": "MIT", "dependencies": { "@docsearch/react": "^1.0.0-alpha.27", + "@docusaurus/utils": "^2.0.0-alpha.61", "@hapi/joi": "^17.1.1", "algoliasearch": "^4.0.0", "algoliasearch-helper": "^3.1.1", "clsx": "^1.1.1", - "eta": "^1.1.1" + "eta": "^1.1.1", + "lodash": "^4.17.19" }, "peerDependencies": { "@docusaurus/core": "^2.0.0", - "@docusaurus/utils": "2.0.0-alpha.60", "react": "^16.8.4", "react-dom": "^16.8.4" }, diff --git a/packages/docusaurus-types/src/index.d.ts b/packages/docusaurus-types/src/index.d.ts index 7c93cbc25be0..73f741fcdcd3 100644 --- a/packages/docusaurus-types/src/index.d.ts +++ b/packages/docusaurus-types/src/index.d.ts @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +// ESLint doesn't understand types dependencies in d.ts +// eslint-disable-next-line import/no-extraneous-dependencies import {Loader, Configuration} from 'webpack'; import {Command} from 'commander'; import {ParsedUrlQueryInput} from 'querystring';