Upgrade to ESLint 9
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
// Not usable. https://github.com/dimaMachina/graphql-eslint/issues/2178
|
||||
import type { GraphQLRulesObject } from '@aet/eslint-define-config/src/rules/graphql-eslint';
|
||||
import * as graphql from '@graphql-eslint/eslint-plugin';
|
||||
|
||||
import { defineMiddleware } from '../middleware';
|
||||
import { defineConfig } from '../types';
|
||||
|
||||
// https://the-guild.dev/graphql/eslint/rules
|
||||
const graphqlRules: Partial<GraphQLRulesObject> = {};
|
||||
|
||||
export const graphql = defineMiddleware((config, { addRules }) => {
|
||||
config.plugins.push('@graphql-eslint');
|
||||
config.extends.push('plugin:@graphql-eslint/recommended');
|
||||
addRules(graphqlRules);
|
||||
export default defineConfig({
|
||||
processor: graphql.processors.graphql,
|
||||
rules: graphqlRules,
|
||||
});
|
||||
|
Reference in New Issue
Block a user