Skip to content

Commit e0af1ea

Browse files
authored
Merge branch 'main' into fluxite-recipe-qol
2 parents dd56cab + be3c0ed commit e0af1ea

File tree

239 files changed

+13623
-9155
lines changed

Some content is hidden

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

239 files changed

+13623
-9155
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+
}

0 commit comments

Comments
 (0)