1.0.0 • Published 7 years ago
swiftlinthook v1.0.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 swiftlinthookor
npm install --save-dev swiftlinthookOnce 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.ymlSwiftLint
1.0.0
7 years ago