@ionic/swiftlint-config

1.1.2 • Public • Published

@ionic/swiftlint-config

Shared SwiftLint config used in Ionic and Capacitor projects. This must be used with the swiftlint wrapper for npm projects.

Usage

  1. Install the swiftlint wrapper by following these instructions.

  2. Remove existing .swiftlint.yml file, if present.

  3. Install the config in your project.

    npm install -D @ionic/swiftlint-config
    
  4. Configure the swiftlint wrapper by adding a swiftlint key at the root of your project's package.json.

    "swiftlint": "@ionic/swiftlint-config",
    

    Alternatively, to override options, you can create a swiftlint.config.js file:

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

    It might be worth creating a PR to this config repo first, though! We'd love to discuss changes. 💙

Readme

Keywords

none

Package Sidebar

Install

npm i @ionic/swiftlint-config

Weekly Downloads

21,278

Version

1.1.2

License

MIT

Unpacked Size

2.05 kB

Total Files

3

Last publish

Collaborators

  • ionicjs