Skip to content

Commit de8514b

Browse files
chore(deps): update eslint (major) (#99)
[![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://togithub.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://togithub.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 <details> <summary>sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)</summary> ### [`v48.0.0`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v48.0.0) [Compare Source](https://togithub.com/sindresorhus/eslint-plugin-unicorn/compare/v47.0.0...v48.0.0) ##### Improvements - Deprecate `no-unsafe-regex` rule ([#&#8203;2135](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2135)) [`7b473aa`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7b473aa) - `prefer-top-level-await`: Ignore promises inside `Promise.{all,allSettled,any,race}()` ([#&#8203;2139](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2139)) [`d3f6b60`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/d3f6b60) - `no-process-exit`: Ignore when using `node:worker_threads` module ([#&#8203;2136](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2136)) [`2907805`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/2907805) - `prefer-array-some`: Ignore filter calls with literal argument ([#&#8203;2097](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2097)) [`7a32edb`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/7a32edb) - `prefer-modern-math-api`: Check cases that `Math.hypot()` should be preferred ([#&#8203;2080](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2080)) [`9bbc948`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/9bbc948) - `explicit-length-check`: Ignore `.length || number` ([#&#8203;1977](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1977)) [`b9b8794`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b9b8794) ##### Fixes - Fix crash on array holes ([#&#8203;2129](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2129)) [`f10f1a6`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f10f1a6) - `prefer-dom-node-dataset`: Fix edge cases ([#&#8203;2171](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2171)) [`b2d7378`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/b2d7378) - `prefer-dom-node-dataset`: Remove broken fix for `element.setAttribute` ([#&#8203;2169](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2169)) [`61234af`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/61234af) - `no-lonely-if`: Fix an edge case ([#&#8203;2168](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2168)) [`ca837a8`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/ca837a8) - `no-useless-undefined`: Turn parameter with `undefined` default value into optional parameter ([#&#8203;2138](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2138)) [`4aa7d60`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/4aa7d60) - `no-thenable`: Fix `Object.fromEntries()` check ([#&#8203;2130](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2130)) [`f3265b9`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/f3265b9) - `prefer-dom-node-remove`: Fix incorrect auto-fix ([#&#8203;2084](https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/2084)) [`74bb36d`](https://togithub.com/sindresorhus/eslint-plugin-unicorn/commit/74bb36d) </details> <details> <summary>prettier/prettier (prettier)</summary> ### [`v3.0.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#300) [Compare Source](https://togithub.com/prettier/prettier/compare/2.8.8...3.0.0) [diff](https://togithub.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) </details> --- ### 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://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->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). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM2LjguMTEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> --------- Signed-off-by: Tyler Smalley <tyler@tailscale.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tyler Smalley <tyler@tailscale.com>
1 parent 8a953cf commit de8514b

File tree

4 files changed

+22
-34
lines changed

4 files changed

+22
-34
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,15 @@
304304
"eslint": "^8.45.0",
305305
"eslint-config-prettier": "^8.8.0",
306306
"eslint-plugin-react-hooks": "^4.6.0",
307-
"eslint-plugin-unicorn": "^47.0.0",
307+
"eslint-plugin-unicorn": "^48.0.0",
308308
"glob": "^10.3.3",
309309
"husky": "^8.0.3",
310310
"lint-staged": "^13.2.3",
311311
"mocha": "^10.2.0",
312312
"node-fetch": "^3.3.1",
313313
"postcss": "^8.4.26",
314314
"postcss-loader": "^7.3.3",
315-
"prettier": "^2.8.8",
315+
"prettier": "^3.0.0",
316316
"react": "^18.2.0",
317317
"react-dom": "^18.2.0",
318318
"style-loader": "^3.3.3",

src/serve-panel-provider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import { Logger } from './logger';
77
export class ServePanelProvider implements vscode.WebviewViewProvider {
88
_view?: vscode.WebviewView;
99

10-
constructor(private readonly _extensionUri: vscode.Uri, private readonly ts: Tailscale) {}
10+
constructor(
11+
private readonly _extensionUri: vscode.Uri,
12+
private readonly ts: Tailscale
13+
) {}
1114

1215
postMessage(message: WebviewData) {
1316
if (!this._view) {

src/webviews/serve-panel/simple-view.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ export const SimpleView = () => {
6363
const hasServeTextStyle = persistedPort ? textStyle : textDisabledStyle;
6464
return (
6565
<div>
66-
{data?.Errors?.map((error, index) => (
67-
<Error key={index} type={error.Type} />
68-
))}
66+
{data?.Errors?.map((error, index) => <Error key={index} type={error.Type} />)}
6967

7068
<div className="pt-2 pb-4">
7169
<div className="text-2xl">Tailscale Funnel</div>

yarn.lock

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
dependencies:
2020
"@babel/highlight" "^7.22.5"
2121

22-
"@babel/helper-validator-identifier@^7.19.1":
23-
version "7.19.1"
24-
resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz"
25-
integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==
26-
2722
"@babel/helper-validator-identifier@^7.22.5":
2823
version "7.22.5"
2924
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:
21822177
resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz"
21832178
integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==
21842179

2185-
eslint-plugin-unicorn@^47.0.0:
2186-
version "47.0.0"
2187-
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-47.0.0.tgz#960e9d3789f656ba3e21982420793b069a911011"
2188-
integrity sha512-ivB3bKk7fDIeWOUmmMm9o3Ax9zbMz1Bsza/R2qm46ufw4T6VBFBaJIR1uN3pCKSmSXm8/9Nri8V+iUut1NhQGA==
2180+
eslint-plugin-unicorn@^48.0.0:
2181+
version "48.0.0"
2182+
resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-48.0.0.tgz#074214c0c216e6d97298a98db394b430b6c5a7de"
2183+
integrity sha512-8fk/v3p1ro34JSVDBEmtOq6EEQRpMR0iTir79q69KnXFZ6DJyPkT3RAi+ZoTqhQMdDSpGh8BGR68ne1sP5cnAA==
21892184
dependencies:
2190-
"@babel/helper-validator-identifier" "^7.19.1"
2185+
"@babel/helper-validator-identifier" "^7.22.5"
21912186
"@eslint-community/eslint-utils" "^4.4.0"
21922187
ci-info "^3.8.0"
21932188
clean-regexp "^1.0.0"
@@ -2198,10 +2193,9 @@ eslint-plugin-unicorn@^47.0.0:
21982193
lodash "^4.17.21"
21992194
pluralize "^8.0.0"
22002195
read-pkg-up "^7.0.1"
2201-
regexp-tree "^0.1.24"
2196+
regexp-tree "^0.1.27"
22022197
regjsparser "^0.10.0"
2203-
safe-regex "^2.1.1"
2204-
semver "^7.3.8"
2198+
semver "^7.5.4"
22052199
strip-indent "^3.0.0"
22062200

22072201
eslint-scope@5.1.1:
@@ -4521,10 +4515,10 @@ prelude-ls@^1.2.1:
45214515
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
45224516
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
45234517

4524-
prettier@^2.8.8:
4525-
version "2.8.8"
4526-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
4527-
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
4518+
prettier@^3.0.0:
4519+
version "3.0.0"
4520+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae"
4521+
integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==
45284522

45294523
process-nextick-args@~2.0.0:
45304524
version "2.0.1"
@@ -4707,10 +4701,10 @@ rechoir@^0.8.0:
47074701
dependencies:
47084702
resolve "^1.20.0"
47094703

4710-
regexp-tree@^0.1.24, regexp-tree@~0.1.1:
4711-
version "0.1.25"
4712-
resolved "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.25.tgz"
4713-
integrity sha512-szcL3aqw+vEeuxhL1AMYRyeMP+goYF5I/guaH10uJX5xbGyeQeNPPneaj3ZWVmGLCDxrVaaYekkr5R12gk4dJw==
4704+
regexp-tree@^0.1.27:
4705+
version "0.1.27"
4706+
resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.27.tgz#2198f0ef54518ffa743fe74d983b56ffd631b6cd"
4707+
integrity sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==
47144708

47154709
regexp.prototype.flags@^1.4.3:
47164710
version "1.5.0"
@@ -4856,13 +4850,6 @@ safe-regex-test@^1.0.0:
48564850
get-intrinsic "^1.1.3"
48574851
is-regex "^1.1.4"
48584852

4859-
safe-regex@^2.1.1:
4860-
version "2.1.1"
4861-
resolved "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz"
4862-
integrity sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==
4863-
dependencies:
4864-
regexp-tree "~0.1.1"
4865-
48664853
safe-stable-stringify@^2.3.1:
48674854
version "2.4.3"
48684855
resolved "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz"

0 commit comments

Comments
 (0)