mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 14:56:59 +08:00
chore: fix oxlint (#9086)
This commit is contained in:
@@ -18,7 +18,8 @@
|
|||||||
{
|
{
|
||||||
"ignoreTypes": true
|
"ignoreTypes": true
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"import/namespace": "off"
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const fs = require('fs');
|
const fs = require('node:fs');
|
||||||
const path = require('path');
|
const path = require('node:path');
|
||||||
|
|
||||||
const { Kind, print } = require('graphql');
|
const { Kind, print } = require('graphql');
|
||||||
const { upperFirst, lowerFirst } = require('lodash');
|
const { upperFirst, lowerFirst } = require('lodash');
|
||||||
@@ -138,7 +138,7 @@ module.exports = {
|
|||||||
if (schema.getType(type)?.name === 'Upload') return true;
|
if (schema.getType(type)?.name === 'Upload') return true;
|
||||||
const typeDef = schema.getType(type);
|
const typeDef = schema.getType(type);
|
||||||
const fields = typeDef.getFields?.();
|
const fields = typeDef.getFields?.();
|
||||||
if (!fields || !fields) return false;
|
if (!fields || !fields.length) return false;
|
||||||
for (let field of Object.values(fields)) {
|
for (let field of Object.values(fields)) {
|
||||||
let type = field.type;
|
let type = field.type;
|
||||||
while (type.ofType) {
|
while (type.ofType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user