# @eslint-share/eslint-config-prettier

> normal config prettier

Latest version **1.0.5** (published 2022-05-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install @eslint-share/eslint-config-prettier
pnpm add @eslint-share/eslint-config-prettier
yarn add @eslint-share/eslint-config-prettier
bun add @eslint-share/eslint-config-prettier
```

## 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.5 |
| Published | 2022-05-17 |
| First published | 2022-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | soakcode |

## Links

- npm: https://www.npmjs.com/package/@eslint-share/eslint-config-prettier
- npm.io page: https://npm.io/package/@eslint-share/eslint-config-prettier

## Dependencies (11)

- [eslint](https://npm.io/package/eslint.md) ^7.12.1
- [prettier](https://npm.io/package/prettier.md) ^2.1.2
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.16.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.19.0
- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) ^7.16.3
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^6.11.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^3.1.4
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^4.6.1
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.2.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^4.6.1
- [eslint-plugin-simple-import-sort](https://npm.io/package/eslint-plugin-simple-import-sort.md) ^7.0.0

## Recent versions

- 1.0.5 (latest) — 2022-05-17
- 1.0.4 — 2022-05-16
- 1.0.3 — 2022-05-16
- 1.0.2 — 2022-05-16

## README

# eslint-share 项目规范

不依赖 `Typescript` 和 `React` 的项目可使用此配置。主要做代码格式化的校验。

## 依赖库

- `Eslint`
- `Prettier`
- `@babel/eslint-parser`

## 安装

- `npm i @eslint-share/eslint-config-prettier` or
  `yarn add @eslint-share/eslint-config-prettier`

> 使用 yarn 如果出现错误的话，需要补充安装 `yarn add eslint-plugin-prettier@latest -D`

## 配置

在项目根目录新建 eslint 配置文件：.eslintrc.js 中加入：

```
module.exports = {
  "extends": ["@eslint-share/eslint-config-prettier"]
}
```

## 规则复写

如果需要修改 `Prettier` 规则，需要在 `.eslintrc.js` 中新增字段 `rules` 字段：

```
module.exports = {
  ...
  rules: {
    "prettier/prettier": [
      "error",
      {
        printWidth: 100,
        trailingComma: "none"
      }
    ]
  }
}
```

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