美文网首页
Eslint 跳坑

Eslint 跳坑

作者: glenlg | 来源:发表于2019-05-13 13:52 被阅读0次

    1.Expected linebreaks to be 'LF' but found 'CRLF'.eslint(linebreak-style)

    在vscode状态栏修改 行末结束符.

    1. Expected property shorthand.

    3.Expected 'this' to be used by class method .
    禁用规则.注意引号中不要带空格.

    4.Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead.

    "babel": {
    "presets": [
    "react-app"
    ],
    "plugins": [
    [
    "@babel/plugin-proposal-decorators",
    {
    "legacy": true
    }
    ],
    [
    "@babel/plugin-proposal-class-properties",
    {
    "loose": true
    }
    ]
    ]
    },

    相关文章

      网友评论

          本文标题:Eslint 跳坑

          本文链接:https://www.haomeiwen.com/subject/fbmlaqtx.html