# swiftlinthook

> [ swiftlinthook ] provides tools which enable you to commit Swift code to a git repository using a unified style format.

Latest version **1.0.0** (published 2018-07-18) · MIT licensed license · 0 weekly downloads

## Install

```sh
npm install swiftlinthook
pnpm add swiftlinthook
yarn add swiftlinthook
bun add swiftlinthook
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-07-18 |
| First published | 2018-07-18 |
| Weekly downloads | 0 |
| License | MIT licensed |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SwiftLint |
| Maintainers | smadey |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2018-07-18

## README

# SwiftLintHook
[ SwiftLintHook] provides tools which enable you to commit Swift code to a git repository using a unified style format.

## Installation
```
yarn add --dev swiftlinthook
```
or
```
npm install --save-dev swiftlinthook
```

Once the package is installed in your project, you just need to configure it by adding a `lint-staged` script which will re-run the script whenever you commit Swift code to a git repository:
```
  "lint-staged": {
    "*.swift": "./node_modules/swiftlinthook/swiftlinthook"
  },
```

## Configuration
The path of the configuration file:
```
./ios/.swiftlint.yml
```

## SwiftLint
[SwiftLint](https://github.com/realm/SwiftLint).

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