From de8514b51bb9ef7bd820df9b774f47a37ca16399 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Jul 2023 12:52:40 -0700 Subject: [PATCH] chore(deps): update eslint (major) (#99) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | [`^47.0.0` -> `^48.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-unicorn/47.0.0/48.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-unicorn/48.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-unicorn/48.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-unicorn/47.0.0/48.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-unicorn/47.0.0/48.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [prettier](https://prettier.io) ([source](https://github.com/prettier/prettier)) | [`^2.8.8` -> `^3.0.0`](https://renovatebot.com/diffs/npm/prettier/2.8.8/3.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prettier/3.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prettier/3.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prettier/2.8.8/3.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prettier/2.8.8/3.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn) ### [`v48.0.0`](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.0) [Compare Source](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v47.0.0...v48.0.0) ##### Improvements - Deprecate `no-unsafe-regex` rule ([#​2135](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2135)) [`7b473aa`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/7b473aa) - `prefer-top-level-await`: Ignore promises inside `Promise.{all,allSettled,any,race}()` ([#​2139](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2139)) [`d3f6b60`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/d3f6b60) - `no-process-exit`: Ignore when using `node:worker_threads` module ([#​2136](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2136)) [`2907805`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/2907805) - `prefer-array-some`: Ignore filter calls with literal argument ([#​2097](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2097)) [`7a32edb`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/7a32edb) - `prefer-modern-math-api`: Check cases that `Math.hypot()` should be preferred ([#​2080](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2080)) [`9bbc948`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/9bbc948) - `explicit-length-check`: Ignore `.length || number` ([#​1977](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1977)) [`b9b8794`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/b9b8794) ##### Fixes - Fix crash on array holes ([#​2129](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2129)) [`f10f1a6`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/f10f1a6) - `prefer-dom-node-dataset`: Fix edge cases ([#​2171](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2171)) [`b2d7378`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/b2d7378) - `prefer-dom-node-dataset`: Remove broken fix for `element.setAttribute` ([#​2169](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2169)) [`61234af`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/61234af) - `no-lonely-if`: Fix an edge case ([#​2168](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2168)) [`ca837a8`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/ca837a8) - `no-useless-undefined`: Turn parameter with `undefined` default value into optional parameter ([#​2138](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2138)) [`4aa7d60`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/4aa7d60) - `no-thenable`: Fix `Object.fromEntries()` check ([#​2130](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2130)) [`f3265b9`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/f3265b9) - `prefer-dom-node-remove`: Fix incorrect auto-fix ([#​2084](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2084)) [`74bb36d`](https://github.com/sindresorhus/eslint-plugin-unicorn/commit/74bb36d)
prettier/prettier (prettier) ### [`v3.0.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#300) [Compare Source](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) [diff](https://github.com/prettier/prettier/compare/3.0.0-alpha.6...3.0.0) 🔗 [Release Notes](https://prettier.io/blog/2023/07/05/3.0.0.html)
--- ### Configuration 📅 **Schedule**: Branch creation - "before 8am on monday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/tailscale-dev/vscode-tailscale). --------- Signed-off-by: Tyler Smalley Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tyler Smalley --- package.json | 4 +-- src/serve-panel-provider.ts | 5 ++- src/webviews/serve-panel/simple-view.tsx | 4 +-- yarn.lock | 43 +++++++++--------------- 4 files changed, 22 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index dda3d16..9867230 100644 --- a/package.json +++ b/package.json @@ -304,7 +304,7 @@ "eslint": "^8.45.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-unicorn": "^47.0.0", + "eslint-plugin-unicorn": "^48.0.0", "glob": "^10.3.3", "husky": "^8.0.3", "lint-staged": "^13.2.3", @@ -312,7 +312,7 @@ "node-fetch": "^3.3.1", "postcss": "^8.4.26", "postcss-loader": "^7.3.3", - "prettier": "^2.8.8", + "prettier": "^3.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "style-loader": "^3.3.3", diff --git a/src/serve-panel-provider.ts b/src/serve-panel-provider.ts index 7b4c3cd..dde1e8f 100644 --- a/src/serve-panel-provider.ts +++ b/src/serve-panel-provider.ts @@ -7,7 +7,10 @@ import { Logger } from './logger'; export class ServePanelProvider implements vscode.WebviewViewProvider { _view?: vscode.WebviewView; - constructor(private readonly _extensionUri: vscode.Uri, private readonly ts: Tailscale) {} + constructor( + private readonly _extensionUri: vscode.Uri, + private readonly ts: Tailscale + ) {} postMessage(message: WebviewData) { if (!this._view) { diff --git a/src/webviews/serve-panel/simple-view.tsx b/src/webviews/serve-panel/simple-view.tsx index a5f4803..0f8d7f3 100644 --- a/src/webviews/serve-panel/simple-view.tsx +++ b/src/webviews/serve-panel/simple-view.tsx @@ -63,9 +63,7 @@ export const SimpleView = () => { const hasServeTextStyle = persistedPort ? textStyle : textDisabledStyle; return (
- {data?.Errors?.map((error, index) => ( - - ))} + {data?.Errors?.map((error, index) => )}
Tailscale Funnel
diff --git a/yarn.lock b/yarn.lock index 7cb4fed..cc8db9c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,11 +19,6 @@ dependencies: "@babel/highlight" "^7.22.5" -"@babel/helper-validator-identifier@^7.19.1": - version "7.19.1" - resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== - "@babel/helper-validator-identifier@^7.22.5": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz#9544ef6a33999343c8740fa51350f30eeaaaf193" @@ -2182,12 +2177,12 @@ eslint-plugin-react-hooks@^4.6.0: resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz" integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== -eslint-plugin-unicorn@^47.0.0: - version "47.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-47.0.0.tgz#960e9d3789f656ba3e21982420793b069a911011" - integrity sha512-ivB3bKk7fDIeWOUmmMm9o3Ax9zbMz1Bsza/R2qm46ufw4T6VBFBaJIR1uN3pCKSmSXm8/9Nri8V+iUut1NhQGA== +eslint-plugin-unicorn@^48.0.0: + version "48.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-48.0.0.tgz#074214c0c216e6d97298a98db394b430b6c5a7de" + integrity sha512-8fk/v3p1ro34JSVDBEmtOq6EEQRpMR0iTir79q69KnXFZ6DJyPkT3RAi+ZoTqhQMdDSpGh8BGR68ne1sP5cnAA== dependencies: - "@babel/helper-validator-identifier" "^7.19.1" + "@babel/helper-validator-identifier" "^7.22.5" "@eslint-community/eslint-utils" "^4.4.0" ci-info "^3.8.0" clean-regexp "^1.0.0" @@ -2198,10 +2193,9 @@ eslint-plugin-unicorn@^47.0.0: lodash "^4.17.21" pluralize "^8.0.0" read-pkg-up "^7.0.1" - regexp-tree "^0.1.24" + regexp-tree "^0.1.27" regjsparser "^0.10.0" - safe-regex "^2.1.1" - semver "^7.3.8" + semver "^7.5.4" strip-indent "^3.0.0" eslint-scope@5.1.1: @@ -4521,10 +4515,10 @@ prelude-ls@^1.2.1: resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@^2.8.8: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae" + integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g== process-nextick-args@~2.0.0: version "2.0.1" @@ -4707,10 +4701,10 @@ rechoir@^0.8.0: dependencies: resolve "^1.20.0" -regexp-tree@^0.1.24, regexp-tree@~0.1.1: - version "0.1.25" - resolved "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.25.tgz" - integrity sha512-szcL3aqw+vEeuxhL1AMYRyeMP+goYF5I/guaH10uJX5xbGyeQeNPPneaj3ZWVmGLCDxrVaaYekkr5R12gk4dJw== +regexp-tree@^0.1.27: + version "0.1.27" + resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.27.tgz#2198f0ef54518ffa743fe74d983b56ffd631b6cd" + integrity sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA== regexp.prototype.flags@^1.4.3: version "1.5.0" @@ -4856,13 +4850,6 @@ safe-regex-test@^1.0.0: get-intrinsic "^1.1.3" is-regex "^1.1.4" -safe-regex@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz" - integrity sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A== - dependencies: - regexp-tree "~0.1.1" - safe-stable-stringify@^2.3.1: version "2.4.3" resolved "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz"