Skip to content

Commit e3d3cf4

Browse files
authored
Merge pull request #185 from RobLoach/code-format
Code format
2 parents 983e73f + eb0673f commit e3d3cf4

File tree

4 files changed

+57
-2
lines changed

4 files changed

+57
-2
lines changed

.clang-format

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
BasedOnStyle: LLVM
2+
IndentWidth: 2
3+
UseTab: Never
4+
ColumnLimit: 0
5+
BinPackArguments: false
6+
BinPackParameters: false
7+
AllowAllArgumentsOnNextLine: false
8+
AllowAllParametersOfDeclarationOnNextLine: false
9+
AlwaysBreakAfterReturnType: None
10+
PenaltyBreakAssignment: 100000000
11+
PenaltyBreakBeforeFirstCallParameter: 100000000
12+
PenaltyBreakComment: 100000000
13+
PenaltyBreakFirstLessLess: 100000000
14+
PenaltyBreakString: 100000000
15+
PenaltyExcessCharacter: 100000000
16+
PenaltyReturnTypeOnItsOwnLine: 100000000
17+
PenaltyIndentedWhitespace: 100000000
18+
ContinuationIndentWidth: 2
19+
AlignAfterOpenBracket: DontAlign
20+
AlignOperands: false
21+
BreakBeforeBinaryOperators: None
22+
BreakBeforeTernaryOperators: false

.github/workflows/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ name: Test
33
on: [push]
44

55
jobs:
6+
style:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: checkout
10+
uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-node@v2
14+
- name: Code Style Check
15+
run: npx -y prettier -c .
16+
# run: npx @biomejs/biome format . # do this after we move to biome config
17+
618
build:
719
strategy:
820
fail-fast: false
@@ -68,4 +80,4 @@ jobs:
6880
path: ./node_modules
6981
key: modules-${{ hashFiles('package-lock.json') }}
7082
- name: Build for arm
71-
run: docker run --platform linux/arm --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild-drm.sh
83+
run: docker run --platform linux/arm --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild-drm.sh

.prettierrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSameLine": false,
4+
"bracketSpacing": true,
5+
"embeddedLanguageFormatting": "auto",
6+
"endOfLine": "lf",
7+
"htmlWhitespaceSensitivity": "css",
8+
"insertPragma": false,
9+
"jsxSingleQuote": true,
10+
"printWidth": 9999,
11+
"proseWrap": "preserve",
12+
"quoteProps": "as-needed",
13+
"requirePragma": false,
14+
"semi": false,
15+
"singleAttributePerLine": false,
16+
"singleQuote": true,
17+
"tabWidth": 2,
18+
"trailingComma": "none",
19+
"useTabs": false,
20+
"vueIndentScriptAndStyle": false
21+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![node-raylib Logo](logo/raylib-node_256x256.png)
22

3-
# node-raylib [![npm version](http://img.shields.io/npm/v/raylib.svg)](https://npmjs.org/package/raylib "View this project on npm") [![Tests](https://github.com/RobLoach/node-raylib/workflows/Tests/badge.svg)](https://github.com/RobLoach/node-raylib/actions?query=workflow%3ATests+branch%3Amaster "See automated test status on GitHub Actions")
3+
# node-raylib [![npm version](http://img.shields.io/npm/v/raylib.svg)](https://npmjs.org/package/raylib "View this project on npm") [![Tests](https://github.com/RobLoach/node-raylib/actions/workflows/test.yml/badge.svg)](https://github.com/RobLoach/node-raylib/actions/workflows/test.yml "See automated test status on GitHub Actions")
44

55
[Node.js](https://nodejs.org) bindings for [raylib](https://www.raylib.com/), a simple and easy-to-use library to enjoy videogames programming (www.raylib.com).
66

0 commit comments

Comments
 (0)