推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
iugo

max-len, prefer-template (ESLint 规则)遇到长字符串的时候怎么办?

  •  
  •   iugo · May 23, 2017 · 4474 views
    This topic created in 3472 days ago, the information mentioned may be changed or developed.
    目前将 max-len 设为 error 而将 prefer-template 设为 warn 了. 在遇到长字符串的时候, 拆分然后加号.

    求更优解, 谢谢.
    2 replies  •  2017-05-23 17:11:06 +08:00
    yangg
    yangg
    May 23, 2017❤️1
    1
    // eslint-disable-next-line
    otakustay
    otakustay
    May 23, 2017
    2
    该长的时候就长, 临时 disable 掉规则
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2586 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:38 · PVG 12:38 · LAX 20:38 · JFK 23:38
    ♥ Do have faith in what you're doing.