-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2bf2868
commit 1c2d220
Showing
294 changed files
with
4,162 additions
and
5,311 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
.changeset/@graphql-eslint_eslint-plugin-1792-dependencies.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@graphql-eslint/eslint-plugin': patch | ||
--- | ||
|
||
dependencies updates: | ||
|
||
- Removed dependency | ||
[`@babel/code-frame@^7.18.6` ↗︎](https://www.npmjs.com/package/@babel/code-frame/v/7.18.6) (from | ||
`dependencies`) |
10 changes: 10 additions & 0 deletions
10
.changeset/@graphql-eslint_eslint-plugin-1813-dependencies.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
"@graphql-eslint/eslint-plugin": patch | ||
--- | ||
dependencies updates: | ||
- Updated dependency [`graphql-config@^4.5.0` ↗︎](https://www.npmjs.com/package/graphql-config/v/4.5.0) (from `^4.4.0`, in `dependencies`) | ||
- Removed dependency [`@babel/code-frame@^7.18.6` ↗︎](https://www.npmjs.com/package/@babel/code-frame/v/7.18.6) (from `dependencies`) | ||
- Removed dependency [`chalk@^4.1.2` ↗︎](https://www.npmjs.com/package/chalk/v/4.1.2) (from `dependencies`) | ||
- Removed dependency [`tslib@^2.4.1` ↗︎](https://www.npmjs.com/package/tslib/v/2.4.1) (from `dependencies`) | ||
- Updated dependency [`graphql@^16` ↗︎](https://www.npmjs.com/package/graphql/v/16.0.0) (from `^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0`, in `peerDependencies`) | ||
- Added dependency [`eslint@>=8.44.0` ↗︎](https://www.npmjs.com/package/eslint/v/8.44.0) (to `peerDependencies`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@graphql-eslint/eslint-plugin': major | ||
--- | ||
|
||
- bring back `possible-type-extension` rule to `schema-recommended` config | ||
|
||
- add `unique-operation-name` and `unique-fragment-name` rules to `operations-recommended` config | ||
|
||
The concept of sibling operations provided by graphql-config's `documents` fields is based on | ||
uniquely named operations and fragments, for omitting false-positive/negative cases when operations | ||
and fragments are located in separate files. For this reason, these rules must be included in the | ||
recommended config | ||
|
||
- rename `relay` config to `schema-relay` | ||
|
||
> To avoid confusing when users extend this config for executable definitions (operations and | ||
> fragments) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
'@graphql-eslint/eslint-plugin': major | ||
--- | ||
|
||
- `alphabetize` rule changes | ||
|
||
- add `definitions: true` option for `schema-all`/`operations-all` configs | ||
- rename `values: ['EnumTypeDefinition']` to `values: true` | ||
- rename `variables: ['OperationDefinition']` to `variables: true` | ||
- add `groups: ['id', '*', 'createdAt', 'updatedAt']` for `schema-all`/`operations-all` configs | ||
|
||
- `require-id-when-available` rule changes | ||
|
||
- rename rule to `require-selections` | ||
|
||
- update `schema-all`/`operations-all` configs | ||
|
||
- `require-description` rule changes | ||
|
||
- add `rootField: true` option for `schema-recommended` config | ||
|
||
- require `eslint` at least `>=8.44.0` as peerDependency | ||
|
||
- `naming-convention` | ||
|
||
- add new options for `schema-recommended` config | ||
|
||
```json5 | ||
{ | ||
'EnumTypeDefinition,EnumTypeExtension': { | ||
forbiddenPrefixes: ['Enum'], | ||
forbiddenSuffixes: ['Enum'] | ||
}, | ||
'InterfaceTypeDefinition,InterfaceTypeExtension': { | ||
forbiddenPrefixes: ['Interface'], | ||
forbiddenSuffixes: ['Interface'] | ||
}, | ||
'UnionTypeDefinition,UnionTypeExtension': { | ||
forbiddenPrefixes: ['Union'], | ||
forbiddenSuffixes: ['Union'] | ||
}, | ||
'ObjectTypeDefinition,ObjectTypeExtension': { | ||
forbiddenPrefixes: ['Type'], | ||
forbiddenSuffixes: ['Type'] | ||
} | ||
} | ||
``` | ||
|
||
- remove graphql-js' `unique-enum-value-names` rule | ||
|
||
- rename `no-case-insensitive-enum-values-duplicates` to `unique-enum-value-names` | ||
|
||
> Since this rule reports case-insensitive enum values duplicates too | ||
- `require-nullable-result-in-root` rule changes | ||
|
||
Do not check subscriptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
'@graphql-eslint/eslint-plugin': major | ||
--- | ||
|
||
- remove `parserOptions.schema` | ||
- remove `parserOptions.documents` | ||
- remove `parserOptions.extensions` | ||
- remove `parserOptions.include` | ||
- remove `parserOptions.exclude` | ||
- remove `parserOptions.projects` | ||
- remove `parserOptions.schemaOptions` | ||
- remove `parserOptions.graphQLParserOptions` | ||
- remove `parserOptions.skipGraphQLConfig` | ||
- remove `parserOptions.operations` | ||
|
||
- add `parserOptions.graphQLConfig?: IGraphQLConfig` for programmatic usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "alpha", | ||
"initialVersions": { | ||
"@graphql-eslint/example-code-file": "0.0.0", | ||
"@graphql-eslint/example-graphql-config": "0.0.0", | ||
"@graphql-eslint/example-monorepo": "0.0.0", | ||
"@graphql-eslint/example-multiple-projects-graphql-config": "0.0.0", | ||
"@graphql-eslint/example-prettier": "0.0.0", | ||
"@graphql-eslint/example-programmatic": "0.0.0", | ||
"@graphql-eslint/example-svelte-code-file": "0.0.0", | ||
"@graphql-eslint/example-vue-code-file": "0.0.0", | ||
"@graphql-eslint/eslint-plugin": "3.20.1", | ||
"@theguild/eslint-rule-tester": "0.0.0", | ||
"website": "0.0.0" | ||
}, | ||
"changesets": [ | ||
"@graphql-eslint_eslint-plugin-1792-dependencies", | ||
"dull-scissors-destroy", | ||
"few-mails-sparkle", | ||
"itchy-ads-compete", | ||
"rare-planes-love", | ||
"strong-needles-compare" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-eslint/eslint-plugin': major | ||
--- | ||
|
||
drop support of Node.js 12/14/16, GraphQL 14/15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@graphql-eslint/eslint-plugin': major | ||
--- | ||
|
||
Remove `GraphQLRuleTester` from bundle, to test your rules use regular `RuleTester` from eslint | ||
|
||
> **Note**: with this change unnecessary dependency `@babel/code-frame` was removed too | ||
```js | ||
import { RuleTester } from 'eslint' | ||
|
||
const ruleTester = new RuleTester({ | ||
parser: require.resolve('@graphql-eslint/eslint-plugin') | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
name: pr | ||
name: PR | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
branches: [master] | ||
|
||
jobs: | ||
dependencies: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
name: release | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
branches: [master] | ||
|
||
jobs: | ||
stable: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.