Energinet-DataHub / greenforce-frontend

GreenForce monorepo for the DataHub and Energy Origin frontends. Part of Energinet DataHub.
Apache License 2.0
72 stars 13 forks source link

feat(dh): graphql eslint #3498

Closed ManBearTM closed 1 week ago

ManBearTM commented 1 week ago

This PR adds linting rules for .graphql files (both operations AND schema, each with separate config), hopefully preventing some obscure bugs (such as the one outlined in https://github.com/Energinet-DataHub/greenforce-frontend/pull/3494).

I have turned off some of the rules for now, since the PR would be way too big if I had to fix all the linting errors at once (yeah there are a few πŸ˜„). I plan to follow up with smaller PR's where I fix each lint error one at a time and then a final PR where I turn the rule(s) on.

nx-cloud[bot] commented 1 week ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 3fc9c6674631f409ffb414b0201d0c08e3794bb5. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

πŸ“‚ See all runs for this CI Pipeline Execution


βœ… Successfully ran 3 targets - [`nx run api-dh:build-client`](https://cloud.nx.app/runs/k8jcSipMv2?utm_source=pull-request&utm_medium=comment) - [`nx run watt:build-storybook`](https://cloud.nx.app/runs/XtUdkBwLVK?utm_source=pull-request&utm_medium=comment) - [`nx build app-dh`](https://cloud.nx.app/runs/UsZhpxlaFr?utm_source=pull-request&utm_medium=comment)

Sent with πŸ’Œ from NxCloud.

github-actions[bot] commented 1 week ago

Test results for \apps\dh\api-dh\source\DataHub.WebApi.Tests\bin\Release\net8.0\Energinet.DataHub.WebApi.Tests.dll

1 tests   1 :white_check_mark:  2m 43s :stopwatch: 1 suites  0 :zzz: 1 files    0 :x:

Results for commit 08c03634.

:recycle: This comment has been updated with latest results.