Add GraphQL ESLint rules in subgraph package #3218
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue tracking
This issue originated from a TODO comment in the subgraph package's .eslintrc file that needed to be addressed to improve code quality. No specific tracking issue was attached.
Context behind the change
This PR adds specific ESLint rules for GraphQL files in the TypeScript subgraph package:
These rules will improve code quality and consistency in GraphQL schemas and queries, helping to maintain a standardized codebase and reducing potential errors during development.
How has this been tested?
Testing was performed by:
This change doesn't affect runtime behavior and has no performance implications.
Release plan
This change is contained within the linting configuration and requires no special deployment steps.
Developers should be informed about the new GraphQL linting rules to ensure compliance in future code changes. A brief message in the team chat would be sufficient.
Potential risks; What to monitor; Rollback plan
What to monitor:
Rollback plan:
If issues arise, we can: