From 9a4c066e999cbee2ee24a74d75020d4a080578a2 Mon Sep 17 00:00:00 2001 From: Geoff Whatley Date: Wed, 24 Apr 2024 14:01:10 +1000 Subject: [PATCH] chore: add graphql schema formatting to lint-staged --- lint-staged.config.js | 1 + schema.graphql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lint-staged.config.js b/lint-staged.config.js index 732daf5..6635eb4 100755 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -8,4 +8,5 @@ export default { (files) => `yarn nx affected:lint --files=${files.join(',')}`, (files) => `yarn nx format:write --files=${files.join(',')}`, ], + 'projects/**/*.graphql': ['yarn nx format:write'], }; diff --git a/schema.graphql b/schema.graphql index b47a11c..11fede5 100644 --- a/schema.graphql +++ b/schema.graphql @@ -1,3 +1,3 @@ type Query { hello(name: String): String! -} \ No newline at end of file +}