Skip to content

Commit

Permalink
feat(next): add support for codegen.ts (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
prescottprue authored Nov 14, 2023
1 parent 7fdb4bb commit 40c4689
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/eslint-config-next/rules/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
{
files: [
'scripts/**',
'codegen.ts',
'next.config.mjs',
'next.config.js',
'**/*.stories.tsx',
Expand All @@ -12,5 +13,14 @@ module.exports = {
'import/no-extraneous-dependencies': 0,
},
},
{
files: ['codegen.ts'],
rules: {
// Codegen expects default export
'import/no-default-export': 0,
// Codegen loads the module through codegen-cli
'import/no-unused-modules': 0,
},
},
],
};

0 comments on commit 40c4689

Please sign in to comment.