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

---

### Release Notes

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

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

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.42.0...v8.43.0)

#### Features

-
[`14581ff`](14581ff15a)
feat: directive prologue detection and autofix condition in `quotes`
([#&#8203;17284](https://togithub.com/eslint/eslint/issues/17284))
(Francesco Trotta)
-
[`e50fac3`](e50fac3f8f)
feat: add declaration loc to message in block-scoped-var
([#&#8203;17252](https://togithub.com/eslint/eslint/issues/17252))
(Milos Djermanovic)
-
[`1b7faf0`](1b7faf0702)
feat: add `skipJSXText` option to `no-irregular-whitespace` rule
([#&#8203;17182](https://togithub.com/eslint/eslint/issues/17182)) (Azat
S)

#### Bug Fixes

-
[`5338b56`](5338b56fda)
fix: normalize `cwd` passed to `ESLint`/`FlatESLint` constructor
([#&#8203;17277](https://togithub.com/eslint/eslint/issues/17277))
(Milos Djermanovic)
-
[`54383e6`](54383e69b0)
fix: Remove `no-extra-parens` autofix for potential directives
([#&#8203;17022](https://togithub.com/eslint/eslint/issues/17022))
(Francesco Trotta)

#### Documentation

-
[`8b855ea`](8b855ea058)
docs: resubmit pr17061 doc changes
([#&#8203;17292](https://togithub.com/eslint/eslint/issues/17292)) (唯然)
-
[`372722e`](372722eac3)
docs: resubmit pr17012 doc changes
([#&#8203;17293](https://togithub.com/eslint/eslint/issues/17293)) (唯然)
-
[`67e7af3`](67e7af3fdb)
docs: resubmit custom-rules doc changes
([#&#8203;17294](https://togithub.com/eslint/eslint/issues/17294)) (唯然)
-
[`9e3d77c`](9e3d77cba6)
docs: Resubmit Fix formatting in Custom Rules docs
([#&#8203;17281](https://togithub.com/eslint/eslint/issues/17281))
(Milos Djermanovic)
-
[`503647a`](503647a0b9)
docs: Resubmit markVariableAsUsed docs
([#&#8203;17280](https://togithub.com/eslint/eslint/issues/17280))
(Nicholas C. Zakas)
-
[`e0cf0d8`](e0cf0d86d9)
docs: Custom rule & plugin tutorial
([#&#8203;17024](https://togithub.com/eslint/eslint/issues/17024)) (Ben
Perlmutter)
-
[`8e51ea9`](8e51ea943c)
docs: resubmit `no-new` rule documentation
([#&#8203;17264](https://togithub.com/eslint/eslint/issues/17264))
(Nitin Kumar)
-
[`1b217f8`](1b217f8de1)
docs: resubmit `Custom Processors` documentation
([#&#8203;17265](https://togithub.com/eslint/eslint/issues/17265))
(Nitin Kumar)
-
[`428fc76`](428fc76806)
docs: resubmit `Create Plugins` documentation
([#&#8203;17268](https://togithub.com/eslint/eslint/issues/17268))
(Nitin Kumar)
-
[`bdca88c`](bdca88cf4f)
docs: resubmit `Configuration Files` documentation
([#&#8203;17267](https://togithub.com/eslint/eslint/issues/17267))
(Nitin Kumar)
-
[`f5c01f2`](f5c01f281a)
docs: resubmit `Manage Issues` documentation
([#&#8203;17266](https://togithub.com/eslint/eslint/issues/17266))
(Nitin Kumar)
-
[`b199295`](b199295459)
docs: Resubmit custom rules update docs
([#&#8203;17273](https://togithub.com/eslint/eslint/issues/17273)) (Ben
Perlmutter)
-
[`0e9980c`](0e9980c3a8)
docs: add new `omitLastInOneLineClassBody` option to the `semi` rule
([#&#8203;17263](https://togithub.com/eslint/eslint/issues/17263))
(Nitin Kumar)
-
[`cb2560f`](cb2560f7a3)
docs: Resubmit getScope/getDeclaredVariables docs
([#&#8203;17262](https://togithub.com/eslint/eslint/issues/17262))
(Nicholas C. Zakas)
-
[`85d2b30`](85d2b30bc3)
docs: explain how to include predefined globals
([#&#8203;17261](https://togithub.com/eslint/eslint/issues/17261))
(Marcus Wyatt)
-
[`de4d3c1`](de4d3c14c3)
docs: update flat config default ignore patterns
([#&#8203;17258](https://togithub.com/eslint/eslint/issues/17258))
(Milos Djermanovic)
-
[`3912f3a`](3912f3a225)
docs: Improve `ignores` documentation
([#&#8203;17239](https://togithub.com/eslint/eslint/issues/17239))
(Francesco Trotta)
-
[`35e11d3`](35e11d3248)
docs: fix typos and missing info
([#&#8203;17257](https://togithub.com/eslint/eslint/issues/17257)) (Ed
Lucas)
-
[`0bc257c`](0bc257c290)
docs: Clarify `no-div-regex` rule docs
([#&#8203;17051](https://togithub.com/eslint/eslint/issues/17051))
([#&#8203;17255](https://togithub.com/eslint/eslint/issues/17255))
(Francesco Trotta)
-
[`788d836`](788d83629a)
docs: add references to MIT License
([#&#8203;17248](https://togithub.com/eslint/eslint/issues/17248))
(Milos Djermanovic)
-
[`58aab6b`](58aab6b6c0)
docs: Update README (GitHub Actions Bot)
-
[`3ef5814`](3ef5814055)
docs: Revert all changes after the license change
([#&#8203;17227](https://togithub.com/eslint/eslint/issues/17227))
(Milos Djermanovic)
-
[`03fc4aa`](03fc4aa847)
docs: Update README (GitHub Actions Bot)

#### Chores

-
[`78350f6`](78350f6304)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).43.0
([#&#8203;17295](https://togithub.com/eslint/eslint/issues/17295))
(Milos Djermanovic)
-
[`62bf759`](62bf759124)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`e0a2448`](e0a2448e0c)
chore: docs package.license ISC => MIT
([#&#8203;17254](https://togithub.com/eslint/eslint/issues/17254)) (唯然)
-
[`6a0196c`](6a0196c513)
chore: use eslint-plugin-eslint-plugin flat configs
([#&#8203;17204](https://togithub.com/eslint/eslint/issues/17204))
(Milos Djermanovic)

</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://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-24 07:06:25 +00:00
..
cypress
public
scripts
src feat: upgrade AdminAlert to PermissionGuard (#4074) 2023-06-23 13:25:35 +01:00
.editorconfig add editorconfig 2016-12-05 23:08:32 +01:00
.gitignore Test npm publish (#3554) 2023-04-18 15:44:19 +02:00
.nvmrc chore: update to node 18 (#3527) 2023-04-18 10:35:32 +02:00
.prettierignore
.prettierrc refactor: format files (#719) 2022-02-18 09:51:10 +01:00
cypress.config.ts
cypress.d.ts chore: refactor Cypress tests (#3445) 2023-04-04 11:46:28 +03:00
index.html
index.js
orval.config.js
package.json chore(deps): update dependency eslint to v8.43.0 (#4091) 2023-06-24 07:06:25 +00:00
README.md chore: simplify package scripts (#3736) 2023-05-12 11:23:22 +01:00
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts fix: preload error (#2980) 2023-01-24 20:40:03 +01:00
yarn.lock chore(deps): update dependency eslint to v8.43.0 (#4091) 2023-06-24 07:06:25 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

Refer to the Contributing to Unleash guide for instructions. The frontend dev server runs (in port 3000) simultaneously with the backend dev server (in port 4242):

yarn install
yarn dev

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