From 5a8d846ea2fa5155fae7ca3a917f6e9c695002cd Mon Sep 17 00:00:00 2001 From: David Ten Sing Date: Thu, 6 Jun 2024 16:52:59 +1000 Subject: [PATCH] fix(deps): fix micromark-extension-gfm-strikethrough not being externalised - also add eslint rules to prevent this from happening again --- .eslintrc.cjs | 3 ++- package-lock.json | 2 +- package.json | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index f286cf8e..4e184fd9 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -6,7 +6,7 @@ module.exports = { project: ['./tsconfig.json'], sourceType: 'module' }, - plugins: ['react', '@typescript-eslint', 'json', 'html'], + plugins: ['react', '@typescript-eslint', 'json', 'html', 'import'], env: { browser: true, es2021: true, @@ -28,6 +28,7 @@ module.exports = { } ], rules: { + 'import/no-extraneous-dependencies': ['error'], '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unsafe-return': 'off', diff --git a/package-lock.json b/package-lock.json index 7d2a8c3a..b1d4b1a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,6 +50,7 @@ "mdast-util-to-markdown": "^2.1.0", "micromark-extension-directive": "^3.0.0", "micromark-extension-frontmatter": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", "micromark-extension-gfm-table": "^2.0.0", "micromark-extension-gfm-task-list-item": "^2.0.1", "micromark-extension-mdx-jsx": "^3.0.0", @@ -14414,7 +14415,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.0.0.tgz", "integrity": "sha512-c3BR1ClMp5fxxmwP6AoOY2fXO9U8uFMKs4ADD66ahLTNcwzSCyRVU4k7LPV5Nxo/VJiR4TdzxRQY2v3qIUceCw==", - "dev": true, "dependencies": { "devlop": "^1.0.0", "micromark-util-chunked": "^2.0.0", diff --git a/package.json b/package.json index 50f7d3db..cae977c7 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "mdast-util-to-markdown": "^2.1.0", "micromark-extension-directive": "^3.0.0", "micromark-extension-frontmatter": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", "micromark-extension-gfm-table": "^2.0.0", "micromark-extension-gfm-task-list-item": "^2.0.1", "micromark-extension-mdx-jsx": "^3.0.0",