Skip to content

Incanta/prettier-angelscript

Repository files navigation

prettier-plugin-angelscript

A Prettier plugin for the AngelScript language, primarily targeting the Unreal AngelScript dialect.

Status: early development. APIs and formatting output are not yet stable.

Install

npm install --save-dev prettier prettier-plugin-angelscript
# or
yarn add -D prettier prettier-plugin-angelscript

Usage

.prettierrc.json:

{
  "plugins": ["prettier-plugin-angelscript"],
  "overrides": [
    {
      "files": "*.as",
      "options": { "parser": "angelscript" }
    }
  ]
}

Then:

prettier --write "Source/**/*.as"

Options

Option Default Description
braceStyle "allman" "allman" (braces on new lines) or "1tbs" (braces on the same line).
quoteStyle "double" "double", "single", or "preserve".
metadataPerLine "auto" "auto" / "always" (per-line, Unreal convention), "never" (inline), or "fit" (inline when within printWidth, otherwise per-line).
alignConsecutiveDeclarations false Align names/types of consecutive property declarations.
spaceInsideAngleBrackets false Emit array< T > instead of array<T>.

Built-in Prettier options (printWidth, tabWidth, useTabs, endOfLine) are honored.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors