# eslint-master **Repository Path**: tombtiger/eslint-master ## Basic Information - **Project Name**: eslint-master - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-08-22 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # eslint-master ### 项目介绍 学习使用eslint。 ### 步骤 #### 安装eslint和formatter 1. https://packagecontrol.io/packages/SublimeLinter 2. https://github.com/roadhump/SublimeLinter-eslint 3. https://github.com/TheSavior/ESLint-Formatter/ #### 测试eslint和formatter 1. git clone https://gitee.com/tombtiger/eslint-master.git 2. cd eslint-master 3. npm init 4. eslint --init(前提安装了eslint,全局或者局部安装皆可以) 5. 配置.eslintrc.js文件 6. 创建moduleA.js 7. 右键link this view 8. Eslint formatter #### http-server起服务 1. npm install http-server --save-dev (网速不快,使用cnpm也可以) 2. "start": "./node_modules/.bin/hs ./docs -p 8888 -s -c-1 -o" 3. 执行npm start 4. http://127.0.0.1:8888/ 控制台输出结果 #### rollup 1. https://www.rollupjs.com/guide/zh 2. https://rollupjs.org/guide/en ### 参考链接 1. https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013744142037508cf42e51debf49668810645e02887691000