Skip to content

Commit 254b74d

Browse files
authoredNov 20, 2024··
ignore default export for _meta.global.{ts,tsx} (#641)
1 parent b17ef78 commit 254b74d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
 

Diff for: ‎.changeset/warm-cooks-cheat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@theguild/eslint-config': patch
3+
---
4+
5+
ignore default export for `_meta.global.{ts,tsx}`

Diff for: ‎packages/eslint-config/src/react.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ module.exports = {
1313
'**/pages/**', // Next.js' `pages` directory use default export
1414
'**/app/**/{layout,page,not-found,manifest}.{ts,tsx}', // Next.js' `layout`/`page`/`not-found` components use default export
1515
'**/app/**/_meta.{ts,tsx}', // Nextra's `_meta` file uses default export
16+
'**/app/_meta.global.{ts,tsx}', // Nextra's `_meta.global` file uses default export
1617
'next.config.{js,mjs,ts}',
17-
'**/*.stories.tsx',
18+
'**/*.stories.{ts,tsx}',
1819
'.storybook/main.ts',
1920
'website/theme.config.tsx',
2021
'postcss.config.js',
@@ -31,5 +32,11 @@ module.exports = {
3132
node: true,
3233
},
3334
},
35+
{
36+
files: ['**/*.stories.{ts,tsx}'],
37+
rules: {
38+
'no-console': 'off',
39+
},
40+
},
3441
],
3542
};

0 commit comments

Comments
 (0)
Please sign in to comment.