New rule to stop floating promises (#7165)

* Rules surrounding promises
This commit is contained in:
Amir Omidi
2019-09-11 14:25:21 -07:00
committed by GitHub
parent dd5dd12ee6
commit 83c9c3f618

View File

@@ -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"]