From e9b872ccf8759625949bc5e811c16bf86dd036e5 Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Thu, 25 Apr 2024 14:17:16 -0500 Subject: [PATCH] Speed up eslint by ignoring generated files by extension eslint no longer has to read the generated files only to see the eslint-disable directive at the top and ignore them. --- .eslintignore | 3 ++- codegen.yml | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.eslintignore b/.eslintignore index b6a5aa342..863c8058e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,7 +4,8 @@ node_modules .now public dist +*.generated.ts # Storybook cache /node_modules/.cache -/storybook-static \ No newline at end of file +/storybook-static diff --git a/codegen.yml b/codegen.yml index e6a8db5b6..d3dc9bd9e 100644 --- a/codegen.yml +++ b/codegen.yml @@ -4,8 +4,6 @@ generates: - ${API_URL:https://api.stage.mpdx.org/graphql} - ./pages/api/Schema/**/*.graphql plugins: - - add: - content: '/* eslint-disable */' - typescript config: scalars: @@ -20,8 +18,6 @@ generates: presetConfig: baseTypesPath: src/graphql/types.generated.ts plugins: - - add: - content: '/* eslint-disable */' - typescript-operations - typescript-react-apollo config: @@ -43,8 +39,6 @@ generates: - ${API_URL:https://api.stage.mpdx.org/graphql} - ./pages/api/Schema/**/*.graphql plugins: - - add: - content: '/* eslint-disable */' - typescript - typescript-resolvers config: