From 64b88e8488073f2a13ff0d5c9c7ada023ccc8bbe Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 12 Apr 2020 13:40:07 +0200 Subject: [PATCH] .eslintrc: Complain about default exports Signed-off-by: David Mehren --- .eslintrc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8a709ee82..33bb53507 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -13,7 +13,9 @@ module.exports = { 'eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', - 'plugin:@typescript-eslint/recommended-requiring-type-checking' + 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:import/recommended', + 'plugin:import/typescript' ], 'env': { 'node': true @@ -30,6 +32,7 @@ module.exports = { 'object-curly-spacing': ['warn'], 'one-var': ['warn'], 'quotes': ['warn'], - 'space-infix-ops': ['warn'] + 'space-infix-ops': ['warn'], + 'import/no-default-export': ['error'] } }