1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/frontend
renovate[bot] f5c1d472b0
chore(deps): update dependency eslint to v8.28.0 (#2479)
[![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.27.0` ->
`8.28.0`](https://renovatebot.com/diffs/npm/eslint/8.27.0/8.28.0) |
[![age](https://badges.renovateapi.com/packages/npm/eslint/8.28.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/eslint/8.28.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/eslint/8.28.0/compatibility-slim/8.27.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/eslint/8.28.0/confidence-slim/8.27.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.27.0...v8.28.0)

#### Features

-
[`63bce44`](63bce44e7b)
feat: add `ignoreClassFieldInitialValues` option to no-magic-numbers
([#&#8203;16539](https://togithub.com/eslint/eslint/issues/16539))
(Milos Djermanovic)
-
[`8385ecd`](8385ecdbbe)
feat: multiline properties in rule `key-spacing` with option `align`
([#&#8203;16532](https://togithub.com/eslint/eslint/issues/16532))
(Francesco Trotta)
-
[`a4e89db`](a4e89dbe85)
feat: `no-obj-calls` support `Intl`
([#&#8203;16543](https://togithub.com/eslint/eslint/issues/16543))
(Sosuke Suzuki)

#### Bug Fixes

-
[`c50ae4f`](c50ae4f840)
fix: Ensure that dot files are found with globs.
([#&#8203;16550](https://togithub.com/eslint/eslint/issues/16550))
(Nicholas C. Zakas)
-
[`9432b67`](9432b67f76)
fix: throw error for first unmatched pattern
([#&#8203;16533](https://togithub.com/eslint/eslint/issues/16533))
(Milos Djermanovic)
-
[`e76c382`](e76c382772)
fix: allow `* 1` when followed by `/` in no-implicit-coercion
([#&#8203;16522](https://togithub.com/eslint/eslint/issues/16522))
(Milos Djermanovic)

#### Documentation

-
[`34c05a7`](34c05a779a)
docs: Language Options page intro and tweaks
([#&#8203;16511](https://togithub.com/eslint/eslint/issues/16511)) (Ben
Perlmutter)
-
[`3e66387`](3e663873c9)
docs: add intro and edit ignoring files page
([#&#8203;16510](https://togithub.com/eslint/eslint/issues/16510)) (Ben
Perlmutter)
-
[`436f712`](436f712843)
docs: fix Header UI inconsistency
([#&#8203;16464](https://togithub.com/eslint/eslint/issues/16464))
(Tanuj Kanti)
-
[`f743816`](f743816967)
docs: switch to wrench emoji for auto-fixable rules
([#&#8203;16545](https://togithub.com/eslint/eslint/issues/16545))
(Bryan Mishkin)
-
[`bc0547e`](bc0547eb14)
docs: improve styles for versions and languages page
([#&#8203;16553](https://togithub.com/eslint/eslint/issues/16553))
(Nitin Kumar)
-
[`6070f58`](6070f58d80)
docs: clarify esquery issue workaround
([#&#8203;16556](https://togithub.com/eslint/eslint/issues/16556))
(Milos Djermanovic)
-
[`b48e4f8`](b48e4f89c5)
docs: Command Line Interface intro and tweaks
([#&#8203;16535](https://togithub.com/eslint/eslint/issues/16535)) (Ben
Perlmutter)
-
[`b92b30f`](b92b30f93d)
docs: Add Rules page intro and content tweaks
([#&#8203;16523](https://togithub.com/eslint/eslint/issues/16523)) (Ben
Perlmutter)
-
[`1769b42`](1769b42339)
docs: Integrations page introduction
([#&#8203;16548](https://togithub.com/eslint/eslint/issues/16548)) (Ben
Perlmutter)
-
[`a8d0a57`](a8d0a57cbc)
docs: make table of contents sticky on desktop
([#&#8203;16506](https://togithub.com/eslint/eslint/issues/16506)) (Sam
Chen)
-
[`a01315a`](a01315a7d8)
docs: fix route of japanese translation site
([#&#8203;16542](https://togithub.com/eslint/eslint/issues/16542))
(Tanuj Kanti)
-
[`0515628`](0515628539)
docs: use emoji instead of svg for deprecated rule
([#&#8203;16536](https://togithub.com/eslint/eslint/issues/16536))
(Bryan Mishkin)
-
[`68f1288`](68f12882fb)
docs: set default layouts
([#&#8203;16484](https://togithub.com/eslint/eslint/issues/16484))
(Percy Ma)
-
[`776827a`](776827a174)
docs: init config about specifying shared configs
([#&#8203;16483](https://togithub.com/eslint/eslint/issues/16483))
(Percy Ma)
-
[`5c39425`](5c39425fc5)
docs: fix broken link to plugins
([#&#8203;16520](https://togithub.com/eslint/eslint/issues/16520)) (Ádám
T. Nagy)
-
[`c97c789`](c97c789768)
docs: Add missing no-new-native-nonconstructor docs code fence
([#&#8203;16503](https://togithub.com/eslint/eslint/issues/16503))
(Brandon Mills)

#### Chores

-
[`e94a4a9`](e94a4a95ee)
chore: Add tests to verify
[#&#8203;16038](https://togithub.com/eslint/eslint/issues/16038) is
fixed ([#&#8203;16538](https://togithub.com/eslint/eslint/issues/16538))
(Nicholas C. Zakas)
-
[`e13f194`](e13f194f89)
chore: stricter validation of `meta.docs.description` in core rules
([#&#8203;16529](https://togithub.com/eslint/eslint/issues/16529))
(Milos Djermanovic)
-
[`72dbfbc`](72dbfbc0c4)
chore: use `pkg` parameter in `getNpmPackageVersion`
([#&#8203;16525](https://togithub.com/eslint/eslint/issues/16525))
(webxmsj)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-19 23:32:29 +00:00
..
cypress
public
scripts
src Variants per environment (frontend) (#2453) 2022-11-18 11:43:24 +00:00
.editorconfig
.gitignore
.nvmrc chore(deps): update node.js to v14.21.1 (#2385) 2022-11-10 15:58:42 +01:00
.prettierignore
.prettierrc
cypress.json
index.html
index.js
package.json chore(deps): update dependency eslint to v8.28.0 (#2479) 2022-11-19 23:32:29 +00:00
README.md
tsconfig.json fix: limit total of PATs a user can have (#2301) 2022-11-02 08:11:35 +00:00
tsconfig.node.json
vercel.json
vite.config.ts
yarn fix: auto add stratgy when enabling empty env. (#2137) 2022-10-05 23:33:36 +02:00
yarn.lock chore(deps): update dependency eslint to v8.28.0 (#2479) 2022-11-19 23:32:29 +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.