An open API service indexing awesome lists of open source software.

https://github.com/yanamura/lint-staged


https://github.com/yanamura/lint-staged

stage-files swift

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# lint-staged.swift

Run script(like linter or formatter) against staged git files.

## Usage

### Configuration

create `.lint-staged` on project root directory.

#### .lint-staged

```
[
{
"fileExtensions": ["swift"],
"commands": ["swift-format -i"],
"stagedOnly": true
}
]
```

### Run

```
swift run -c release lint-staged
```

#### Mint

```
mint run yanamura/lint-staged lint-staged
```