Skip to content

Commit 4c1a139

Browse files
authored
Merge pull request #548 from Satherov/auto-pretty
Prettier config and github workflow
2 parents 8cb4723 + 77a9757 commit 4c1a139

File tree

196 files changed

+9081
-9101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+9081
-9101
lines changed

.github/workflows/prettier.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Prettier Autofix
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
prettier:
12+
if: github.actor != 'github-actions[bot]'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Run Prettier
26+
run: npx prettier --write "kubejs/**/*.{js,json}"
27+
28+
- name: Commit changes
29+
uses: stefanzweifel/git-auto-commit-action@v5
30+
with:
31+
commit_message: "chore: format with Prettier"

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"printWidth": 120,
5+
"semi": false,
6+
"singleQuote": false,
7+
"trailingComma": "none",
8+
"bracketSpacing": true,
9+
"arrowParens": "always",
10+
"endOfLine": "lf"
11+
}

kubejs/assets/atm10_localization/lang/pt_br.json

Lines changed: 2497 additions & 2497 deletions
Large diffs are not rendered by default.

kubejs/assets/compactmachines/lang/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"machine.compactmachines.tiny": "Compact Machine (Tiny)",
88
"machine.compactmachines.soaryn": "Compact Machine (Soaryn)",
99
"machine.compactmachines.farming": "Compact Machine (Farming)"
10-
}
10+
}

kubejs/assets/draconic_evolution/lang/pt_br.json

Lines changed: 733 additions & 733 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"ambientocclusion": false,
3-
"textures": {
4-
"particle": "kubejs:block/drive/ancient_stone_cell",
5-
"cell": "kubejs:block/drive/ancient_stone_cell"
6-
},
7-
"elements": [
8-
{
9-
"name": "Cell Backdrop",
10-
"from": [0, 0, 0],
11-
"to": [6, 2, 2],
12-
"rotation": {"angle": 0, "axis": "y", "origin": [9, 8, 8]},
13-
"faces": {
14-
"north": {"uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north"},
15-
"up": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"},
16-
"down": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"}
17-
}
18-
}
19-
]
20-
}
2+
"ambientocclusion": false,
3+
"textures": {
4+
"particle": "kubejs:block/drive/ancient_stone_cell",
5+
"cell": "kubejs:block/drive/ancient_stone_cell"
6+
},
7+
"elements": [
8+
{
9+
"name": "Cell Backdrop",
10+
"from": [0, 0, 0],
11+
"to": [6, 2, 2],
12+
"rotation": { "angle": 0, "axis": "y", "origin": [9, 8, 8] },
13+
"faces": {
14+
"north": { "uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north" },
15+
"up": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" },
16+
"down": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" }
17+
}
18+
}
19+
]
20+
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"ambientocclusion": false,
3-
"textures": {
4-
"particle": "kubejs:block/drive/andesite_cell",
5-
"cell": "kubejs:block/drive/andesite_cell"
6-
},
7-
"elements": [
8-
{
9-
"name": "Cell Backdrop",
10-
"from": [0, 0, 0],
11-
"to": [6, 2, 2],
12-
"rotation": {"angle": 0, "axis": "y", "origin": [9, 8, 8]},
13-
"faces": {
14-
"north": {"uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north"},
15-
"up": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"},
16-
"down": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"}
17-
}
18-
}
19-
]
20-
}
2+
"ambientocclusion": false,
3+
"textures": {
4+
"particle": "kubejs:block/drive/andesite_cell",
5+
"cell": "kubejs:block/drive/andesite_cell"
6+
},
7+
"elements": [
8+
{
9+
"name": "Cell Backdrop",
10+
"from": [0, 0, 0],
11+
"to": [6, 2, 2],
12+
"rotation": { "angle": 0, "axis": "y", "origin": [9, 8, 8] },
13+
"faces": {
14+
"north": { "uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north" },
15+
"up": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" },
16+
"down": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" }
17+
}
18+
}
19+
]
20+
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"ambientocclusion": false,
3-
"textures": {
4-
"particle": "kubejs:block/drive/basalt_cell",
5-
"cell": "kubejs:block/drive/basalt_cell"
6-
},
7-
"elements": [
8-
{
9-
"name": "Cell Backdrop",
10-
"from": [0, 0, 0],
11-
"to": [6, 2, 2],
12-
"rotation": {"angle": 0, "axis": "y", "origin": [9, 8, 8]},
13-
"faces": {
14-
"north": {"uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north"},
15-
"up": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"},
16-
"down": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"}
17-
}
18-
}
19-
]
20-
}
2+
"ambientocclusion": false,
3+
"textures": {
4+
"particle": "kubejs:block/drive/basalt_cell",
5+
"cell": "kubejs:block/drive/basalt_cell"
6+
},
7+
"elements": [
8+
{
9+
"name": "Cell Backdrop",
10+
"from": [0, 0, 0],
11+
"to": [6, 2, 2],
12+
"rotation": { "angle": 0, "axis": "y", "origin": [9, 8, 8] },
13+
"faces": {
14+
"north": { "uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north" },
15+
"up": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" },
16+
"down": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" }
17+
}
18+
}
19+
]
20+
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"ambientocclusion": false,
3-
"textures": {
4-
"particle": "kubejs:block/drive/black_cell",
5-
"cell": "kubejs:block/drive/black_cell"
6-
},
7-
"elements": [
8-
{
9-
"name": "Cell Backdrop",
10-
"from": [0, 0, 0],
11-
"to": [6, 2, 2],
12-
"rotation": {"angle": 0, "axis": "y", "origin": [9, 8, 8]},
13-
"faces": {
14-
"north": {"uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north"},
15-
"up": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"},
16-
"down": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"}
17-
}
18-
}
19-
]
20-
}
2+
"ambientocclusion": false,
3+
"textures": {
4+
"particle": "kubejs:block/drive/black_cell",
5+
"cell": "kubejs:block/drive/black_cell"
6+
},
7+
"elements": [
8+
{
9+
"name": "Cell Backdrop",
10+
"from": [0, 0, 0],
11+
"to": [6, 2, 2],
12+
"rotation": { "angle": 0, "axis": "y", "origin": [9, 8, 8] },
13+
"faces": {
14+
"north": { "uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north" },
15+
"up": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" },
16+
"down": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" }
17+
}
18+
}
19+
]
20+
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"ambientocclusion": false,
3-
"textures": {
4-
"particle": "kubejs:block/drive/blackstone_cell",
5-
"cell": "kubejs:block/drive/blackstone_cell"
6-
},
7-
"elements": [
8-
{
9-
"name": "Cell Backdrop",
10-
"from": [0, 0, 0],
11-
"to": [6, 2, 2],
12-
"rotation": {"angle": 0, "axis": "y", "origin": [9, 8, 8]},
13-
"faces": {
14-
"north": {"uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north"},
15-
"up": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"},
16-
"down": {"uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north"}
17-
}
18-
}
19-
]
20-
}
2+
"ambientocclusion": false,
3+
"textures": {
4+
"particle": "kubejs:block/drive/blackstone_cell",
5+
"cell": "kubejs:block/drive/blackstone_cell"
6+
},
7+
"elements": [
8+
{
9+
"name": "Cell Backdrop",
10+
"from": [0, 0, 0],
11+
"to": [6, 2, 2],
12+
"rotation": { "angle": 0, "axis": "y", "origin": [9, 8, 8] },
13+
"faces": {
14+
"north": { "uv": [0, 0, 6, 2], "texture": "#cell", "cullface": "north" },
15+
"up": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" },
16+
"down": { "uv": [6, 0, 0, 2], "texture": "#cell", "cullface": "north" }
17+
}
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)