# eslintrc-dj

> the eslint config of DJFE

Latest version **1.2.0** (published 2019-02-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslintrc-dj
pnpm add eslintrc-dj
yarn add eslintrc-dj
bun add eslintrc-dj
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-02-21 |
| First published | 2019-02-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Chang-Jin |
| Maintainers | chang-jin |
| Keywords | eslint, DJ HealthUnion |

## Links

- npm: https://www.npmjs.com/package/eslintrc-dj
- npm.io page: https://npm.io/package/eslintrc-dj

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2019-02-21

## README

# DJFE ESLint配置
岱嘉前端组自用eslint配置

## **上手指南**
参照以下方法，在计算机上添加ESLint插件和相关配置

### **安装要求**
1. 电脑需要安装`nodejs`
2. 需要安装`eslint`及其`插件`的npm包
3. 结合`VS Code`使用
4. `VS Code`需要安装`ESLint`插件

### **安装步骤**
1. 安装`nodejs`
   ```
   http://nodejs.cn/download/
   选择Windows安装程序(.msi) 64位
   ```
2. `nodejs`安装完成之后，使用`npm`工具安装`eslint`及相关插件(建议使用淘宝镜像cnpm)
   ```
   cnpm install -g eslint eslintrc-dj eslint-plugin-html eslint-plugin-require-jsdoc-except eslint-plugin-dollar-sign
   ```
3. `VS Code`安装 `ESLint` 插件
4. 添加以下设置到`setting.json`
   ``` json
    "eslint.autoFixOnSave": true,
    "eslint.options": {
        "configFile": "C:/Users/XXXX/AppData/Roaming/npm/node_modules/eslintrc-dj/index.js"
    },
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "html",
            "autoFix": true
        }
    ]
    ```

## eslint disable方法
1. `VS Code`上找到`eslint`插件选择`禁用(工作区)`，可以在当前工作区禁用
2. `/* eslint-disable */` 放到文件头部 (不建议)，可以在当前文件禁用
3. 添加eslint禁用注释实现单行禁用  
   `// eslint-disable-line`  
   `// eslint-disable-next-line`  
   `/* eslint-disable-line */`  
   `/* eslint-disable-next-line */`
4. 禁用特定规则 ，在禁用上加上该规则名就好了 多个规则逗号隔开  
   `/* eslint-disable-next-line indent */`

## **相关资料**
* [Eslint 中文文档](https://cn.eslint.org/)

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