-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isLegacyProjectConfig has logical error. #1416
Comments
Where did you see it? graphql-config/src/helpers/utils.ts Lines 11 to 16 in 423de0e
|
The code piece is in "src/project-config.ts". The logic flaw is when some config file has provided So, if you provide a config with I don't kown why this condition is needed? Can you judge it as simple as " if (config.schemaPath !== undefined) "? |
So the problem is not with graphql-config but with graphql-eslint? |
Issue workflow progress
Progress of the issue based on the Contributor Workflow
The logic to decide whether a config is legacy has error.
To Reproduce
Steps to reproduce the behavior:
Correctly get new configuration.
Environment:
In this code, when project configuration has "include" or "exclude" keywords, is LegacyProjectConfig will return true. This is weird.
The text was updated successfully, but these errors were encountered: