Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 699 Bytes

File metadata and controls

26 lines (20 loc) · 699 Bytes

新建 VUE 项目,使用 element-ui,并使用 eslint

  1. 安装最新版本 node.js

  2. 安装 vue

  3. 初始化 project:vue init webpack ${project-name}

  4. 安装主题 npm i element-ui -S

  5. 安装VSCode, 安装 ESLint 和 Vetur 两个插件

  6. 设置.eslintrc.js, 添加 rules

     'rules': {
         // allow paren-less arrow functions
         'arrow-parens': 0,
         // allow async-await
         'generator-star-spacing': 0,
         // allow debugger during development
         'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
         'space-before-function-paren': 0,
         'one-var': 0
     }
     
  7. 配置文件 webpack.config.js 中设置host