search

Home  >  Q&A  >  body text

javascript - console.log problem in eslint

The vue project uses eslint to standardize the code, but console.log() is not allowed to be used in eslint.
Is there any good alternative on the client side?

天蓬老师天蓬老师2770 days ago706

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-26 10:55:31

    Add this to the eslint rules, and the console will not report errors

    "rules": {
        "no-console": "off",
    }

    reply
    0
  • Cancelreply