@familyjs/swiftlint

1.0.2 • Public • Published

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

  1. Install SwiftLint.

    brew install swiftlint
    
  2. Install the wrapper in your project:

    npm install -D @familyjs/swiftlint
    
  3. Add a script to your project's package.json:

    "scripts": {
      "swiftlint": "node-swiftlint",
      ...
    }
    
  4. Add SwiftLint configuration.

    This wrapper will use any existing .swiftlint.yml files (read cosmiconfig's README for more options), but we recommend using @familyjs/swiftlint-config. See usage instructions.

  5. Lint in your project! 🎉

    npm run swiftlint
    

Readme

Keywords

none

Package Sidebar

Install

npm i @familyjs/swiftlint

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • nkduy