1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
renovate[bot] f7c41baf2e
chore(deps): update dependency eslint to v8.38.0 (#3596)
[![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](https://eslint.org)
([source](https://togithub.com/eslint/eslint)) | [`8.34.0` ->
`8.38.0`](https://renovatebot.com/diffs/npm/eslint/8.34.0/8.38.0) |
[![age](https://badges.renovateapi.com/packages/npm/eslint/8.38.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/eslint/8.38.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/eslint/8.38.0/compatibility-slim/8.34.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/eslint/8.38.0/confidence-slim/8.34.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>eslint/eslint</summary>

### [`v8.38.0`](https://togithub.com/eslint/eslint/releases/tag/v8.38.0)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.37.0...v8.38.0)

#### Features

-
[`a1d561d`](a1d561d18e)
feat: Move getDeclaredVariables and getAncestors to SourceCode
([#&#8203;17059](https://togithub.com/eslint/eslint/issues/17059))
(Nicholas C. Zakas)

#### Bug Fixes

-
[`1c1ece2`](1c1ece26d1)
fix: do not report on `RegExp(...args)` in `require-unicode-regexp`
([#&#8203;17037](https://togithub.com/eslint/eslint/issues/17037))
(Francesco Trotta)

#### Documentation

-
[`7162d34`](7162d34df9)
docs: Mention new config system is complete
([#&#8203;17068](https://togithub.com/eslint/eslint/issues/17068))
(Nicholas C. Zakas)
-
[`0fd6bb2`](0fd6bb213a)
docs: Update README (GitHub Actions Bot)
-
[`c83531c`](c83531c1a6)
docs: Update/remove external links, eg. point to `eslint-community`
([#&#8203;17061](https://togithub.com/eslint/eslint/issues/17061))
(Pelle Wessman)
-
[`a3aa6f5`](a3aa6f5f14)
docs: Clarify `no-div-regex` rule docs
([#&#8203;17051](https://togithub.com/eslint/eslint/issues/17051))
(Francesco Trotta)
-
[`b0f11cf`](b0f11cf977)
docs: Update README (GitHub Actions Bot)
-
[`da8d52a`](da8d52a9d4)
docs: Update the second object instance for the "no-new" rule
([#&#8203;17020](https://togithub.com/eslint/eslint/issues/17020))
(Ahmadou Waly NDIAYE)
-
[`518130a`](518130ae79)
docs: switch language based on current path
([#&#8203;16687](https://togithub.com/eslint/eslint/issues/16687))
(Percy Ma)
-
[`24206c4`](24206c49a1)
docs: Update README (GitHub Actions Bot)

#### Chores

-
[`59ed060`](59ed06041d)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).38.0
([#&#8203;17069](https://togithub.com/eslint/eslint/issues/17069))
(Milos Djermanovic)
-
[`88c0898`](88c08984ec)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`cf682d2`](cf682d249f)
refactor: simplify new-parens rule schema
([#&#8203;17060](https://togithub.com/eslint/eslint/issues/17060)) (MHO)
-
[`0dde022`](0dde022112)
ci: bump actions/add-to-project from 0.4.1 to 0.5.0
([#&#8203;17055](https://togithub.com/eslint/eslint/issues/17055))
(dependabot\[bot])

### [`v8.37.0`](https://togithub.com/eslint/eslint/releases/tag/v8.37.0)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.36.0...v8.37.0)

#### Features

-
[`b6ab8b2`](b6ab8b2a2c)
feat: `require-unicode-regexp` add suggestions
([#&#8203;17007](https://togithub.com/eslint/eslint/issues/17007)) (Josh
Goldberg)
-
[`10022b1`](10022b1f4b)
feat: Copy getScope() to SourceCode
([#&#8203;17004](https://togithub.com/eslint/eslint/issues/17004))
(Nicholas C. Zakas)
-
[`1665c02`](1665c029ac)
feat: Use plugin metadata for flat config serialization
([#&#8203;16992](https://togithub.com/eslint/eslint/issues/16992))
(Nicholas C. Zakas)
-
[`b3634f6`](b3634f695d)
feat: docs license
([#&#8203;17010](https://togithub.com/eslint/eslint/issues/17010))
(Samuel Roldan)
-
[`892e6e5`](892e6e58c5)
feat: languageOptions.parser must be an object.
([#&#8203;16985](https://togithub.com/eslint/eslint/issues/16985))
(Nicholas C. Zakas)

#### Bug Fixes

-
[`619f3fd`](619f3fd173)
fix: correctly handle `null` default config in `RuleTester`
([#&#8203;17023](https://togithub.com/eslint/eslint/issues/17023)) (Brad
Zacher)
-
[`1fbf118`](1fbf1184fe)
fix: `getFirstToken`/`getLastToken` on comment-only node
([#&#8203;16889](https://togithub.com/eslint/eslint/issues/16889))
(Francesco Trotta)
-
[`129e252`](129e252132)
fix: Fix typo in `logical-assignment-operators` rule description
([#&#8203;17000](https://togithub.com/eslint/eslint/issues/17000))
(Francesco Trotta)

#### Documentation

-
[`75339df`](75339df994)
docs: fix typos and missing info in id-match docs
([#&#8203;17029](https://togithub.com/eslint/eslint/issues/17029)) (Ed
Lucas)
-
[`ec2d830`](ec2d830785)
docs: Fix typos in the `semi` rule docs
([#&#8203;17012](https://togithub.com/eslint/eslint/issues/17012))
(Andrii Lundiak)
-
[`e39f28d`](e39f28d857)
docs: add back to top button
([#&#8203;16979](https://togithub.com/eslint/eslint/issues/16979))
(Tanuj Kanti)
-
[`721c717`](721c71782a)
docs: Custom Processors cleanup and expansion
([#&#8203;16838](https://togithub.com/eslint/eslint/issues/16838)) (Ben
Perlmutter)
-
[`d049f97`](d049f97410)
docs: 'How ESLint is Maintained' page
([#&#8203;16961](https://togithub.com/eslint/eslint/issues/16961)) (Ben
Perlmutter)
-
[`5251a92`](5251a92186)
docs: Describe guard options for guard-for-in
([#&#8203;16986](https://togithub.com/eslint/eslint/issues/16986))
(alope107)
-
[`6157d81`](6157d813e1)
docs: Add example to guard-for-in docs.
([#&#8203;16983](https://togithub.com/eslint/eslint/issues/16983))
(alope107)
-
[`fd47998`](fd47998af6)
docs: update `Array.prototype.toSorted` specification link
([#&#8203;16982](https://togithub.com/eslint/eslint/issues/16982))
(Milos Djermanovic)
-
[`3e1cf6b`](3e1cf6bfc5)
docs: Copy edits on Maintain ESLint docs
([#&#8203;16939](https://togithub.com/eslint/eslint/issues/16939)) (Ben
Perlmutter)

#### Chores

-
[`c67f299`](c67f2992a7)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).37.0
([#&#8203;17033](https://togithub.com/eslint/eslint/issues/17033))
(Milos Djermanovic)
-
[`ee9ddbd`](ee9ddbd63e)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`dddb475`](dddb475288)
chore: upgrade
[@&#8203;eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@&#8203;2](https://togithub.com/2).0.2
([#&#8203;17032](https://togithub.com/eslint/eslint/issues/17032))
(Milos Djermanovic)
-
[`522431e`](522431e520)
chore: upgrade espree@9.5.1
([#&#8203;17031](https://togithub.com/eslint/eslint/issues/17031))
(Milos Djermanovic)
-
[`f5f9a88`](f5f9a88c79)
chore: upgrade eslint-visitor-keys@3.4.0
([#&#8203;17030](https://togithub.com/eslint/eslint/issues/17030))
(Milos Djermanovic)
-
[`4dd8d52`](4dd8d524e0)
ci: bump actions/stale from 7 to 8
([#&#8203;17026](https://togithub.com/eslint/eslint/issues/17026))
(dependabot\[bot])
-
[`ad9dd6a`](ad9dd6a933)
chore: remove duplicate scss,
([#&#8203;17005](https://togithub.com/eslint/eslint/issues/17005))
(Strek)
-
[`ada6a3e`](ada6a3e6e3)
ci: unpin Node 19
([#&#8203;16993](https://togithub.com/eslint/eslint/issues/16993))
(Milos Djermanovic)
-
[`c3da975`](c3da975e69)
chore: Remove triage label from template
([#&#8203;16990](https://togithub.com/eslint/eslint/issues/16990))
(Nicholas C. Zakas)
-
[`69bc0e2`](69bc0e2f44)
ci: pin Node 19 to 19.7.0
([#&#8203;16987](https://togithub.com/eslint/eslint/issues/16987))
(Milos Djermanovic)

### [`v8.36.0`](https://togithub.com/eslint/eslint/releases/tag/v8.36.0)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.35.0...v8.36.0)

#### Features

-
[`c89a485`](c89a485c49)
feat: Add `checkJSDoc` option to multiline-comment-style
([#&#8203;16807](https://togithub.com/eslint/eslint/issues/16807))
(Laurent Cozic)
-
[`f5f5e11`](f5f5e11bd5)
feat: Serialize parsers/processors in flat config
([#&#8203;16944](https://togithub.com/eslint/eslint/issues/16944))
(Nicholas C. Zakas)
-
[`4799297`](4799297ea5)
feat: use
[@&#8203;eslint-community](https://togithub.com/eslint-community)
dependencies
([#&#8203;16784](https://togithub.com/eslint/eslint/issues/16784))
(Michaël De Boey)

#### Bug Fixes

-
[`92c1943`](92c1943ba7)
fix: correctly iterate files matched by glob patterns
([#&#8203;16831](https://togithub.com/eslint/eslint/issues/16831))
(Nitin Kumar)

#### Documentation

-
[`b98fdd4`](b98fdd413a)
docs: Update README (GitHub Actions Bot)
-
[`caf08ce`](caf08ce0cc)
docs: fix estree link in custom formatters docs
([#&#8203;16967](https://togithub.com/eslint/eslint/issues/16967))
(Milos Djermanovic)
-
[`3398431`](3398431574)
docs: Custom Parsers cleanup/expansion
([#&#8203;16887](https://togithub.com/eslint/eslint/issues/16887)) (Ben
Perlmutter)
-
[`19d3531`](19d3531d9b)
docs: Update README (GitHub Actions Bot)
-
[`b09a512`](b09a512107)
docs: detect and fix broken links
([#&#8203;16837](https://togithub.com/eslint/eslint/issues/16837))
(Nitin Kumar)

#### Chores

-
[`602b111`](602b111219)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).36.0
([#&#8203;16978](https://togithub.com/eslint/eslint/issues/16978))
(Milos Djermanovic)
-
[`43c2345`](43c2345c27)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`00afb84`](00afb84e50)
chore: upgrade
[@&#8203;eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@&#8203;2](https://togithub.com/2).0.1
([#&#8203;16977](https://togithub.com/eslint/eslint/issues/16977))
(Milos Djermanovic)
-
[`698c5aa`](698c5aad50)
chore: upgrade espree@9.5.0
([#&#8203;16976](https://togithub.com/eslint/eslint/issues/16976))
(Milos Djermanovic)
-
[`75acdd2`](75acdd21c5)
chore: lint more js files in docs
([#&#8203;16964](https://togithub.com/eslint/eslint/issues/16964))
(Milos Djermanovic)
-
[`89d9844`](89d9844b31)
ci: bump actions/add-to-project from 0.4.0 to 0.4.1
([#&#8203;16943](https://togithub.com/eslint/eslint/issues/16943))
(dependabot\[bot])

### [`v8.35.0`](https://togithub.com/eslint/eslint/releases/tag/v8.35.0)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.34.0...v8.35.0)

#### Features

-
[`8e34a04`](8e34a04e3a)
feat: add `afterHashbangComment` option to `lines-around-comment` rule
([#&#8203;16920](https://togithub.com/eslint/eslint/issues/16920))
(SUZUKI Sosuke)
-
[`c8c0c71`](c8c0c715a2)
feat: Move all and recommended configs into package.
([#&#8203;16844](https://togithub.com/eslint/eslint/issues/16844))
(Nicholas C. Zakas)
-
[`71f6f0d`](71f6f0dcd5)
feat: report more cases with `??` in no-constant-binary-expression
([#&#8203;16826](https://togithub.com/eslint/eslint/issues/16826))
(Daiki Nishikawa)

#### Bug Fixes

-
[`9698bc5`](9698bc5cde)
fix: pin esquery v1.4.0 (fixes
[#&#8203;16896](https://togithub.com/eslint/eslint/issues/16896))
([#&#8203;16897](https://togithub.com/eslint/eslint/issues/16897)) (唯然)

#### Documentation

-
[`f9f195e`](f9f195ef12)
docs: Plugin docs cleanup & expansion
([#&#8203;16862](https://togithub.com/eslint/eslint/issues/16862)) (Ben
Perlmutter)
-
[`df809fd`](df809fdedc)
docs: Custom Formatters page cleanup/expansion
([#&#8203;16886](https://togithub.com/eslint/eslint/issues/16886)) (Ben
Perlmutter)
-
[`0700d1b`](0700d1b146)
docs: Add PostCSS/Autoprefixer/CSSNano
([#&#8203;16502](https://togithub.com/eslint/eslint/issues/16502)) (Nick
Schonning)
-
[`7b9e9bf`](7b9e9bf78b)
docs: support unicode anchors
([#&#8203;16782](https://togithub.com/eslint/eslint/issues/16782))
(Percy Ma)
-
[`5fbc0bf`](5fbc0bffdd)
docs: Update README (GitHub Actions Bot)
-
[`67865a0`](67865a064c)
docs: Remove mention of mailing list
([#&#8203;16869](https://togithub.com/eslint/eslint/issues/16869))
(Amaresh S M)
-
[`43af24a`](43af24a88b)
docs: Add explanation of when to use 'warn' severity
([#&#8203;16882](https://togithub.com/eslint/eslint/issues/16882))
(Nicholas C. Zakas)
-
[`ed2999b`](ed2999b38b)
docs: Shareable configs page edits and expansion
([#&#8203;16824](https://togithub.com/eslint/eslint/issues/16824)) (Ben
Perlmutter)
-
[`2780635`](27806358b5)
docs: fix typos
([#&#8203;16884](https://togithub.com/eslint/eslint/issues/16884))
(Lioness100)
-
[`5bdaae2`](5bdaae205c)
docs: Ways to Extend ESLint page
([#&#8203;16861](https://togithub.com/eslint/eslint/issues/16861)) (Ben
Perlmutter)

#### Chores

-
[`cdcbe12`](cdcbe127de)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).35.0
([#&#8203;16935](https://togithub.com/eslint/eslint/issues/16935))
(Brandon Mills)
-
[`c954c34`](c954c349c0)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`5a517da`](5a517da8e5)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`9f10926`](9f10926d76)
chore: upgrade
[@&#8203;eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@&#8203;2](https://togithub.com/2).0.0
([#&#8203;16928](https://togithub.com/eslint/eslint/issues/16928))
(Milos Djermanovic)
-
[`da728fa`](da728fae6c)
ci: use LTS node version in workflows
([#&#8203;16907](https://togithub.com/eslint/eslint/issues/16907))
(Nitin Kumar)
-
[`c57b4f3`](c57b4f3dc6)
perf: upgrade to esquery@1.4.2
([#&#8203;16901](https://togithub.com/eslint/eslint/issues/16901))
(Milos Djermanovic)
-
[`9122f07`](9122f07640)
chore: Update stale bot settings
([#&#8203;16870](https://togithub.com/eslint/eslint/issues/16870))
(Nicholas C. Zakas)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- 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://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS41Ny4wIiwidXBkYXRlZEluVmVyIjoiMzUuNTcuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-23 22:27:50 +00:00
..
cypress fix: remove e2e tests (#3515) 2023-04-13 16:04:06 +03:00
public
scripts
src
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
cypress.d.ts
cypress.json
index.html ui flags replaced in index.html (#2617) 2022-12-07 14:31:27 +02:00
index.js
orval.config.js
package.json
README.md chore: avoid building frontend when possible (#3278) 2023-03-15 13:17:32 +01:00
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

First, start the unleash-api backend on port 4242. Then, start the frontend dev server:

cd ./frontend
yarn install
yarn run start

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ./frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

./scripts/generate-openapi.sh

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory