日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無先后,達(dá)者為師

網(wǎng)站首頁 編程語言 正文

ESlint 報(bào)錯(cuò) ESlint: this line has a lines of 103.maximum allowed is100.(max-len)

作者:IS_LeQian 更新時(shí)間: 2022-02-28 編程語言
EPERM: operation not permitted
ESlint: this line has a lines of 103.maximum allowed is100.(max-len)

以上報(bào)錯(cuò)只要在 .eslinerc.js 文件中 rules 內(nèi) 添加 'max-len' : ["error", {code : 300}] 具體代碼 如下:

rules: {
    'import/extensions': 'off',
    'import/no-extraneous-dependencies': 'off',
    indent: 'off',
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-param-reassign': 'off',
    'template-curly-spacing': 'off',
    'max-len' : ["error", {code : 300}]  // 此處為具體添加代碼
  },

原文鏈接:https://blog.csdn.net/IS_huang/article/details/105711052

欄目分類
最近更新