Skip to content

Releases: dimaMachina/graphql-eslint

October 18, 2024

18 Oct 01:15
c9cbf6d
Compare
Choose a tag to compare
October 18, 2024 Pre-release
Pre-release

@graphql-eslint/[email protected]

Patch Changes

  • #2616
    c0f1b07
    Thanks @fcortes! - The import attribute syntax (with { type: "json"
    }) is still experimental so warnings showed up when using the library as it was being used to
    import the package.json file to extract the package version

    As an alternative, the current version will be injected on build time through tsup configuration.

October 09, 2024

09 Oct 15:22
f91cc56
Compare
Choose a tag to compare
October 09, 2024 Pre-release
Pre-release

@graphql-eslint/[email protected]

Patch Changes

August 09, 2024

09 Aug 18:52
15e8b23
Compare
Choose a tag to compare
August 09, 2024 Pre-release
Pre-release

@graphql-eslint/[email protected]

Patch Changes

August 03, 2024

03 Aug 12:06
426f237
Compare
Choose a tag to compare
August 03, 2024 Pre-release
Pre-release

@graphql-eslint/[email protected]

Patch Changes

  • #2466
    da608d7
    Thanks @dimaMachina! - fix require is not defined in flat
    configs for Vue/Svelte projects

  • #2468
    733a66e
    Thanks @dimaMachina! - - rename flat configs exports

    -graphql.flatConfigs['schema-recommended'].rules
    +graphql.configs['flat/schema-recommended']
    -graphql.flatConfigs['schema-relay'].rules
    +graphql.configs['flat/schema-relay']
    -graphql.flatConfigs['schema-all'].rules
    +graphql.configs['flat/schema-all']
    -graphql.flatConfigs['operations-recommended'].rules
    +graphql.configs['flat/operations-recommended']
    -graphql.flatConfigs['operations-all'].rules
    +graphql.configs['flat/operations-all']
    • fix with programmatic usage when passing large schema as string causes pattern too long error
    • fix loading ESM graphql.config.js configs

July 31, 2024

31 Jul 22:49
aa5df74
Compare
Choose a tag to compare
July 31, 2024 Pre-release
Pre-release

@graphql-eslint/[email protected]

Patch Changes

  • #2455
    08a8a13
    Thanks @dimaMachina! - fix caching issues for
    no-unreachable-types / no-unused-fields rules for multi projects

  • #2458
    9096458
    Thanks @dimaMachina! - add meta object with name and
    version to parser and processor to be compatible with ESLint 9

July 29, 2024

29 Jul 18:26
76aeed0
Compare
Choose a tag to compare
July 29, 2024 Pre-release
Pre-release

@graphql-eslint/[email protected]

Major Changes

August 29, 2023

29 Aug 17:53
d4c236f
Compare
Choose a tag to compare
August 29, 2023 Pre-release
Pre-release

@graphql-eslint/[email protected]

Major Changes

  • #1794
    4079167e
    Thanks @B2o5T! - - 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)

  • #1812
    bf475e88
    Thanks @B2o5T! - - 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
      {
        '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

  • #1795
    2f46a717
    Thanks @B2o5T! - - 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

  • #1793
    6593482b
    Thanks @B2o5T! - drop support of Node.js 12/14/16, GraphQL 14/15

  • #1792
    804f8b61
    Thanks @B2o5T! - 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

    import { RuleTester } from 'eslint'
    
    const ruleTester = new RuleTester({
      parser: require.resolve('@graphql-eslint/eslint-plugin')
    })

Patch Changes

July 13, 2023

13 Jul 07:23
ba9f4aa
Compare
Choose a tag to compare

@graphql-eslint/[email protected]

Patch Changes

  • #1750
    7b461a1
    Thanks @B2o5T! - ESLint configuration in ... is invalid. Unexpected
    top-level property "default". Fix targeting for legacy Node.js versions

July 04, 2023

04 Jul 10:39
99bdd63
Compare
Choose a tag to compare

@graphql-eslint/[email protected]

Minor Changes

  • #1729
    018b2da
    Thanks @B2o5T! - bundle with tsup to strip out development code, check
    with bob

July 02, 2023

02 Jul 10:10
964fb2f
Compare
Choose a tag to compare

@graphql-eslint/[email protected]

Patch Changes

  • #1725
    5f3f1a5
    Thanks @B2o5T! - fix
    Parsing error: Cannot read properties of undefined (reading '0') eslint in VSCode