docs icon indicating copy to clipboard operation
docs copied to clipboard

[Chore] add a code formatter config to keep the code style consistent?

Open leecalcote opened this issue 2 years ago • 1 comments

          No worries. I did a quick fix to get more inputs. I'll make the necessary changes. Also can we add a code formatter config to keep the code style consistent?

Originally posted by @phukon in https://github.com/layer5io/docs/pull/79#discussion_r1402947106

leecalcote avatar Nov 23 '23 06:11 leecalcote

Ref: layer5/sistent

{
  "semi": true,
  "tabWidth": 2,
  "printWidth": 100,
  "singleQuote": true,
  "trailingComma": "none",
  "plugins": ["prettier-plugin-organize-imports"]
}

Suggest files/folders to add in .prettierignore for a Hugo project.

archive
assets
content/en
static
Makefile
go.mod
go.sum
hugo.toml
netlify.toml

phukon avatar Nov 23 '23 07:11 phukon