Skip to content

Commit 1fbee33

Browse files
committed
feat(config/eslint): dissallow default exports in strict configuration
BREAKING CHANGE: default exports are no longer allowed when using **@hover/javascript/eslint/strict**
1 parent 56756f9 commit 1fbee33

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ Object {
287287
exports[`Strict ESLint configuration 1`] = `
288288
Object {
289289
"rules": Object {
290+
"import/no-default-export": "error",
290291
"import/order": Array [
291292
"error",
292293
Object {

src/config/eslintrc-strict.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
rules: {
3+
'import/no-default-export': 'error',
34
'import/order': [
45
'error',
56
{

0 commit comments

Comments
 (0)