其他分享
首页 > 其他分享> > 164、.eslintrc.js使用示例

164、.eslintrc.js使用示例

作者:互联网

module.exports = {
  "env": {
    "browser": true,
    "node": true
  },
  "globals": {//不在这里配置而使用下列变量,则会报错
    "angular": true,
    "WebUploader": true,
    "editormd": true,
    "$": true,
    "Swiper": true,
    "echarts": true,
    "phantom": true,
    "NProgress": true,
    "html2canvas": true,
    "$scope": true,
    "laydate": true,
    "layer": true,
    "Mock": true,
    '_': true,
    'alasql': true
  },
  "extends": "eslint:recommended",
  "rules": {
    "indent": [
      "error",
      2
    ],
    "linebreak-style": 'off',
    "quotes": [
      "error",
      "single"
    ],
    "semi": [
      "error",
      "always"
    ],
  }
};

 

标签:layer,示例,eslintrc,linebreak,报错,error,164,true
来源: https://www.cnblogs.com/gushixianqiancheng/p/12013111.html