# arms-lib-eslint

> 自定义的 js 编码规范

Latest version **0.0.5** (published 2018-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install arms-lib-eslint
pnpm add arms-lib-eslint
yarn add arms-lib-eslint
bun add arms-lib-eslint
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2018-04-24 |
| First published | 2018-04-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 74.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | grarm |
| Maintainers | grarm |

## Links

- npm: https://www.npmjs.com/package/arms-lib-eslint
- Repository: https://github.com/grARM/arms-lib-eslint
- Homepage: https://github.com/grARM/arms-lib-eslint#readme
- Issues: https://github.com/grARM/arms-lib-eslint/issues
- npm.io page: https://npm.io/package/arms-lib-eslint

## Recent versions

- 0.0.5 (latest) — 2018-04-24
- 0.0.4 — 2018-04-01
- 0.0.3 — 2018-04-01
- 0.0.2 — 2018-04-01
- 0.0.1 — 2018-04-01

## README

# JavaScript 代码规范

# doc
## 功能模块名：

* best (best practices ) 最佳实践
* es6 (es6) ES6
* node (nodejs and commonjs)nodeJS 和 commonJS
* possible (possible errors)可能犯的错误
* strict (strict mode)严格模式
* stylistic (stylistic issues) 风格相关
* var (variables)变量定义


## API

### 获取某个模块的规则
* var rules = getRules(rulesList)
* 参数：rulesList【array】功能模块名的列表（见上方），不传就是获取全部规则
* 返回：rules 一个包含对应规则的map

### 获取eslint配置
* var config = getConfig(option)
* 参数：option【object】eslint配置对象，有默认配置，但是模块列表一定要填
* 参数： option.rulesList 即上面的功能模块名的列表，不传就是获取全部规则
* 参数： 其他参数和eslint官网一致
* 返回：config 【object】返回的eslint配置


### 获取模块名
* var ruleNames = getRuleNames()
* 返回：array

---
_Source: https://npm.io/package/arms-lib-eslint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
