Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#1913)
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.56.0` ->
`9.4.0`](https://renovatebot.com/diffs/npm/eslint/8.56.0/9.4.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint/9.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint/9.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint/8.56.0/9.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint/8.56.0/9.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v9.4.0`](https://togithub.com/eslint/eslint/compare/v9.3.0...a5f7e589eca05a8a30bd2532380c304759cc8225)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v9.3.0...v9.4.0)

###
[`v9.3.0`](https://togithub.com/eslint/eslint/compare/v9.2.0...41a871cf43874e2f27ad08554c7900daf0e94b06)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v9.2.0...v9.3.0)

###
[`v9.2.0`](https://togithub.com/eslint/eslint/compare/v9.1.1...271e7ab1adc45a7b2f66cfea55a54e6048d9749a)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v9.1.1...v9.2.0)

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

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

###
[`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)

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

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

#### Features

-
[`1120b9b`](https://togithub.com/eslint/eslint/commit/1120b9b7b97f10f059d8b7ede19de2572f892366)
feat: Add loadESLint() API method for v8
([#&#8203;18098](https://togithub.com/eslint/eslint/issues/18098))
(Nicholas C. Zakas)
-
[`dca7d0f`](https://togithub.com/eslint/eslint/commit/dca7d0f1c262bc72310147bcefe1d04ecf60acbc)
feat: Enable `eslint.config.mjs` and `eslint.config.cjs`
([#&#8203;18066](https://togithub.com/eslint/eslint/issues/18066))
(Nitin Kumar)

#### Bug Fixes

-
[`2196d97`](https://togithub.com/eslint/eslint/commit/2196d97094ba94d6d750828879a29538d1600de5)
fix: handle absolute file paths in `FlatRuleTester`
([#&#8203;18064](https://togithub.com/eslint/eslint/issues/18064))
(Nitin Kumar)
-
[`69dd1d1`](https://togithub.com/eslint/eslint/commit/69dd1d1387b7b53617548d1f9f2c149f179e6e17)
fix: Ensure config keys are printed for config errors
([#&#8203;18067](https://togithub.com/eslint/eslint/issues/18067))
(Nitin Kumar)
-
[`9852a31`](https://togithub.com/eslint/eslint/commit/9852a31edcf054bd5d15753ef18e2ad3216b1b71)
fix: deep merge behavior in flat config
([#&#8203;18065](https://togithub.com/eslint/eslint/issues/18065))
(Nitin Kumar)
-
[`4c7e9b0`](https://togithub.com/eslint/eslint/commit/4c7e9b0b539ba879ac1799e81f3b6add2eed4b2f)
fix: allow circular references in config
([#&#8203;18056](https://togithub.com/eslint/eslint/issues/18056))
(Milos Djermanovic)

#### Documentation

-
[`84922d0`](https://togithub.com/eslint/eslint/commit/84922d0bfa10689a34a447ab8e55975ff1c1c708)
docs: Show prerelease version in dropdown
([#&#8203;18139](https://togithub.com/eslint/eslint/issues/18139))
(Nicholas C. Zakas)
-
[`5b8c363`](https://togithub.com/eslint/eslint/commit/5b8c3636a3d7536535a6878eca0e5b773e4829d4)
docs: Switch to Ethical Ads
([#&#8203;18117](https://togithub.com/eslint/eslint/issues/18117))
(Milos Djermanovic)
-
[`77dbfd9`](https://togithub.com/eslint/eslint/commit/77dbfd9887b201a46fc68631cbde50c08e1a8dbf)
docs: show NEXT in version selectors
([#&#8203;18052](https://togithub.com/eslint/eslint/issues/18052))
(Milos Djermanovic)

#### Chores

-
[`1813aec`](https://togithub.com/eslint/eslint/commit/1813aecc4660582b0678cf32ba466eb9674266c4)
chore: upgrade
[@&#8203;eslint/js](https://togithub.com/eslint/js)[@&#8203;8](https://togithub.com/8).57.0
([#&#8203;18143](https://togithub.com/eslint/eslint/issues/18143))
(Milos Djermanovic)
-
[`5c356bb`](https://togithub.com/eslint/eslint/commit/5c356bb0c6f53c570224f8e9f02c4baca8fc6d2f)
chore: package.json update for
[@&#8203;eslint/js](https://togithub.com/eslint/js) release (Jenkins)
-
[`f4a1fe2`](https://togithub.com/eslint/eslint/commit/f4a1fe2e45aa1089fe775290bf530de82f34bf16)
test: add more tests for ignoring files and directories
([#&#8203;18068](https://togithub.com/eslint/eslint/issues/18068))
(Nitin Kumar)
-
[`42c0aef`](https://togithub.com/eslint/eslint/commit/42c0aefaf6ea8b998b1c6db61906a79c046d301a)
ci: Enable CI for `v8.x` branch
([#&#8203;18047](https://togithub.com/eslint/eslint/issues/18047))
(Milos Djermanovic)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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/apollographql/rover).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6Y2hyaXN0bWFzX3RyZWU6IGRlcGVuZGVuY2llcyJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jonathanrainer <jonathan.rainer@apollographql.com>
Co-authored-by: Brian George <brian@apollographql.com>
  • Loading branch information
3 people authored Jun 5, 2024
1 parent 299a819 commit 58f5a70
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 267 deletions.
59 changes: 0 additions & 59 deletions crates/rover-client/.eslintrc.json

This file was deleted.

66 changes: 66 additions & 0 deletions crates/rover-client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import * as graphqlESLint from '@graphql-eslint/eslint-plugin';
// This is brought in to fix an incompatability between ESLint 9 and
// the GraphQL plugin: https://github.com/dimaMachina/graphql-eslint/issues/2311
import {fixupPluginRules} from '@eslint/compat'

export default [
{
files: ["**/*.graphql"],
ignores: ["**/*/schema.graphql"],
plugins: {
'@graphql-eslint':fixupPluginRules(graphqlESLint),
},
languageOptions: {
parser: graphqlESLint,
parserOptions:{
schema: "./.schema/schema.graphql",
operations: ["./src/operations/**/*.graphql"]
}
},
rules: {
"@graphql-eslint/no-duplicate-fields": 2,
"@graphql-eslint/no-typename-prefix": 2,
"@graphql-eslint/description-style": 2,
"@graphql-eslint/executable-definitions": 2,
"@graphql-eslint/fields-on-correct-type": 2,
"@graphql-eslint/fragments-on-composite-type": 2,
"@graphql-eslint/input-name": 2,
"@graphql-eslint/known-argument-names": 2,
"@graphql-eslint/known-directives": 2,
"@graphql-eslint/known-fragment-names": 2,
"@graphql-eslint/known-type-names": 2,
"@graphql-eslint/lone-anonymous-operation": 2,
"@graphql-eslint/no-anonymous-operations": 2,
"@graphql-eslint/no-case-insensitive-enum-values-duplicates": 2,
"@graphql-eslint/no-deprecated": 2,
"@graphql-eslint/no-fragment-cycles": 2,
"@graphql-eslint/no-hashtag-description": 2,
"@graphql-eslint/no-undefined-variables": 2,
"@graphql-eslint/no-unused-fields": 2,
"@graphql-eslint/no-unused-fragments": 2,
"@graphql-eslint/no-unused-variables": 2,
"@graphql-eslint/one-field-subscriptions": 2,
"@graphql-eslint/overlapping-fields-can-be-merged": 2,
"@graphql-eslint/possible-fragment-spread": 2,
"@graphql-eslint/possible-type-extension": 2,
"@graphql-eslint/provided-required-arguments": 2,
"@graphql-eslint/require-deprecation-reason": 2,
"@graphql-eslint/scalar-leafs": 2,
"@graphql-eslint/strict-id-in-types": 2,
"@graphql-eslint/unique-argument-names": 2,
"@graphql-eslint/unique-directive-names": 2,
"@graphql-eslint/unique-directive-names-per-location": 2,
"@graphql-eslint/unique-enum-value-names": 2,
"@graphql-eslint/unique-field-definition-names": 2,
"@graphql-eslint/unique-fragment-name": 2,
"@graphql-eslint/unique-input-field-names": 2,
"@graphql-eslint/unique-operation-name": 2,
"@graphql-eslint/unique-operation-types": 2,
"@graphql-eslint/unique-type-names": 2,
"@graphql-eslint/unique-variable-names": 2,
"@graphql-eslint/value-literals-of-correct-type": 2,
"@graphql-eslint/variables-are-input-types": 2,
"@graphql-eslint/variables-in-allowed-position": 2
}
}
]
Loading

0 comments on commit 58f5a70

Please sign in to comment.