# eslint-config-daniel

> eslint config npm package

Latest version **1.0.6** (published 2019-07-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-config-daniel
pnpm add eslint-config-daniel
yarn add eslint-config-daniel
bun add eslint-config-daniel
```

## 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.0.6 |
| Published | 2019-07-24 |
| First published | 2019-07-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 45.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel |
| Maintainers | daniel... |
| Keywords | eslint, npm |

## Links

- npm: https://www.npmjs.com/package/eslint-config-daniel
- Repository: https://github.com/DoubleMingZMM/eslint-config-daniel
- Homepage: https://github.com/DoubleMingZMM/eslint-config-daniel#readme
- Issues: https://github.com/DoubleMingZMM/eslint-config-daniel/issues
- npm.io page: https://npm.io/package/eslint-config-daniel

## 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.0.6 (latest) — 2019-07-24
- 1.0.5 — 2019-07-23
- 1.0.4 — 2019-07-23
- 1.0.3 — 2019-07-23
- 1.0.2 — 2019-07-23
- 1.0.1 — 2019-07-23
- 1.0.0 — 2019-07-23

## README

# eslint-config-daniel

张明明个人项目 eslint 统一配置

## 使用

### 标准规则

基本安装

```shell
npm install eslint babel-eslint eslint-config-daniel eslint-plugin-html --save-dev
```

在你的项目根目录下创建 `.eslintrc.js`，并将以下内容复制到文件中：

```js
module.exports = {
    root: true,
    extends: [
        'eslint-config-daniel'
    ]
};
```

### Vue

Vue 项目安装

```shell
npm install eslint-plugin-vue --save-dev // 额外安装
```

在你的项目根目录下创建 `.eslintrc.js`，并将以下内容复制到文件中：

```js
module.exports = {
    root: true,
    extends: [
        // 修改成如下使用
        'eslint-config-daniel/vue'
    ]
};
```

### React

React 项目安装

```shell
npm install eslint-plugin-react --save-dev // 额外安装
```

在你的项目根目录下创建 `.eslintrc.js`，并将以下内容复制到文件中：

```js
module.exports = {
    root: true,
    extends: [
        // 修改成如下使用
        'eslint-config-daniel/react'
    ]
};
```
### 代码组成

代码的组织形式

```shell
// index.js
一些常见的 JS 和 HTML 文件的基础 eslint 配置。
```

```shell
// react.js
主要是关于 React 的配置，里面 plugin 引入了 eslint-plugin-react 插件，并使用 extends: ['./index.js'], 合并外层的文件。使用的时候只需要配置本地 .eslintrc 文件的 extends 为 'eslint-config-daniel/react'，并且下载相应的插件。
```

```shell
// vue.js
主要是关于 Vue 的配置，里面 plugin 引入了 eslint-plugin-vue 插件，并使用 extends: ['./index.js'], 合并外层的文件。使用的时候只需要配置本地 .eslintrc 文件的 extends 为 'eslint-config-daniel/vue'，并且下载相应的插件。
```

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