Skip to content

Commit

Permalink
Speed up eslint by ignoring generated files by extension
Browse files Browse the repository at this point in the history
eslint no longer has to read the generated files only to see the
eslint-disable directive at the top and ignore them.
  • Loading branch information
canac committed May 1, 2024
1 parent 0427810 commit e9b872c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ node_modules
.now
public
dist
*.generated.ts

# Storybook cache
/node_modules/.cache
/storybook-static
/storybook-static
6 changes: 0 additions & 6 deletions codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -20,8 +18,6 @@ generates:
presetConfig:
baseTypesPath: src/graphql/types.generated.ts
plugins:
- add:
content: '/* eslint-disable */'
- typescript-operations
- typescript-react-apollo
config:
Expand All @@ -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:
Expand Down

0 comments on commit e9b872c

Please sign in to comment.