https://github.com/yanamura/lint-staged
https://github.com/yanamura/lint-staged
stage-files swift
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yanamura/lint-staged
- Owner: yanamura
- Created: 2019-12-08T06:13:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-12T08:39:25.000Z (over 5 years ago)
- Last Synced: 2025-02-07T14:46:41.585Z (8 months ago)
- Topics: stage-files, swift
- Language: Swift
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```