2.0.0 • Published 11 months ago
@familyjs/swiftlint v2.0.0
swiftlint
Tiny SwiftLint wrapper for npm. SwiftLint must still be installed and swiftlint must be on your PATH.
Invocations of node-swiftlint on Linux/Windows print a warning and pass.
This package supports cosmiconfig like Prettier does, instead of just .swiftlint.yml.
Usage
Install SwiftLint.
brew install swiftlintInstall the wrapper in your project:
npm install -D @familyjs/swiftlintAdd a script to your project's
package.json:"scripts": { "swiftlint": "node-swiftlint", ... }Add SwiftLint configuration.
This wrapper will use any existing
.swiftlint.ymlfiles (read cosmiconfig's README for more options), but we recommend using@familyjs/swiftlint-config. See usage instructions.Lint in your project! :tada:
npm run swiftlint