Skip to content

Commit 91d01f8

Browse files
committed
migrate to oxfmt and oxlint
1 parent 6f7b47f commit 91d01f8

15 files changed

Lines changed: 1607 additions & 1924 deletions

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
custom: ["https://www.buymeacoffee.com/leopard"]
3+
custom: ['https://www.buymeacoffee.com/leopard']

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: feature
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Upload Pages Artifact
4444
uses: actions/upload-pages-artifact@v5
4545
with:
46-
path: "dist/"
46+
path: 'dist/'
4747

4848
deploy:
4949
needs: build

.oxfmtrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"semi": false,
4+
"singleQuote": true,
5+
"bracketSpacing": true,
6+
"arrowParens": "always",
7+
"printWidth": 100,
8+
"trailingComma": "none",
9+
"sortPackageJson": false,
10+
"ignorePatterns": []
11+
}

.oxlintrc.json

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["react", "unicorn"],
4+
"jsPlugins": [],
5+
"categories": {
6+
"correctness": "off"
7+
},
8+
"env": {
9+
"builtin": true
10+
},
11+
"ignorePatterns": ["**/dist", "**/.yarn/**", "**/.pnp.**"],
12+
"rules": {
13+
"constructor-super": "error",
14+
"for-direction": "error",
15+
"getter-return": "error",
16+
"no-async-promise-executor": "error",
17+
"no-case-declarations": "error",
18+
"no-class-assign": "error",
19+
"no-compare-neg-zero": "error",
20+
"no-cond-assign": "error",
21+
"no-const-assign": "error",
22+
"no-constant-binary-expression": "error",
23+
"no-constant-condition": "error",
24+
"no-control-regex": "error",
25+
"no-debugger": "error",
26+
"no-delete-var": "error",
27+
"no-dupe-class-members": "error",
28+
"no-dupe-else-if": "error",
29+
"no-dupe-keys": "error",
30+
"no-duplicate-case": "error",
31+
"no-empty": "error",
32+
"no-empty-character-class": "error",
33+
"no-empty-pattern": "error",
34+
"no-empty-static-block": "error",
35+
"no-ex-assign": "error",
36+
"no-extra-boolean-cast": "error",
37+
"no-fallthrough": "error",
38+
"no-func-assign": "error",
39+
"no-global-assign": "error",
40+
"no-import-assign": "error",
41+
"no-invalid-regexp": "error",
42+
"no-irregular-whitespace": "error",
43+
"no-loss-of-precision": "error",
44+
"no-misleading-character-class": "error",
45+
"no-new-native-nonconstructor": "error",
46+
"no-nonoctal-decimal-escape": "error",
47+
"no-obj-calls": "error",
48+
"no-prototype-builtins": "error",
49+
"no-redeclare": "error",
50+
"no-regex-spaces": "error",
51+
"no-self-assign": "error",
52+
"no-setter-return": "error",
53+
"no-shadow-restricted-names": "error",
54+
"no-sparse-arrays": "error",
55+
"no-this-before-super": "error",
56+
"no-unreachable": "error",
57+
"no-unsafe-finally": "error",
58+
"no-unsafe-negation": "error",
59+
"no-unsafe-optional-chaining": "error",
60+
"no-unused-labels": "error",
61+
"no-unused-private-class-members": "error",
62+
"no-unused-vars": "error",
63+
"no-useless-backreference": "error",
64+
"no-useless-catch": "error",
65+
"no-useless-escape": "error",
66+
"no-with": "error",
67+
"require-yield": "error",
68+
"use-isnan": "error",
69+
"valid-typeof": "error",
70+
"react/display-name": "error",
71+
"react/jsx-key": "error",
72+
"react/jsx-no-comment-textnodes": "error",
73+
"react/jsx-no-duplicate-props": "error",
74+
"react/jsx-no-target-blank": "error",
75+
"react/jsx-no-undef": "error",
76+
"react/no-children-prop": "error",
77+
"react/no-danger-with-children": "error",
78+
"react/no-direct-mutation-state": "error",
79+
"react/no-find-dom-node": "error",
80+
"react/no-is-mounted": "error",
81+
"react/no-render-return-value": "error",
82+
"react/no-string-refs": "error",
83+
"react/no-unescaped-entities": "error",
84+
"react/no-unknown-property": "error",
85+
"react/rules-of-hooks": "error",
86+
"react/exhaustive-deps": "warn",
87+
"react/only-export-components": ["error", {}]
88+
},
89+
"overrides": [
90+
{
91+
"files": ["**/*.js", "**/*.jsx"],
92+
"rules": {
93+
"react/only-export-components": [
94+
"warn",
95+
{
96+
"allowConstantExport": true
97+
}
98+
]
99+
},
100+
"globals": {
101+
"AsyncDisposableStack": "readonly",
102+
"DisposableStack": "readonly",
103+
"SuppressedError": "readonly"
104+
},
105+
"env": {
106+
"es2026": true,
107+
"browser": true,
108+
"jest": true,
109+
"node": true
110+
}
111+
}
112+
]
113+
}

.prettierrc

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

.yarn/releases/yarn-4.17.1.cjs

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

.yarn/releases/yarn-4.18.0.cjs

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

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ nodeLinker: node-modules
66

77
npmMinimalAgeGate: 0
88

9-
yarnPath: .yarn/releases/yarn-4.17.1.cjs
9+
yarnPath: .yarn/releases/yarn-4.18.0.cjs

0 commit comments

Comments
 (0)