Skip to content

Commit

Permalink
fix(deps): update dependency eslint to v9 (#4383)
Browse files Browse the repository at this point in the history
[![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.57.0` ->
`9.1.0`](https://renovatebot.com/diffs/npm/eslint/8.57.0/9.1.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint/9.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint/9.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint/8.57.0/9.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint/8.57.0/9.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>eslint/eslint (eslint)</summary>

###
[`v9.1.0`](https://togithub.com/eslint/eslint/compare/v9.0.0...b78d831e244171c939279b03be519b5c13836fce)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v9.0.0...v9.1.0)

###
[`v9.0.0`](https://togithub.com/eslint/eslint/compare/v8.57.0...e0cbc50179adac1670f4e0bd9093387a51f4f42a)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.57.0...v9.0.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on Monday" in timezone
Europe/Paris, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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/cozy/cozy-stack).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
  • Loading branch information
nono committed Apr 22, 2024
2 parents abd0ded + 6ab3329 commit 6a42e1a
Show file tree
Hide file tree
Showing 10 changed files with 39,751 additions and 58,225 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/js-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Yarn install
node-version: 20
- name: Npm install
run: |
cd ./scripts
yarn install
npm install
- name: Run eslint
run: make jslint
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ scripts/golangci-lint: Makefile

## jslint: enforce a consistent code style for Js code
jslint: scripts/node_modules
@scripts/node_modules/.bin/eslint -c scripts/eslintrc.json "assets/scripts/**" tests/system/konnector/*.js
@scripts/node_modules/.bin/eslint -c scripts/eslint.config.js "assets/scripts/**" tests/system/konnector/*.js
.PHONY: jslint

## pretty: make the assets prettier
Expand All @@ -44,8 +44,8 @@ svgo: scripts/node_modules
@scripts/node_modules/.bin/svgo -r -f assets/icons
@scripts/node_modules/.bin/svgo -r -f assets/images --exclude relocation-animated.svg

scripts/node_modules: Makefile scripts/package.json scripts/yarn.lock
@cd scripts && yarn
scripts/node_modules: Makefile scripts/package.json scripts/package-lock.json
@cd scripts && npm install

## assets: package the assets as go code
assets: web/statik/statik.go
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
const deviceToken = storage.getItem('trusted-device-token') || ''
trustedTokenInput.value = deviceToken
} catch (e) {
// do nothing
console.log(e) // do nothing
}

const onSubmitPassphrase = function (event) {
Expand Down
2 changes: 1 addition & 1 deletion assets/scripts/oidc-twofactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
const deviceToken = storage.getItem('trusted-device-token') || ''
trustedTokenInput.value = deviceToken
} catch (e) {
// do nothing
console.log(e) // do nothing
}

form.submit()
Expand Down
8 changes: 8 additions & 0 deletions scripts/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import globals from "globals";
import pluginJs from "@eslint/js";

export default [
{ files: ["**/*.js"], languageOptions: { sourceType: "script" } },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
];
11 changes: 0 additions & 11 deletions scripts/eslintrc.json

This file was deleted.

Loading

0 comments on commit 6a42e1a

Please sign in to comment.