iugo
V2EX  ›  问与答

no-multi-str 这条 ESLint 规则过时吗?

  •  
  •   iugo · Feb 4, 2017 · 1642 views
    This topic created in 3429 days ago, the information mentioned may be changed or developed.
    http://eslint.org/docs/rules/no-multi-str

    虽说可以通过 ES6 模板字符串来跳过这条规则. 但如果多行字符串不包含变量, 我还是想用普通单引号.
    1 replies    2017-02-04 15:16:06 +08:00
    yangg
        1
    yangg  
       Feb 4, 2017   ❤️ 1
    没有,过时的是\这种换行的转义写法,所以才有这个规则。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4907 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:41 · PVG 17:41 · LAX 02:41 · JFK 05:41
    ♥ Do have faith in what you're doing.