Skip to content

Commit

Permalink
chore: fix oxlint (#9086)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Dec 10, 2024
1 parent 35edf38 commit 9780ab6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion oxlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
{
"ignoreTypes": true
}
]
],
"import/namespace": "off"
},
"overrides": [
{
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/graphql/export-gql-plugin.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
const path = require('path');
const fs = require('node:fs');
const path = require('node:path');

const { Kind, print } = require('graphql');
const { upperFirst, lowerFirst } = require('lodash');
Expand Down Expand Up @@ -138,7 +138,7 @@ module.exports = {
if (schema.getType(type)?.name === 'Upload') return true;
const typeDef = schema.getType(type);
const fields = typeDef.getFields?.();
if (!fields || !fields) return false;
if (!fields || !fields.length) return false;
for (let field of Object.values(fields)) {
let type = field.type;
while (type.ofType) {
Expand Down

0 comments on commit 9780ab6

Please sign in to comment.