Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

swiftlint

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swiftlint

Tiny SwiftLint wrapper for npm

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
47K
-6.62%
Maintainers
3
Weekly downloads
 
Created
Source

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 swiftlint
    
  • Install the wrapper in your project:

    npm install -D swiftlint
    
  • Add a script to your project's package.json:

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

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

  • Lint in your project! :tada:

    npm run swiftlint
    

FAQs

Package last updated on 19 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts