A Prettier plugin for the AngelScript language, primarily targeting the Unreal AngelScript dialect.
Status: early development. APIs and formatting output are not yet stable.
npm install --save-dev prettier prettier-plugin-angelscript
# or
yarn add -D prettier prettier-plugin-angelscript.prettierrc.json:
{
"plugins": ["prettier-plugin-angelscript"],
"overrides": [
{
"files": "*.as",
"options": { "parser": "angelscript" }
}
]
}Then:
prettier --write "Source/**/*.as"| 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.
MIT