mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
New rule to stop floating promises (#7165)
* Rules surrounding promises
This commit is contained in:
@@ -12,7 +12,18 @@
|
||||
],
|
||||
"argIndex": 1
|
||||
}
|
||||
]
|
||||
],
|
||||
"no-floating-promises":{
|
||||
"severity": "warn"
|
||||
},
|
||||
"await-promise": {
|
||||
"severity": "warn",
|
||||
"options": ["Thenable"]
|
||||
},
|
||||
"no-promise-as-boolean": {
|
||||
"severity": "error",
|
||||
"options": ["Thenable"]
|
||||
}
|
||||
},
|
||||
"linterOptions": {
|
||||
"exclude": ["src/vs/**/*.ts"]
|
||||
|
||||
Reference in New Issue
Block a user