1.1.1 • Published 11 months ago

prettier-plugin-ink v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Ink Prettier Plugin

An prettier plugin for formatting ink

⚠️PLEASE NOTE THIS TOOL IS STILL WORK IN PROGRESS⚠️

⚠️SAVE YOUR WORK BEFORE FORMATTING IT⚠️

Get Started

Step 1 Install node.js

use nvm to install node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nvm install 18
nvm use 18

Step 2 Install Prettier & Prettier-Plugin-Ink

npm install -g prettier prettier-plugin-ink

Step 3 Run

Make sure you save your work first! This will overwrite your files!

prettier -w **/*.ink

Ignore

Writing //prettier-ignore will cause the following lines to be ignored by prettier. It will ignore All the following lines of the same depth, eg:

=== knot
//prettier-ignore
****** this line WILL not be formatted
****** this line WILL ALSO not be formatted

=== knot
*** this line WILL be formatted

Only // style comments are currently supported

Contributing

Bug Reports and PRs are very welcome.

If filing a bug report, please include:

  • your original ink code
  • how it was formatted
  • how it should be formatted
  • any additional information

If opening a MR, please include:

  • a description of the change
  • at least 1 test showing the input and output

TODO

  • npm publish
  • INCLUDE handling
  • repeated application test
  • tags
  • prettier-ignore pragma
  • multiple tags
  • web hosted
  • dynamic tags
  • proper comment handling
  • prettier-ignore multi-line comments
  • sort INCLUDEs option
  • api?
1.1.1

11 months ago

1.1.0

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago