Skip to content

Commit

Permalink
feat(config/eslint): allow default exports in declaration, mocks, con…
Browse files Browse the repository at this point in the history
…figuration
  • Loading branch information
jrolfs committed Feb 28, 2023
1 parent 9a3be51 commit 5e2c409
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/config/__tests__/__snapshots__/eslintrc.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,18 @@ Object {
exports[`Strict ESLint configuration 1`] = `
Object {
"overrides": Array [
Object {
"files": Array [
"**/*.d.ts",
"**/__mocks__/**/*",
"**/*.config.{js,cjs,ts,mjs}",
],
"rules": Object {
"import/no-default-export": "off",
},
},
],
"rules": Object {
"import/no-default-export": "error",
"import/order": Array [
Expand Down
8 changes: 8 additions & 0 deletions src/config/eslintrc-strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ module.exports = {
],
'sort-imports': ['error', {ignoreDeclarationSort: true}],
},
overrides: [
{
files: ['**/*.d.ts', '**/__mocks__/**/*', '**/*.config.{js,cjs,ts,mjs}'],
rules: {
'import/no-default-export': 'off',
},
},
],
}

0 comments on commit 5e2c409

Please sign in to comment.