Skip to content

Commit d92bc10

Browse files
committed
Migrate to oxfmt
1 parent 749c4f5 commit d92bc10

36 files changed

Lines changed: 6914 additions & 5547 deletions

.github/semantic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ types:
1414
- types
1515
- wip
1616
- release
17-
- deps
17+
- deps

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [main]
66
paths-ignore:
77
- "*.md"
8-
8+
99
pull_request:
1010
branches: [main]
1111
paths-ignore:

.github/workflows/codeql-analysis.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name: "CodeQL"
1313

1414
on:
1515
schedule:
16-
- cron: '39 18 * * 6'
16+
- cron: "39 18 * * 6"
1717

1818
jobs:
1919
analyze:
@@ -27,39 +27,39 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
language: [ 'javascript' ]
30+
language: ["javascript"]
3131
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3232
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3333

3434
steps:
35-
- name: Checkout repository
36-
uses: actions/checkout@v2
35+
- name: Checkout repository
36+
uses: actions/checkout@v2
3737

38-
# Initializes the CodeQL tools for scanning.
39-
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@v1
41-
with:
42-
languages: ${{ matrix.language }}
43-
# If you wish to specify custom queries, you can do so here or in a config file.
44-
# By default, queries listed here will override any specified in a config file.
45-
# Prefix the list here with "+" to use these queries and those in the config file.
46-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
38+
# Initializes the CodeQL tools for scanning.
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v1
41+
with:
42+
languages: ${{ matrix.language }}
43+
# If you wish to specify custom queries, you can do so here or in a config file.
44+
# By default, queries listed here will override any specified in a config file.
45+
# Prefix the list here with "+" to use these queries and those in the config file.
46+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4747

48-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
49-
# If this step fails, then you should remove it and run the build manually (see below)
50-
- name: Autobuild
51-
uses: github/codeql-action/autobuild@v1
48+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
49+
# If this step fails, then you should remove it and run the build manually (see below)
50+
- name: Autobuild
51+
uses: github/codeql-action/autobuild@v1
5252

53-
# ℹ️ Command-line programs to run using the OS shell.
54-
# 📚 https://git.io/JvXDl
53+
# ℹ️ Command-line programs to run using the OS shell.
54+
# 📚 https://git.io/JvXDl
5555

56-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
57-
# and modify them (or add more) to build your code if your project
58-
# uses a compiled language
56+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
57+
# and modify them (or add more) to build your code if your project
58+
# uses a compiled language
5959

60-
#- run: |
61-
# make bootstrap
62-
# make release
60+
#- run: |
61+
# make bootstrap
62+
# make release
6363

64-
- name: Perform CodeQL Analysis
65-
uses: github/codeql-action/analyze@v1
64+
- name: Perform CodeQL Analysis
65+
uses: github/codeql-action/analyze@v1

.oxfmtrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"sortPackageJson": false,
5+
"trailingComma": "none",
6+
"ignorePatterns": [
7+
"node_modules",
8+
"/coverage",
9+
"/.next/",
10+
"/out/",
11+
"/build",
12+
".DS_Store",
13+
".env*",
14+
".husky",
15+
"npm-debug.log*",
16+
"yarn-debug.log*",
17+
"yarn-error.log*",
18+
"/public",
19+
".prettierignore",
20+
"yarn.lock"
21+
]
22+
}

.prettierignore

Lines changed: 0 additions & 29 deletions
This file was deleted.

.prettierrc

Whitespace-only changes.

docs/components/MDXPlayground.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ setup({
1717
`/libs/esbuild-wasm/${esbuildWasmMeta.version}`,
1818
monacoEditorPath:
1919
(isProd ? "/code-kitchen" : "") +
20-
`/libs/monaco-editor/${monacoEditorMeta.version}/min`,
20+
`/libs/monaco-editor/${monacoEditorMeta.version}/min`
2121
});
2222

2323
export const useHasMounted = () => {
@@ -43,7 +43,7 @@ export const Playground = ({
4343
className,
4444
name,
4545
live,
46-
dir,
46+
dir
4747
}: {
4848
children: string;
4949
/**
@@ -97,7 +97,7 @@ export const Playground = ({
9797
code: props.children as string,
9898
hidden,
9999
entry: index === 0,
100-
filename,
100+
filename
101101
};
102102
})
103103
.filter(Boolean);

docs/components/dependencies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as demoLib from "demo-lib";
33

44
const dependencies = {
55
react: React,
6-
"demo-lib": demoLib,
6+
"demo-lib": demoLib
77
};
88

99
export default dependencies;

docs/components/use-init-monaco.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const useInitMonaco = () => {
2222

2323
const allTypes = [
2424
[`${filePrefix}/${typesPrefix}/react/index.d.ts`, reactTyping],
25-
[`${filePrefix}/demo-lib/index.tsx`, demoLibSrc],
25+
[`${filePrefix}/demo-lib/index.tsx`, demoLibSrc]
2626
];
2727

2828
// Dispose?

docs/lib/posts.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function getPostsData() {
2020
// Combine the data with the id
2121
return {
2222
id,
23-
fileName,
23+
fileName
2424
};
2525
})
2626
);
@@ -35,11 +35,11 @@ export async function getPostData(id: string) {
3535
const mdxSource = await serialize(source, {
3636
mdxOptions: {
3737
remarkPlugins: [remarkGfm],
38-
rehypePlugins: [codeMetaPlugin],
39-
},
38+
rehypePlugins: [codeMetaPlugin]
39+
}
4040
});
4141

4242
return {
43-
source: mdxSource,
43+
source: mdxSource
4444
};
4545
}

0 commit comments

Comments
 (0)