推荐关注
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 · 4109 views
    This topic created in 3306 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
        1
    yangg  
       May 23, 2017   ❤️ 1
    // eslint-disable-next-line
    otakustay
        2
    otakustay  
       May 23, 2017
    该长的时候就长, 临时 disable 掉规则
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5273 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 07:40 · PVG 15:40 · LAX 00:40 · JFK 03:40
    ♥ Do have faith in what you're doing.