1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend
renovate[bot] 232ad28661
chore(deps): update dependency eslint to v8.33.0 (#3113)
[![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.31.0` ->
`8.33.0`](https://renovatebot.com/diffs/npm/eslint/8.31.0/8.33.0) |
[![age](https://badges.renovateapi.com/packages/npm/eslint/8.33.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/eslint/8.33.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/eslint/8.33.0/compatibility-slim/8.31.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/eslint/8.33.0/confidence-slim/8.31.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.32.0...v8.33.0)

#### Features

-
[`2cc7954`](2cc7954cdb)
feat: add `restrictDefaultExports` option to no-restricted-exports rule
([#&#8203;16785](https://togithub.com/eslint/eslint/issues/16785))
(Nitin Kumar)

#### Documentation

-
[`17f4be2`](17f4be2b66)
docs: Fix examples in no-multiple-empty-lines rule
([#&#8203;16835](https://togithub.com/eslint/eslint/issues/16835))
(jonz94)
-
[`9c7cfe3`](9c7cfe33c4)
docs: 'Source Code' content in 'Set up Development Environment' page
([#&#8203;16780](https://togithub.com/eslint/eslint/issues/16780)) (Ben
Perlmutter)
-
[`ede5c64`](ede5c64754)
docs: Custom processors page
([#&#8203;16802](https://togithub.com/eslint/eslint/issues/16802)) (Ben
Perlmutter)
-
[`2620614`](2620614f52)
docs: Code of Conduct page
([#&#8203;16781](https://togithub.com/eslint/eslint/issues/16781)) (Ben
Perlmutter)
-
[`50a8efd`](50a8efd957)
docs: report a sec vulnerability page
([#&#8203;16808](https://togithub.com/eslint/eslint/issues/16808)) (Ben
Perlmutter)
-
[`ed60afd`](ed60afd445)
docs: Update page titles, section landing pages, and side TOC
([#&#8203;16760](https://togithub.com/eslint/eslint/issues/16760)) (Ben
Perlmutter)
-
[`333c712`](333c712435)
docs: add background to code-path-diagrams for dark-mode
([#&#8203;16822](https://togithub.com/eslint/eslint/issues/16822))
(Tanuj Kanti)
-
[`f5f7b9b`](f5f7b9b8b5)
docs: Update README (GitHub Actions Bot)
-
[`2aa4f5f`](2aa4f5fb2f)
docs: no-constant-condition: Add multi-comparison example
([#&#8203;16776](https://togithub.com/eslint/eslint/issues/16776))
(Sebastian Simon)
-
[`40287db`](40287dbe74)
docs: Remove Google Group icon
([#&#8203;16779](https://togithub.com/eslint/eslint/issues/16779))
(Nicholas C. Zakas)
-
[`ea10ca5`](ea10ca5b7b)
docs: 'a .eslint' -> 'an .eslint' for consistency
([#&#8203;16809](https://togithub.com/eslint/eslint/issues/16809)) (Ben
Perlmutter)
-
[`3be0748`](3be07488ee)
docs: add example for nodejs lintText api
([#&#8203;16789](https://togithub.com/eslint/eslint/issues/16789)) (Siva
K)
-
[`ce4f5ff`](ce4f5ff305)
docs: Replace removed related rules with a valid rule
([#&#8203;16800](https://togithub.com/eslint/eslint/issues/16800))
(Ville Saalo)

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

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.31.0...v8.32.0)

#### Features

-
[`fc20f24`](fc20f242a2)
feat: add suggestions for redundant wrapping in prefer-regex-literals
([#&#8203;16658](https://togithub.com/eslint/eslint/issues/16658))
(YeonJuan)

#### Bug Fixes

-
[`b4f8329`](b4f8329164)
fix: ignore directives for no-fallthrough
([#&#8203;16757](https://togithub.com/eslint/eslint/issues/16757))
(gfyoung)

#### Documentation

-
[`17b65ad`](17b65ad10d)
docs: IA Update page URL move
([#&#8203;16665](https://togithub.com/eslint/eslint/issues/16665)) (Ben
Perlmutter)
-
[`5981296`](5981296d5c)
docs: fix theme switcher button
([#&#8203;16752](https://togithub.com/eslint/eslint/issues/16752)) (Sam
Chen)
-
[`6669413`](66694136b6)
docs: deploy prerelease docs under the `/docs/next/` path
([#&#8203;16541](https://togithub.com/eslint/eslint/issues/16541))
(Nitin Kumar)
-
[`78ecfe0`](78ecfe0e52)
docs: use inline code for rule options name
([#&#8203;16768](https://togithub.com/eslint/eslint/issues/16768))
(Percy Ma)
-
[`fc2ea59`](fc2ea598ae)
docs: Update README (GitHub Actions Bot)
-
[`762a872`](762a8727fb)
docs: Update README (GitHub Actions Bot)

#### Chores

-
[`2952d6e`](2952d6ed95)
chore: sync templates/\*.md files with issue templates
([#&#8203;16758](https://togithub.com/eslint/eslint/issues/16758))
(gfyoung)
-
[`3e34418`](3e34418b31)
chore: Add new issues to triage project
([#&#8203;16740](https://togithub.com/eslint/eslint/issues/16740))
(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:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMzMuMCIsInVwZGF0ZWRJblZlciI6IjM0LjEzMy4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-15 08:09:22 +00:00
..
cypress refactor: remove variants per environment feature flag (#3102) 2023-02-14 14:02:02 +00:00
public
src refactor: remove old components after variants per env (#3110) 2023-02-14 16:03:53 +00:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc
cypress.json
index.html
index.js
orval.config.js
package.json chore(deps): update dependency eslint to v8.33.0 (#3113) 2023-02-15 08:09:22 +00:00
README.md
tsconfig.json Add multiple tags (#3032) 2023-02-03 12:28:06 +02:00
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock chore(deps): update dependency eslint to v8.33.0 (#3113) 2023-02-15 08:09:22 +00:00

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