docs: update contributing/formatting
This commit is contained in:
parent
731c1d22ae
commit
96a06265ac
|
@ -2,7 +2,7 @@
|
||||||
title: .editorconfig
|
title: .editorconfig
|
||||||
description: Formatting standards using .editorconfig
|
description: Formatting standards using .editorconfig
|
||||||
published: true
|
published: true
|
||||||
date: 2024-05-05T18:36:09.521Z
|
date: 2024-05-05T19:07:11.461Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2024-05-05T18:30:37.455Z
|
dateCreated: 2024-05-05T18:30:37.455Z
|
||||||
|
@ -19,14 +19,54 @@ root = true
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
Following here is the per language additions:
|
|
||||||
|
# Programming Languages:
|
||||||
|
|
||||||
## Nix
|
## Nix
|
||||||
|
Using nixfmt-rfc-style
|
||||||
```editorconfig
|
```editorconfig
|
||||||
[*.nix]
|
[*.nix]
|
||||||
indent_style = space
|
indent_size = 2
|
||||||
indext_size = 2
|
|
||||||
insert_final_newline = false
|
insert_final_newline = false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Python
|
||||||
|
Using pycodestyle
|
||||||
|
```editorconfig
|
||||||
|
[*.{py,py3}]
|
||||||
|
indent_size = 4
|
||||||
|
```
|
||||||
|
|
||||||
|
## Node.js
|
||||||
|
Using prettier
|
||||||
|
```editorconfig
|
||||||
|
[*.{cjs,mjs,js,ts,jsx,tsx}]
|
||||||
|
indent_size = 2
|
||||||
|
```
|
||||||
|
|
||||||
|
## Rust
|
||||||
|
Using cargo fmt
|
||||||
|
```editorconfig
|
||||||
|
[*.rs,Cargo.toml]
|
||||||
|
indent_size = 4
|
||||||
|
insert_final_newline = false
|
||||||
|
```
|
||||||
|
|
||||||
|
# Data Storage Files
|
||||||
|
|
||||||
|
## JSON
|
||||||
|
```editorconfig
|
||||||
|
[*.{json,json5}]
|
||||||
|
indent_size = 2
|
||||||
|
```
|
||||||
|
|
||||||
|
## CSV
|
||||||
|
```editorconfig
|
||||||
|
[*.csv]
|
||||||
|
indent_size = 0
|
||||||
|
```
|
Loading…
Reference in a new issue