Skip to content

Commit

Permalink
chore: add graphql schema formatting to lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
meatwallace committed Apr 24, 2024
1 parent 6cce1ea commit 9a4c066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
};
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
type Query {
hello(name: String): String!
}
}

0 comments on commit 9a4c066

Please sign in to comment.