컨텐츠로 이동
Cataclysm: Bright Nights
GitHubDiscord

Lua Style Guide

이 컨텐츠는 아직 번역되지 않았습니다.

As Lua ecosystem is a new addition to the project, we only have formatting guidelines.

Formatting

We format Lua files with dprint-plugin-stylua with default configuration.

To format lua files, run:

deno task dprint fmt

Formatting Lua files in VSCode

add following lines on .vscode/settings.json:

{
  "[lua]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "dprint.dprint"
  }
}

now saving your lua files will also format them.