sisoe24 / Nuke-Tools

Require template literals instead of string concatenation JS-0246
Anti-pattern
Minor
5 months ago5 months old
Unexpected string concatenation
249            "lookup",
250            function (error: Error | null, address: string, family: string, host: string) {
251                logDebugNetwork(
252                    "Socket Lookup :: " +253                        JSON.stringify({ address, family, host, error }, null, " ")254                );
255
256                if (error) {
Unexpected string concatenation
18    const previousVersion = context.globalState.get<string>(extVersion) as string;
19
20    // get the value stored inside the global key: _value['extension.updateMsg']
21    const extUpdateMsg = extensionId + ".updateMsg";22    const previousMsg = context.globalState.get<string>(extUpdateMsg) as string;
23
24    // get the package.json version
Unexpected string concatenation
14    const extensionId = context.extension.id;
15
16    // get the value stored inside the global state key: _value['extension.version']
17    const extVersion = extensionId + ".version";18    const previousVersion = context.globalState.get<string>(extVersion) as string;
19
20    // get the value stored inside the global key: _value['extension.updateMsg']
Unexpected string concatenation
 66    placeholders.__projectSlug__ = slug(placeholders.__projectName__);
 67    placeholders.__authorSlug__ = slug(placeholders.__author__);
 68    placeholders.__githubUser__ = getGithubUser();
 69    placeholders.__email__ = placeholders.__author__ + "@email.com"; 70
 71    return placeholders;
 72}