mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-30 04:19:55 -05:00
.eslintrc: Complain about default exports
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
2cd96f955d
commit
64b88e8488
1 changed files with 5 additions and 2 deletions
|
@ -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']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue