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