Skip to main content
Participant
Jan 12, 2021 7:59 AM UTC
Question

How to close some warinings of Javascript?

I do not want the "Missing semicolon" and the "Expected { and instead saw $." warning.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    Jan 12, 2021 7:33 PM UTC

    Disable Code Linting from your Preferences.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    Jan 12, 2021 3:27 PM UTC

    Where are you seeing the error exactly?
    Is the error warning accurate?
    What version of DW is this happening in?
    Could we see the code in question?
    Does the code validate?

    Translate
    Wang5E15Author
    Participant
    Jan 14, 2021 12:34 AM UTC

    My version of DW is CC 2018.

     

    The warning is below:

    I think it is fine to code wihtout semicolon in Javascript but the DW gives me warning.

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Jan 14, 2021 1:05 AM UTC

    Use JS code validation tools to ensure your code is actually free of syntax errors.

    http://beautifytools.com/javascript-validator.php

    If it's valid, ignore DW's code linting or disable it from Preferences. Your choice.

     

    I haven't used the legacy 2018 version for a few years.  2021 is the latest.

     

    Translate
    Nancy O'Shea— Product User & Community Expert