Skip to content

Commit

Permalink
fix(next-config): ajustes e adicionado regra para default export next
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefelipeschulle committed Jun 27, 2024
1 parent 39112ad commit 8b2f23f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brainylab/eslint-config",
"version": "2.5.1",
"version": "2.5.2",
"description": "ESLint config for BrainyLab projects",
"keywords": [
"eslint",
Expand Down
13 changes: 13 additions & 0 deletions src/presets/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,17 @@ export const next = [
'@next/next/no-html-link-for-pages': 'off',
},
},
{
name: 'no default exports exceptions',
files: [
'src/app/**/{page,layout,template}.tsx',
'*.config.{ts,js}',
'**/*.config.{ts,js}',
'*.d.ts',
'**/*.d.ts',
],
rules: {
'no-restricted-syntax': ['off', { selector: 'ExportDefaultDeclaration' }],
},
},
];

0 comments on commit 8b2f23f

Please sign in to comment.