Skip to content

Commit faee7bc

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 2f9fe71 commit faee7bc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ Object {
285285
exports[`Strict ESLint configuration 1`] = `
286286
Object {
287287
"rules": Object {
288+
"import/no-default-export": "error",
288289
"import/order": Array [
289290
"error",
290291
Object {

src/config/eslintrc-strict.js

Lines changed: 1 addition & 0 deletions
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)