Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including eslint-config-lvmama with all npm packages installed. Try it out:

require("eslint/package.json"); // eslint is a peer dependency. var eslintConfigLvmama = require("eslint-config-lvmama")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-config-lvmama v1.1.6



驴妈妈H5开发规范 对应的 eslint 共享规则。


  1. 安装 eslint-config-lvmama 到本地目录

    > npm install --save-dev eslint-config-lvmama
  2. 在你的项目目录的 eslint 配置文件(一般命名为 .eslintrc)中,设置 extends 属性

        "extends": "lvmama"
  3. 启动语法检查。


  1. 全局安装 eslint

    > npm install -g eslint
  2. 安装 VSCode 的 Eslint 扩展

  3. 打开 VSCode 的设置页,在用户设置中添加你的 eslint 配置文件路径

    "eslint.options": {
        "configFile": "E:\\data\\myProject\\.eslintrc.js"
  4. 关闭所有 VSCode 窗口后,重启 VSCode

  5. 在编辑区右侧以及 问题 面板(按 Ctrl+Shift+M 打开)可以看到检查出的问题

  6. 手动修复问题,或者按 F1 打开命令面板输入 eslint 选择 Fix all auto-fixable Problems 来修复所有可自动修复的问题

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free