0.2.3 • Published 16 days ago

prettier-plugin-ssh-config v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

prettier-plugin-ssh-config

A prettier plugin for ssh config.

npm github node

Examples

Host *
  HostName localhost
  User root
Host abc
  HostName 127.0.0.1
  User nginx

Installation

npm install prettier prettier-plugin-ssh-config --save-dev

Usage

prettier --write ssh_config

Support Filenames

  • ssh.config
  • ssh_config
  • ssh-config
  • sshconfig
  • *.ssh_config
  • *.ssh-config
  • *.sshconfig

To support custom config name:

// .prettierrc.json
{
  "overrides": [
    {
      "files": ".ssh/config",
      "options": {
        "parser": "ssh-config"
      }
    }
  ]
}

Options

This plugin took options from prettier. Support useTabs/tabWidth/endOfLine , not support printWidth/requirePragma/insertPragma .

Related

0.2.3

16 days ago

0.2.2

9 months ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

3 years ago

0.0.0

3 years ago