Skip to content

imweb/eslint-config-imweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-imweb

node version build status David deps License

IMWeb团队eslint配置规则。

安装

安装依赖:

npm i --save-dev eslint babel-eslint eslint-config-imweb

配置 .eslintrc :

  • 小程序项目:

    {
        "extends": "eslint-config-imweb/weapp"
    }
  • 非小程序项目

    {
        "extends": "eslint-config-imweb"
    }

配置 package.json 的scripts:

 "scripts": {
   "lint": "eslint *.js lib test xxx",
   "lintfix": "eslint --fix *.js lib test xxx"
}

运行:

npm run lint

文档链接

Releases

No releases published

Packages

No packages published