chore: add eslint rule to ignore default exports in test suite configs (#12655)

Adds eslint rule `no-restricted-exports` with value `off` for payload
config files inside our `test` suite since we have to export with
default from those
This commit is contained in:
Paul
2025-06-17 06:10:42 -07:00
committed by GitHub
parent d1826c647f
commit 9c5adba5c6
2 changed files with 6 additions and 2 deletions

View File

@@ -247,8 +247,6 @@ export const rootEslintConfig = [
payload: payloadPlugin,
},
rules: {
...baseRules,
...typescriptRules,
'no-restricted-exports': 'off',
},
files: ['*.config.ts', 'config.ts'],

View File

@@ -28,6 +28,12 @@ export const testEslintConfig = [
'perfectionist/sort-objects': 'off',
},
},
{
files: ['**/*.config.ts', '**/config.ts'],
rules: {
'no-restricted-exports': 'off',
},
},
{
files: ['**/*.int.spec.ts', '**/int.spec.ts'],
rules: {