iugo
V2EX  ›  问与答

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

  •  
  •   iugo · Feb 4, 2017 · 1888 views
    This topic created in 3559 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
    yangg
    Feb 4, 2017❤️1
    1
    没有,过时的是\这种换行的转义写法,所以才有这个规则。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5205 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:15 · PVG 08:15 · LAX 16:15 · JFK 19:15
    ♥ Do have faith in what you're doing.