zoukankan      html  css  js  c++  java
  • eslint语法检测报错解决办法

    eslint语法报错解决办法

    检查语法格式使得其规范化是好事,可是这个检查也太非人类了一 一

    错误如下:

    F:vue-sourcemocktest2srcmockindex.js
       1:1   error  Expected space or tab after '//' in comment    spaced-comment
       4:1   error  Expected space or tab after '//' in comment    spaced-comment
       5:27  error  A space is required after ','                  comma-spacing
       5:33  error  A space is required after ','                  comma-spacing
       6:1   error  Expected indentation of 2 spaces but found 4   indent
       7:1   error  Expected indentation of 2 spaces but found 4   indent
       8:1   error  Expected indentation of 2 spaces but found 4   indent
       9:1   error  Expected indentation of 4 spaces but found 8   indent
      10:1   error  Expected indentation of 4 spaces but found 8   indent
      11:1   error  Expected indentation of 4 spaces but found 8   indent
      12:1   error  Expected indentation of 4 spaces but found 8   indent
      13:1   error  Expected indentation of 2 spaces but found 4   indent
      14:3   error  Newline required at end of file but not found  eol-last
    

    解决办法:

    在vue工程根目录使用vue.config.js文件直接关闭eslint一 一

    vue.config.js

    module.exports = {
        lintOnSave: false
    }
    

    1589534557796

    下次直接不用了XDD暴躁!!

  • 相关阅读:
    【HIDS】关于HIDS的一些看法
    图片在容器内水平垂直居中显示
    C++ 实现Cholesky分解
    Minikube 安装和简单使用
    关于.net的一些记录
    C#将窗体Form嵌入主窗体Panel中的一些问题
    Pod持久化
    Maven打包包含jar包
    Adam
    [漏洞]DNS Server Spoofed Request Amplification DDoS
  • 原文地址:https://www.cnblogs.com/lightice/p/12896130.html
Copyright © 2011-2022 走看看