Skip to content

Commit 5e2c409

Browse files
committed
feat(config/eslint): allow default exports in declaration, mocks, configuration
1 parent 9a3be51 commit 5e2c409

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/config/__tests__/__snapshots__/eslintrc.js.snap

+12
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,18 @@ Object {
288288
289289
exports[`Strict ESLint configuration 1`] = `
290290
Object {
291+
"overrides": Array [
292+
Object {
293+
"files": Array [
294+
"**/*.d.ts",
295+
"**/__mocks__/**/*",
296+
"**/*.config.{js,cjs,ts,mjs}",
297+
],
298+
"rules": Object {
299+
"import/no-default-export": "off",
300+
},
301+
},
302+
],
291303
"rules": Object {
292304
"import/no-default-export": "error",
293305
"import/order": Array [

src/config/eslintrc-strict.js

+8
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@ module.exports = {
1616
],
1717
'sort-imports': ['error', {ignoreDeclarationSort: true}],
1818
},
19+
overrides: [
20+
{
21+
files: ['**/*.d.ts', '**/__mocks__/**/*', '**/*.config.{js,cjs,ts,mjs}'],
22+
rules: {
23+
'import/no-default-export': 'off',
24+
},
25+
},
26+
],
1927
}

0 commit comments

Comments
 (0)