@graphql-eslint/eslint-plugin 3.8.0-alpha-fb12b01.0 → 3.8.0-alpha-8ddf2a4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rules/index.d.ts CHANGED
@@ -1,11 +1,5 @@
1
1
  export declare const rules: {
2
- alphabetize: import("..").GraphQLESLintRule<[{
3
- fields?: ("ObjectTypeDefinition" | "InterfaceTypeDefinition" | "InputObjectTypeDefinition")[];
4
- values?: ["EnumTypeDefinition"];
5
- selections?: ("OperationDefinition" | "FragmentDefinition")[];
6
- variables?: ["OperationDefinition"];
7
- arguments?: ("Field" | "Directive" | "FieldDefinition" | "DirectiveDefinition")[];
8
- }], false>;
2
+ alphabetize: import("..").GraphQLESLintRule<[import("./alphabetize").AlphabetizeConfig], false>;
9
3
  'description-style': import("..").GraphQLESLintRule<[{
10
4
  style: "block" | "inline";
11
5
  }], false>;
package/testkit.d.ts CHANGED
@@ -6,7 +6,6 @@ export declare type GraphQLESLintRuleListener<WithTypeInfo extends boolean = fal
6
6
  [K in keyof ASTKindToNode]?: (node: GraphQLESTreeNode<ASTKindToNode[K], WithTypeInfo>) => void;
7
7
  } & Record<string, any>;
8
8
  export declare type GraphQLValidTestCase<Options> = Omit<RuleTester.ValidTestCase, 'options' | 'parserOptions'> & {
9
- name?: string;
10
9
  options?: Options;
11
10
  parserOptions?: ParserOptions;
12
11
  };
package/utils.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { GraphQLSchema, Source, Kind } from 'graphql';
2
- import { AST } from 'eslint';
1
+ import { GraphQLSchema, Kind } from 'graphql';
2
+ import type { AST } from 'eslint';
3
3
  import { Source as LoaderSource } from '@graphql-tools/utils';
4
4
  import { GraphQLESLintRuleContext } from './types';
5
5
  import { SiblingOperations } from './sibling-operations';
6
- import { UsedFields, ReachableTypes } from './graphql-ast';
6
+ import { ReachableTypes, UsedFields } from './graphql-ast';
7
7
  export declare function requireSiblingsOperations(ruleName: string, context: GraphQLESLintRuleContext): SiblingOperations | never;
8
8
  export declare function requireGraphQLSchemaFromContext(ruleName: string, context: GraphQLESLintRuleContext): GraphQLSchema | never;
9
9
  export declare const logger: {
@@ -12,7 +12,6 @@ export declare const logger: {
12
12
  };
13
13
  export declare function requireReachableTypesFromContext(ruleName: string, context: GraphQLESLintRuleContext): ReachableTypes | never;
14
14
  export declare function requireUsedFieldsFromContext(ruleName: string, context: GraphQLESLintRuleContext): UsedFields | never;
15
- export declare function extractTokens(source: Source): AST.Token[];
16
15
  export declare const normalizePath: (path: string) => string;
17
16
  /**
18
17
  * https://github.com/prettier/eslint-plugin-prettier/blob/76bd45ece6d56eb52f75db6b4a1efdd2efb56392/eslint-plugin-prettier.js#L71
@@ -27,7 +26,4 @@ export declare const TYPES_KINDS: readonly [Kind.OBJECT_TYPE_DEFINITION, Kind.IN
27
26
  export declare type CaseStyle = 'camelCase' | 'PascalCase' | 'snake_case' | 'UPPER_CASE' | 'kebab-case';
28
27
  export declare const camelCase: (str: string) => string;
29
28
  export declare const convertCase: (style: CaseStyle, str: string) => string;
30
- export declare function getLocation(loc: Partial<AST.SourceLocation>, fieldName?: string, offset?: {
31
- offsetStart?: number;
32
- offsetEnd?: number;
33
- }): AST.SourceLocation;
29
+ export declare function getLocation(loc: Partial<AST.SourceLocation>, fieldName?: string): AST.SourceLocation;