Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ebarooni/swiftlint-config

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ebarooni/swiftlint-config

A standard shareable config for SwiftLint

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@ebarooni/swiftlint-config

This package provides custom SwiftLint configurations for linting and formatting swift files.

Prerequisites

  1. Install SwiftLint

    brew install swiftlint
    
  2. The peer dependencies might need to be installed separately. To install the peer dependencies run the following command:

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

    {
      "scripts": {
        "swiftlint": "node-swiftlint"
      }
    }
    

Installation

To install the package, run the following command:

npm i -D @ebarooni/swiftlint-config

Usage

To use the configuration in a project, create a swiftlint.config.js file:

module.exports = {
  ...require("@ebarooni/swiftlint-config"),
  included: ["${PWD}/ios"],
  excluded: ["${PWD}/node_modules", "${PWD}/ios/Pods"],
};

Scripts

The following helper scripts can be added to package.json:

{
  "scripts": {
    "lint:swift": "npm run swiftlint -- lint",
    "fmt:swift": "npm run swiftlint -- --fix --format"
  }
}

Extending

To extend the configuration or overwrite some properties from the shared configuration, import the file in a swiftlint.config.js file and export the modifications, e.g:

module.exports = {
  ...require("@ebarooni/swiftlint-config"),
  // override options here
};

Keywords

FAQs

Package last updated on 26 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc