Skip to content

Commit 51f9b04

Browse files
committed
[eslint config] [base] [breaking] enable import rules: newline-after-import, prefer-default-export
1 parent ee2cb41 commit 51f9b04

File tree

1 file changed

+3
-5
lines changed
  • packages/eslint-config-airbnb-base/rules

1 file changed

+3
-5
lines changed

packages/eslint-config-airbnb-base/rules/imports.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,10 @@ module.exports = {
108108

109109
// Require a newline after the last import/require in a group
110110
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
111-
// TODO: enable
112-
'import/newline-after-import': 0,
111+
'import/newline-after-import': 2,
113112

114113
// Require modules with a single export to use a default export
115114
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
116-
// TODO: enable
117-
'import/prefer-default-export': 0
118-
}
115+
'import/prefer-default-export': 2,
116+
},
119117
};

0 commit comments

Comments
 (0)