Bring better coding style for samples folder.
<iframe>For clean up, I also suggest we should have consistency coding styles. At least samples for now:
const/let over var' for strings and backtick for string composition and complicated concatenationtype="text/javascript" for <script> and type="text/css" for <style>/<link>~font-family should be single-quoted, font-family: 'Segoe UI'; over font-family: Segoe UI;{ abc: 123, def: 456 }, over { def: 456, abc: 123 }And RFC for these coding styles:
: and = verticallydirectLine: {
domain: params['domain'],
secret: params['s'],
token: params['t'],
webSocket: params['webSocket'] && params['webSocket'] === 'true'
}
Should become
directLine: {
domain : params['domain'],
secret : params['s'],
token : params['t'],
webSocket: params['webSocket'] && params['webSocket'] === 'true'
}
This is cool William! Can I propose a feature? I think it would be easy for everyone if we use VSCode's "autoformat" feature. This way we let the tool do the work to deliver consistency. There is a keyboard shortcut: ALT+SHIFT+F as well as a menu command.
Sure, will try adding VSCode workspace settings for indentation styles et al. We need VSCode extension for vertical colon alignments.
I'm partial to just going with VSCode's generic formatting, unless it looks really broken which can happen in some cases. I'd like to avoid the need for extra plugins.
I don't understand what this means:
Implicitly add type="text/javascript" for
Most helpful comment
I'm partial to just going with VSCode's generic formatting, unless it looks really broken which can happen in some cases. I'd like to avoid the need for extra plugins.