Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
feat(nuxt): add eslint rule to disable prefer-global/process rule and…
Browse files Browse the repository at this point in the history
… update GraphQL resolvers
  • Loading branch information
productdevbook committed Feb 20, 2024
1 parent 2201570 commit df070e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nuxt/src/runtime/modules/eslint/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export function pergelEslintConfig(input?: {
],
...input?.pergel ?? {},
},
{
rules: {
'node/prefer-global/process': 'off',
},
},
]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ async function typescriptResolvers(
JSONObject: JSONResolver.extensions.codegenScalarType as any,
NonEmptyString: NonEmptyStringResolver.extensions.codegenScalarType as any,
Currency: CurrencyResolver.extensions.codegenScalarType as any,
File: {
input: 'File',
output: 'File',
},
Cursor: {
input: 'string',
output: 'string',
},
},
enumsAsTypes: true,
useTypeImports: true,
Expand Down

0 comments on commit df070e4

Please sign in to comment.