Skip to content

Commit

Permalink
feat: add .editorconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed May 5, 2021
1 parent 6b42ffa commit 62dcf35
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors or IDEs
# http://editorconfig.org
root = true

# All files
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

[*.{c,h,cpp,hpp}]
indent_size = 2

[*.rs]
indent_size = 2

1 comment on commit 62dcf35

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 62dcf35 Previous: 6b42ffa Ratio
Draw house#@napi-rs/skia 21 ops/sec (±0.9%) 25 ops/sec (±0.04%) 1.19
Draw house#node-canvas 22 ops/sec (±1.31%) 21 ops/sec (±0.41%) 0.95
Draw gradient#@napi-rs/skia 20 ops/sec (±0.51%) 24 ops/sec (±0.03%) 1.20
Draw gradient#node-canvas 21 ops/sec (±1.73%) 20 ops/sec (±0.41%) 0.95

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.