mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:03:09 +02:00
improve lint
This commit is contained in:
parent
b9eaf906e7
commit
f6e7f389d6
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
|
parserOptions: {
|
||||||
|
tsconfigRootDir: __dirname,
|
||||||
|
project: ['./tsconfig.json'],
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
'@typescript-eslint',
|
'@typescript-eslint',
|
||||||
'import'
|
'import'
|
||||||
|
@ -51,6 +55,9 @@ module.exports = {
|
||||||
'@typescript-eslint/no-inferrable-types': ['warn'],
|
'@typescript-eslint/no-inferrable-types': ['warn'],
|
||||||
'@typescript-eslint/no-empty-function': ['off'],
|
'@typescript-eslint/no-empty-function': ['off'],
|
||||||
'@typescript-eslint/no-non-null-assertion': ['off'],
|
'@typescript-eslint/no-non-null-assertion': ['off'],
|
||||||
|
'@typescript-eslint/no-misused-promises': ['error', {
|
||||||
|
'checksVoidReturn': false,
|
||||||
|
}],
|
||||||
'import/no-unresolved': ['off'],
|
'import/no-unresolved': ['off'],
|
||||||
'import/no-default-export': ['warn'],
|
'import/no-default-export': ['warn'],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue