1.0.0 • Published 8 years ago
swiftlinthook
Licence
MIT licensed
Version
1.0.0
Deps
0
Size
15.7 MB
Vulns
0
Weekly
0
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