Eslint report error accident how to use continue to change, is it possible to remove continue directly?

     if (typeof (hightlight[item]) === "function") continue;
              if (hightlightStr.length >= 100) break;
              hightlightStr += hightlight[item];
              hightlightStr += "...";
            }
Apr.15,2021

I didn't expect this translator to almost laugh me to death.

answer your question.

there are two possibilities for you to report an error:

  1. you used it where you can't use continue and break, and the syntax is wrong. Are you not using it in the loop? )
  2. eslintrc explicitly forbids continue. You can turn off this check or do not use continue details: https://eslint.org/docs/rules.
Menu