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

---

### Release Notes

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

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

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

#### Features

-
[`f14587c`](f14587c42b)
feat: new `no-new-native-nonconstructor` rule
([#&#8203;16368](https://togithub.com/eslint/eslint/issues/16368))
(Sosuke Suzuki)
-
[`978799b`](978799bd5c)
feat: add new rule `no-empty-static-block`
([#&#8203;16325](https://togithub.com/eslint/eslint/issues/16325))
(Sosuke Suzuki)
-
[`69216ee`](69216ee69c)
feat: no-empty suggest to add comment in empty BlockStatement
([#&#8203;16470](https://togithub.com/eslint/eslint/issues/16470))
(Nitin Kumar)
-
[`319f0a5`](319f0a5491)
feat: use `context.languageOptions.ecmaVersion` in core rules
([#&#8203;16458](https://togithub.com/eslint/eslint/issues/16458))
(Milos Djermanovic)

#### Bug Fixes

-
[`c3ce521`](c3ce5212f6)
fix: Ensure unmatched glob patterns throw an error
([#&#8203;16462](https://togithub.com/eslint/eslint/issues/16462))
(Nicholas C. Zakas)
-
[`886a038`](886a038689)
fix: handle files with unspecified path in `getRulesMetaForResults`
([#&#8203;16437](https://togithub.com/eslint/eslint/issues/16437))
(Francesco Trotta)

#### Documentation

-
[`ce93b42`](ce93b429bf)
docs: Stylelint property-no-unknown
([#&#8203;16497](https://togithub.com/eslint/eslint/issues/16497)) (Nick
Schonning)
-
[`d2cecb4`](d2cecb4ad2)
docs: Stylelint declaration-block-no-shorthand-property-overrides
([#&#8203;16498](https://togithub.com/eslint/eslint/issues/16498)) (Nick
Schonning)
-
[`0a92805`](0a92805d77)
docs: stylelint color-hex-case
([#&#8203;16496](https://togithub.com/eslint/eslint/issues/16496)) (Nick
Schonning)
-
[`74a5af4`](74a5af487a)
docs: fix stylelint error
([#&#8203;16491](https://togithub.com/eslint/eslint/issues/16491))
(Milos Djermanovic)
-
[`324db1a`](324db1a11e)
docs: explicit stylelint color related rules
([#&#8203;16465](https://togithub.com/eslint/eslint/issues/16465)) (Nick
Schonning)
-
[`94dc4f1`](94dc4f19ba)
docs: use Stylelint for HTML files
([#&#8203;16468](https://togithub.com/eslint/eslint/issues/16468)) (Nick
Schonning)
-
[`cc6128d`](cc6128db4f)
docs: enable stylelint declaration-block-no-duplicate-properties
([#&#8203;16466](https://togithub.com/eslint/eslint/issues/16466)) (Nick
Schonning)
-
[`d03a8bf`](d03a8bf897)
docs: Add heading to justification explanation
([#&#8203;16430](https://togithub.com/eslint/eslint/issues/16430))
(Maritaria)
-
[`8a15968`](8a159686f9)
docs: add Stylelint configuration and cleanup
([#&#8203;16379](https://togithub.com/eslint/eslint/issues/16379)) (Nick
Schonning)
-
[`9b0a469`](9b0a469d1e)
docs: note commit messages don't support scope
([#&#8203;16435](https://togithub.com/eslint/eslint/issues/16435)) (Andy
Edwards)
-
[`1581405`](15814057fd)
docs: improve context.getScope() docs
([#&#8203;16417](https://togithub.com/eslint/eslint/issues/16417)) (Ben
Perlmutter)
-
[`b797149`](b7971496e9)
docs: update formatters template
([#&#8203;16454](https://togithub.com/eslint/eslint/issues/16454))
(Milos Djermanovic)
-
[`5ac4de9`](5ac4de911f)
docs: fix link to formatters on the Core Concepts page
([#&#8203;16455](https://togithub.com/eslint/eslint/issues/16455))
(Vladislav)
-
[`33313ef`](33313ef562)
docs: core-concepts: fix link to semi rule
([#&#8203;16453](https://togithub.com/eslint/eslint/issues/16453))
(coderaiser)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-10 08:21:34 +01:00
..
cypress
public
scripts feat: generate an OpenAPI client (2) (#875) 2022-04-26 10:53:46 +02:00
src fix: set suggested min value to 0 (#2363) 2022-11-09 21:43:13 +00:00
.editorconfig add editorconfig 2016-12-05 23:08:32 +01:00
.gitignore
.nvmrc chore(deps): update node.js to 14.20 (#1186) 2022-08-18 14:04:16 +00:00
.prettierignore feat: generate an OpenAPI client (2) (#875) 2022-04-26 10:53:46 +02:00
.prettierrc
cypress.json
index.html refactor: adapt to Vite (#940) 2022-05-05 16:15:22 +01:00
index.js
package.json chore(deps): update dependency eslint to v8.27.0 (#2374) 2022-11-10 08:21:34 +01:00
README.md docs: Remove/update references to Heroku (#2099) 2022-10-19 12:02:00 +00:00
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.27.0 (#2374) 2022-11-10 08:21:34 +01: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.