.eslintrc: Complain about default exports

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-12 13:40:07 +02:00
parent 2cd96f955d
commit 64b88e8488
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -13,7 +13,9 @@ module.exports = {
'eslint:recommended', 'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-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': { 'env': {
'node': true 'node': true
@ -30,6 +32,7 @@ module.exports = {
'object-curly-spacing': ['warn'], 'object-curly-spacing': ['warn'],
'one-var': ['warn'], 'one-var': ['warn'],
'quotes': ['warn'], 'quotes': ['warn'],
'space-infix-ops': ['warn'] 'space-infix-ops': ['warn'],
'import/no-default-export': ['error']
} }
} }