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

---

### Release Notes

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

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

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.40.0...v8.41.0)

#### Features

-
[`880a431`](880a4317b9)
feat: change default ignore pattern to `**/node_modules/` in flat config
([#&#8203;17184](https://togithub.com/eslint/eslint/issues/17184))
(Milos Djermanovic)
-
[`8bf5505`](8bf550594f)
feat: expose `shouldUseFlatConfig`
([#&#8203;17169](https://togithub.com/eslint/eslint/issues/17169))
(Connor Prussin)

#### Bug Fixes

-
[`4f5440d`](4f5440db63)
fix: incorrect warning message for ignored dotfiles
([#&#8203;17196](https://togithub.com/eslint/eslint/issues/17196))
(Milos Djermanovic)
-
[`94da96c`](94da96cbf0)
fix: unify `LintMessage` type
([#&#8203;17076](https://togithub.com/eslint/eslint/issues/17076))
(Brandon Mills)
-
[`0c415cd`](0c415cda5d)
fix: validate `ignorePatterns` constructor option in `FlatESLint` class
([#&#8203;17139](https://togithub.com/eslint/eslint/issues/17139))
(Milos Djermanovic)
-
[`9682d66`](9682d669e4)
fix: switch `grapheme-splitter` to `graphemer`
([#&#8203;17160](https://togithub.com/eslint/eslint/issues/17160))
(fisker Cheung)

#### Documentation

-
[`7709b14`](7709b14e18)
docs: Update README (GitHub Actions Bot)
-
[`7f183e0`](7f183e0205)
docs: Update triage process description
([#&#8203;17157](https://togithub.com/eslint/eslint/issues/17157))
(Nicholas C. Zakas)
-
[`b68346b`](b68346b290)
docs: fix license to reflect relicensing of jshint
([#&#8203;17165](https://togithub.com/eslint/eslint/issues/17165))
(Stefan Bischof)

#### Chores

-
[`f43216a`](f43216a8c7)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).41.0
([#&#8203;17200](https://togithub.com/eslint/eslint/issues/17200))
(Milos Djermanovic)
-
[`95c3007`](95c300780a)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (ESLint
Jenkins)
-
[`ddc5291`](ddc5291deb)
chore: don't use deprecated `context` methods in `ast-utils` tests
([#&#8203;17194](https://togithub.com/eslint/eslint/issues/17194))
(Milos Djermanovic)
-
[`b1516db`](b1516db515)
chore: Fix return type of `findFlatConfigFile`
([#&#8203;17161](https://togithub.com/eslint/eslint/issues/17161))
(Milos Djermanovic)
-
[`918b0fd`](918b0fd217)
perf: Store indent descriptors in a plain array
([#&#8203;17148](https://togithub.com/eslint/eslint/issues/17148))
(Francesco Trotta)
-
[`4caa344`](4caa344495)
refactor: locateConfigFileToUse returns an Error object
([#&#8203;17159](https://togithub.com/eslint/eslint/issues/17159)) (唯然)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMDIuNCIsInVwZGF0ZWRJblZlciI6IjM1LjEwMi40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-28 09:53:24 +00:00
..
cypress Fix/cr should activate disabled lag free (#3826) 2023-05-23 10:16:09 +03:00
public
scripts
src Fix: laggy toggles (#3873) 2023-05-26 16:42:42 +02:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc
cypress.config.ts
cypress.d.ts
index.html
index.js
orval.config.js
package.json chore(deps): update dependency eslint to v8.41.0 (#3883) 2023-05-28 09:53:24 +00:00
README.md
tsconfig.json
tsconfig.node.json
vercel.json
vite.config.ts
yarn.lock chore(deps): update dependency eslint to v8.41.0 (#3883) 2023-05-28 09:53:24 +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