# solhint-plugin-prettier

> This [Solhint](https://github.com/solhint-community/solhint-community) plugin lets you check that your solidity files are correctly formatted according to the [solidity plugin for Prettier](https://github.com/prettier-solidity/prettier-plugin-solidity). E

Latest version **0.1.0** (published 2023-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install solhint-plugin-prettier
pnpm add solhint-plugin-prettier
yarn add solhint-plugin-prettier
bun add solhint-plugin-prettier
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-10-31 |
| First published | 2019-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | fvictorio |
| Keywords | solhint, prettier, plugin, solidity |

## Links

- npm: https://www.npmjs.com/package/solhint-plugin-prettier
- npm.io page: https://npm.io/package/solhint-plugin-prettier

## Dependencies (2)

- [@prettier/sync](https://npm.io/package/@prettier/sync.md) ^0.3.0
- [prettier-linter-helpers](https://npm.io/package/prettier-linter-helpers.md) ^1.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2023-10-31
- 0.0.5 — 2020-08-24
- 0.0.4 — 2020-01-30
- 0.0.3 — 2019-06-28
- 0.0.2 — 2019-01-07
- 0.0.1 — 2019-01-07

## README

# solhint-plugin-prettier

This [Solhint](https://github.com/solhint-community/solhint-community) plugin lets you check that
your solidity files are correctly formatted according to the [solidity plugin
for Prettier](https://github.com/prettier-solidity/prettier-plugin-solidity).
Each difference with how prettier would format it is reported as an individual
issue.

## Setup

First install the necessary packages:

```
npm install --save-dev solhint-community solhint-plugin-prettier prettier prettier-plugin-solidity
```

Then add a `.solhint.json` configuration file:

```json
{
  "plugins": ["prettier"],
  "rules": {
    "prettier/prettier": "error"
  }
}
```

This rule will emit an error for each difference between your code and how prettier-solidity would format it. You can also set it to `warning` instead of `error` if you prefer that.

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