Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imweb/eslint-config-imweb
IMWeb团队eslint配置规则
https://github.com/imweb/eslint-config-imweb
Last synced: 28 days ago
JSON representation
IMWeb团队eslint配置规则
- Host: GitHub
- URL: https://github.com/imweb/eslint-config-imweb
- Owner: imweb
- License: mit
- Created: 2017-02-07T09:09:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-28T07:09:57.000Z (over 4 years ago)
- Last Synced: 2024-10-31T17:57:25.309Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://imweb.github.io/eslint-config-imweb/
- Size: 112 KB
- Stars: 21
- Watchers: 28
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-imweb
[![node version](https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square)](http://nodejs.org/download/)
[![build status](https://img.shields.io/travis/imweb/eslint-config-imweb.svg?style=flat-square)](https://travis-ci.org/imweb/eslint-config-imweb)
[![David deps](https://img.shields.io/david/imweb/eslint-config-imweb.svg?style=flat-square)](https://david-dm.org/imweb/eslint-config-imweb)
[![License](https://img.shields.io/npm/l/eslint-config-imweb.svg?style=flat-square)](https://www.npmjs.com/package/eslint-config-imweb)IMWeb团队eslint配置规则。
# 安装
安装依赖:npm i --save-dev eslint babel-eslint eslint-config-imweb
配置 `.eslintrc` :
- 小程序项目:
```json
{
"extends": "eslint-config-imweb/weapp"
}
```- 非小程序项目
```json
{
"extends": "eslint-config-imweb"
}
```配置 `package.json` 的scripts:
"scripts": {
"lint": "eslint *.js lib test xxx",
"lintfix": "eslint --fix *.js lib test xxx"
}运行:
npm run lint
[文档链接](https://imweb.github.io/eslint-config-imweb/)