Skip to content

Commit 5969885

Browse files
Dimitri POSTOLOVrenovate-bot
andauthored
fix patch for eslint-plugin-eslint-plugin v4 (#706)
Co-authored-by: Renovate Bot <[email protected]>
1 parent ce3c70f commit 5969885

19 files changed

+60
-61
lines changed

.eslintrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module.exports = {
3131
files: ['**/rules/*.ts'],
3232
extends: ['plugin:eslint-plugin/rules-recommended'],
3333
rules: {
34-
'eslint-plugin/no-deprecated-context-methods': 'error',
3534
'eslint-plugin/require-meta-docs-description': ['error', { pattern: '.+\\.$' }], // force to put a point at the end
3635
'eslint-plugin/require-meta-docs-url': [
3736
'error',
@@ -46,7 +45,6 @@ module.exports = {
4645
},
4746
extends: ['plugin:eslint-plugin/tests-recommended'],
4847
rules: {
49-
'eslint-plugin/no-only-tests': 'error',
5048
'eslint-plugin/test-case-shorthand-strings': 'error',
5149
},
5250
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint": "8.1.0",
3838
"eslint-config-prettier": "8.3.0",
3939
"eslint-config-standard": "16.0.3",
40-
"eslint-plugin-eslint-plugin": "3.6.1",
40+
"eslint-plugin-eslint-plugin": "4.0.1",
4141
"eslint-plugin-import": "2.25.2",
4242
"eslint-plugin-node": "11.1.0",
4343
"eslint-plugin-promise": "5.1.1",

packages/plugin/src/rules/avoid-duplicate-fields.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const rule: GraphQLESLintRule<[], false> = {
6969
messages: {
7070
[AVOID_DUPLICATE_FIELDS]: `{{ type }} "{{ fieldName }}" defined multiple times.`,
7171
},
72+
schema: [],
7273
},
7374
create(context) {
7475
return {

packages/plugin/src/rules/avoid-scalar-result-type-on-mutation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const rule: GraphQLESLintRule = {
3030
},
3131
],
3232
},
33+
schema: [],
3334
},
3435
create(context) {
3536
const schema = requireGraphQLSchemaFromContext('avoid-scalar-result-type-on-mutation', context);

packages/plugin/src/rules/avoid-typename-prefix.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const rule: GraphQLESLintRule = {
3939
messages: {
4040
[AVOID_TYPENAME_PREFIX]: `Field "{{ fieldName }}" starts with the name of the parent type "{{ typeName }}"`,
4141
},
42+
schema: [],
4243
},
4344
create(context) {
4445
return {

packages/plugin/src/rules/no-anonymous-operations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const rule: GraphQLESLintRule = {
3333
messages: {
3434
[NO_ANONYMOUS_OPERATIONS]: `Anonymous GraphQL operations are forbidden. Please make sure to name your {{ operation }}!`,
3535
},
36+
schema: [],
3637
},
3738
create(context) {
3839
return {

packages/plugin/src/rules/no-case-insensitive-enum-values-duplicates.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const rule: GraphQLESLintRule = {
3838
messages: {
3939
[ERROR_MESSAGE_ID]: `Case-insensitive enum values duplicates are not allowed! Found: "{{ found }}"`,
4040
},
41+
schema: [],
4142
},
4243
create(context) {
4344
return {

packages/plugin/src/rules/no-deprecated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const rule: GraphQLESLintRule<[], true> = {
7777
messages: {
7878
[NO_DEPRECATED]: `This {{ type }} is marked as deprecated in your GraphQL schema {{ reason }}`,
7979
},
80+
schema: [],
8081
},
8182
create(context) {
8283
return {

packages/plugin/src/rules/no-hashtag-description.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const rule: GraphQLESLintRule = {
5151
],
5252
},
5353
type: 'suggestion',
54+
schema: [],
5455
},
5556
create(context) {
5657
return {

packages/plugin/src/rules/no-operation-name-suffix.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const rule: GraphQLESLintRule = {
3535
messages: {
3636
[NO_OPERATION_NAME_SUFFIX]: `Unnecessary "{{ invalidSuffix }}" suffix in your operation name!`,
3737
},
38+
schema: [],
3839
},
3940
create(context) {
4041
return {

0 commit comments

Comments
 (0)