From a24e93354fd8d722ca43ac88458bf00b3ba9f280 Mon Sep 17 00:00:00 2001 From: nikhil Date: Wed, 21 Sep 2022 21:42:34 -0400 Subject: [PATCH] fix(current lint check): Remove `.babelrc` palimpsests The current GitHub linting workflow (which, thanks to its reliance on lerna, only runs lint in workspaces that specify a `lint` command--needs to be fixed) has been failing for a new reason since commit dd9510537c9857a9f41c155c933b893c5855d32d (the workflow was already failing in the `develop` branch for unrelated reasons). dd9510537c9857a9f41c155c933b893c5855d32d reintroduced Babel to the monorepo, not for any kind of transpilation step but for usage by `eslint`. This wasn't an issue for `eslint` commands executed from the monorepo root, but it's an issue for the lint workflow: that workflow uses `lerna run lint` to run `eslint` from within workspace directories, and the workspace directories that implement `lint` commands also happen to have legacy `.babelrc` files that reference no-longer-installed Babel plugins. This commit removes the old `.babelrc` files, which should fix the lint workflow in its current form. (I will soon be updating the lint workflow to cover all workspaces, but I've yet to decide what that will look like.) --- designs/lunetius/.babelrc | 9 --------- designs/tiberius/.babelrc | 9 --------- designs/walburga/.babelrc | 9 --------- designs/yuri/.babelrc | 9 --------- plugins/plugin-banner/.babelrc | 4 ---- plugins/plugin-bartack/.babelrc | 10 ---------- plugins/plugin-bundle/.babelrc | 4 ---- plugins/plugin-bust/.babelrc | 3 --- plugins/plugin-buttons/.babelrc | 10 ---------- plugins/plugin-cutonfold/.babelrc | 7 ------- plugins/plugin-dimension/.babelrc | 10 ---------- plugins/plugin-flip/.babelrc | 10 ---------- plugins/plugin-grainline/.babelrc | 10 ---------- plugins/plugin-i18n/.babelrc | 10 ---------- plugins/plugin-logo/.babelrc | 10 ---------- plugins/plugin-mirror/.babelrc | 10 ---------- plugins/plugin-round/.babelrc | 10 ---------- plugins/plugin-scalebox/.babelrc | 10 ---------- plugins/plugin-sprinkle/.babelrc | 10 ---------- plugins/plugin-svgattr/.babelrc | 10 ---------- plugins/plugin-title/.babelrc | 3 --- 21 files changed, 177 deletions(-) delete mode 100644 designs/lunetius/.babelrc delete mode 100644 designs/tiberius/.babelrc delete mode 100644 designs/walburga/.babelrc delete mode 100644 designs/yuri/.babelrc delete mode 100644 plugins/plugin-banner/.babelrc delete mode 100644 plugins/plugin-bartack/.babelrc delete mode 100644 plugins/plugin-bundle/.babelrc delete mode 100644 plugins/plugin-bust/.babelrc delete mode 100644 plugins/plugin-buttons/.babelrc delete mode 100644 plugins/plugin-cutonfold/.babelrc delete mode 100644 plugins/plugin-dimension/.babelrc delete mode 100644 plugins/plugin-flip/.babelrc delete mode 100644 plugins/plugin-grainline/.babelrc delete mode 100644 plugins/plugin-i18n/.babelrc delete mode 100644 plugins/plugin-logo/.babelrc delete mode 100644 plugins/plugin-mirror/.babelrc delete mode 100644 plugins/plugin-round/.babelrc delete mode 100644 plugins/plugin-scalebox/.babelrc delete mode 100644 plugins/plugin-sprinkle/.babelrc delete mode 100644 plugins/plugin-svgattr/.babelrc delete mode 100644 plugins/plugin-title/.babelrc diff --git a/designs/lunetius/.babelrc b/designs/lunetius/.babelrc deleted file mode 100644 index eeb6d8c7726..00000000000 --- a/designs/lunetius/.babelrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "presets": [ - ["@babel/preset-env", { - "modules": false - }], - "@babel/preset-react" - ], - "plugins": ["@babel/plugin-proposal-class-properties"] -} \ No newline at end of file diff --git a/designs/tiberius/.babelrc b/designs/tiberius/.babelrc deleted file mode 100644 index eeb6d8c7726..00000000000 --- a/designs/tiberius/.babelrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "presets": [ - ["@babel/preset-env", { - "modules": false - }], - "@babel/preset-react" - ], - "plugins": ["@babel/plugin-proposal-class-properties"] -} \ No newline at end of file diff --git a/designs/walburga/.babelrc b/designs/walburga/.babelrc deleted file mode 100644 index eeb6d8c7726..00000000000 --- a/designs/walburga/.babelrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "presets": [ - ["@babel/preset-env", { - "modules": false - }], - "@babel/preset-react" - ], - "plugins": ["@babel/plugin-proposal-class-properties"] -} \ No newline at end of file diff --git a/designs/yuri/.babelrc b/designs/yuri/.babelrc deleted file mode 100644 index eeb6d8c7726..00000000000 --- a/designs/yuri/.babelrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "presets": [ - ["@babel/preset-env", { - "modules": false - }], - "@babel/preset-react" - ], - "plugins": ["@babel/plugin-proposal-class-properties"] -} \ No newline at end of file diff --git a/plugins/plugin-banner/.babelrc b/plugins/plugin-banner/.babelrc deleted file mode 100644 index 6ecb268f939..00000000000 --- a/plugins/plugin-banner/.babelrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "presets": ["@babel/preset-env"] -} - diff --git a/plugins/plugin-bartack/.babelrc b/plugins/plugin-bartack/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-bartack/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-bundle/.babelrc b/plugins/plugin-bundle/.babelrc deleted file mode 100644 index 6ecb268f939..00000000000 --- a/plugins/plugin-bundle/.babelrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "presets": ["@babel/preset-env"] -} - diff --git a/plugins/plugin-bust/.babelrc b/plugins/plugin-bust/.babelrc deleted file mode 100644 index 1320b9a3272..00000000000 --- a/plugins/plugin-bust/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["@babel/preset-env"] -} diff --git a/plugins/plugin-buttons/.babelrc b/plugins/plugin-buttons/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-buttons/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-cutonfold/.babelrc b/plugins/plugin-cutonfold/.babelrc deleted file mode 100644 index bc92ecff3da..00000000000 --- a/plugins/plugin-cutonfold/.babelrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - ] - ] -} diff --git a/plugins/plugin-dimension/.babelrc b/plugins/plugin-dimension/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-dimension/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-flip/.babelrc b/plugins/plugin-flip/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-flip/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-grainline/.babelrc b/plugins/plugin-grainline/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-grainline/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-i18n/.babelrc b/plugins/plugin-i18n/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-i18n/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-logo/.babelrc b/plugins/plugin-logo/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-logo/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-mirror/.babelrc b/plugins/plugin-mirror/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-mirror/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-round/.babelrc b/plugins/plugin-round/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-round/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-scalebox/.babelrc b/plugins/plugin-scalebox/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-scalebox/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-sprinkle/.babelrc b/plugins/plugin-sprinkle/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-sprinkle/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-svgattr/.babelrc b/plugins/plugin-svgattr/.babelrc deleted file mode 100644 index 957cae3e64d..00000000000 --- a/plugins/plugin-svgattr/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "useBuiltIns": "entry" - } - ] - ] -} diff --git a/plugins/plugin-title/.babelrc b/plugins/plugin-title/.babelrc deleted file mode 100644 index 1320b9a3272..00000000000 --- a/plugins/plugin-title/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["@babel/preset-env"] -}