🎨chore: 使用 oxlint, oxfmt&格式化代码

This commit is contained in:
2026-02-08 21:16:25 +08:00
parent 9d35c6a9d8
commit 3a801ba016
78 changed files with 3367 additions and 1468 deletions

179
pnpm-lock.yaml generated
View File

@@ -117,6 +117,12 @@ importers:
dayjs-nuxt:
specifier: ^2.1.9
version: 2.1.9(magicast@0.3.4)(rollup@4.19.1)
oxfmt:
specifier: ^0.28.0
version: 0.28.0
oxlint:
specifier: ^1.43.0
version: 1.43.0
sass:
specifier: ^1.77.8
version: 1.77.8
@@ -1518,6 +1524,86 @@ packages:
'@nuxtjs/tailwindcss@6.12.2':
resolution: {integrity: sha512-qPJiFH67CkTj/2kBGBzqXihOD1rQXMsbVS4vdQvfBxOBLPfGhU1yw7AATdhPl2BBjO2krjJLuZj39t7dnDYOwg==}
'@oxfmt/darwin-arm64@0.28.0':
resolution: {integrity: sha512-jmUfF7cNJPw57bEK7sMIqrYRgn4LH428tSgtgLTCtjuGuu1ShREyrkeB7y8HtkXRfhBs4lVY+HMLhqElJvZ6ww==}
cpu: [arm64]
os: [darwin]
'@oxfmt/darwin-x64@0.28.0':
resolution: {integrity: sha512-S6vlV8S7jbjzJOSjfVg2CimUC0r7/aHDLdUm/3+/B/SU/s1jV7ivqWkMv1/8EB43d1BBwT9JQ60ZMTkBqeXSFA==}
cpu: [x64]
os: [darwin]
'@oxfmt/linux-arm64-gnu@0.28.0':
resolution: {integrity: sha512-TfJkMZjePbLiskmxFXVAbGI/OZtD+y+fwS0wyW8O6DWG0ARTf0AipY9zGwGoOdpFuXOJceXvN4SHGLbYNDMY4Q==}
cpu: [arm64]
os: [linux]
'@oxfmt/linux-arm64-musl@0.28.0':
resolution: {integrity: sha512-7fyQUdW203v4WWGr1T3jwTz4L7KX9y5DeATryQ6fLT6QQp9GEuct8/k0lYhd+ys42iTV/IkJF20e3YkfSOOILg==}
cpu: [arm64]
os: [linux]
'@oxfmt/linux-x64-gnu@0.28.0':
resolution: {integrity: sha512-sRKqAvEonuz0qr1X1ncUZceOBJerKzkO2gZIZmosvy/JmqyffpIFL3OE2tqacFkeDhrC+dNYQpusO8zsfHo3pw==}
cpu: [x64]
os: [linux]
'@oxfmt/linux-x64-musl@0.28.0':
resolution: {integrity: sha512-fW6czbXutX/tdQe8j4nSIgkUox9RXqjyxwyWXUDItpoDkoXllq17qbD7GVc0whrEhYQC6hFE1UEAcDypLJoSzw==}
cpu: [x64]
os: [linux]
'@oxfmt/win32-arm64@0.28.0':
resolution: {integrity: sha512-D/HDeQBAQRjTbD9OLV6kRDcStrIfO+JsUODDCdGmhRfNX8LPCx95GpfyybpZfn3wVF8Jq/yjPXV1xLkQ+s7RcA==}
cpu: [arm64]
os: [win32]
'@oxfmt/win32-x64@0.28.0':
resolution: {integrity: sha512-4+S2j4OxOIyo8dz5osm5dZuL0yVmxXvtmNdHB5xyGwAWVvyWNvf7tCaQD7w2fdSsAXQLOvK7KFQrHFe33nJUCA==}
cpu: [x64]
os: [win32]
'@oxlint/darwin-arm64@1.43.0':
resolution: {integrity: sha512-C/GhObv/pQZg34NOzB6Mk8x0wc9AKj8fXzJF8ZRKTsBPyHusC6AZ6bba0QG0TUufw1KWuD0j++oebQfWeiFXNw==}
cpu: [arm64]
os: [darwin]
'@oxlint/darwin-x64@1.43.0':
resolution: {integrity: sha512-4NjfUtEEH8ewRQ2KlZGmm6DyrvypMdHwBnQT92vD0dLScNOQzr0V9O8Ua4IWXdeCNl/XMVhAV3h4/3YEYern5A==}
cpu: [x64]
os: [darwin]
'@oxlint/linux-arm64-gnu@1.43.0':
resolution: {integrity: sha512-75tf1HvwdZ3ebk83yMbSB+moAEWK98mYqpXiaFAi6Zshie7r+Cx5PLXZFUEqkscenoZ+fcNXakHxfn94V6nf1g==}
cpu: [arm64]
os: [linux]
'@oxlint/linux-arm64-musl@1.43.0':
resolution: {integrity: sha512-BHV4fb36T2p/7bpA9fiJ5ayt7oJbiYX10nklW5arYp4l9/9yG/FQC5J4G1evzbJ/YbipF9UH0vYBAm5xbqGrvw==}
cpu: [arm64]
os: [linux]
'@oxlint/linux-x64-gnu@1.43.0':
resolution: {integrity: sha512-1l3nvnzWWse1YHibzZ4HQXdF/ibfbKZhp9IguElni3bBqEyPEyurzZ0ikWynDxKGXqZa+UNXTFuU1NRVX1RJ3g==}
cpu: [x64]
os: [linux]
'@oxlint/linux-x64-musl@1.43.0':
resolution: {integrity: sha512-+jNYgLGRFTJxJuaSOZJBwlYo5M0TWRw0+3y5MHOL4ArrIdHyCthg6r4RbVWrsR1qUfUE1VSSHQ2bfbC99RXqMg==}
cpu: [x64]
os: [linux]
'@oxlint/win32-arm64@1.43.0':
resolution: {integrity: sha512-dvs1C/HCjCyGTURMagiHprsOvVTT3omDiSzi5Qw0D4QFJ1pEaNlfBhVnOUYgUfS6O7Mcmj4+G+sidRsQcWQ/kA==}
cpu: [arm64]
os: [win32]
'@oxlint/win32-x64@1.43.0':
resolution: {integrity: sha512-bSuItSU8mTSDsvmmLTepTdCL2FkJI6dwt9tot/k0EmiYF+ArRzmsl4lXVLssJNRV5lJEc5IViyTrh7oiwrjUqA==}
cpu: [x64]
os: [win32]
'@parcel/watcher-android-arm64@2.4.1':
resolution: {integrity: sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==}
engines: {node: '>= 10.0.0'}
@@ -4165,6 +4251,21 @@ packages:
resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}
engines: {node: '>= 0.4'}
oxfmt@0.28.0:
resolution: {integrity: sha512-3+hhBqPE6Kp22KfJmnstrZbl+KdOVSEu1V0ABaFIg1rYLtrMgrupx9znnHgHLqKxAVHebjTdiCJDk30CXOt6cw==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
oxlint@1.43.0:
resolution: {integrity: sha512-xiqTCsKZch+R61DPCjyqUVP2MhkQlRRYxLRBeBDi+dtQJ90MOgdcjIktvDCgXz0bgtx94EQzHEndsizZjMX2OA==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
peerDependencies:
oxlint-tsgolint: '>=0.11.2'
peerDependenciesMeta:
oxlint-tsgolint:
optional: true
package-json-from-dist@1.0.0:
resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==}
@@ -5080,6 +5181,10 @@ packages:
resolution: {integrity: sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==}
engines: {node: '>=12.0.0'}
tinypool@2.1.0:
resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==}
engines: {node: ^20.0.0 || >=22.0.0}
tinyrainbow@1.2.0:
resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==}
engines: {node: '>=14.0.0'}
@@ -7460,6 +7565,54 @@ snapshots:
- supports-color
- ts-node
'@oxfmt/darwin-arm64@0.28.0':
optional: true
'@oxfmt/darwin-x64@0.28.0':
optional: true
'@oxfmt/linux-arm64-gnu@0.28.0':
optional: true
'@oxfmt/linux-arm64-musl@0.28.0':
optional: true
'@oxfmt/linux-x64-gnu@0.28.0':
optional: true
'@oxfmt/linux-x64-musl@0.28.0':
optional: true
'@oxfmt/win32-arm64@0.28.0':
optional: true
'@oxfmt/win32-x64@0.28.0':
optional: true
'@oxlint/darwin-arm64@1.43.0':
optional: true
'@oxlint/darwin-x64@1.43.0':
optional: true
'@oxlint/linux-arm64-gnu@1.43.0':
optional: true
'@oxlint/linux-arm64-musl@1.43.0':
optional: true
'@oxlint/linux-x64-gnu@1.43.0':
optional: true
'@oxlint/linux-x64-musl@1.43.0':
optional: true
'@oxlint/win32-arm64@1.43.0':
optional: true
'@oxlint/win32-x64@1.43.0':
optional: true
'@parcel/watcher-android-arm64@2.4.1':
optional: true
@@ -10536,6 +10689,30 @@ snapshots:
object-keys: 1.1.1
safe-push-apply: 1.0.0
oxfmt@0.28.0:
dependencies:
tinypool: 2.1.0
optionalDependencies:
'@oxfmt/darwin-arm64': 0.28.0
'@oxfmt/darwin-x64': 0.28.0
'@oxfmt/linux-arm64-gnu': 0.28.0
'@oxfmt/linux-arm64-musl': 0.28.0
'@oxfmt/linux-x64-gnu': 0.28.0
'@oxfmt/linux-x64-musl': 0.28.0
'@oxfmt/win32-arm64': 0.28.0
'@oxfmt/win32-x64': 0.28.0
oxlint@1.43.0:
optionalDependencies:
'@oxlint/darwin-arm64': 1.43.0
'@oxlint/darwin-x64': 1.43.0
'@oxlint/linux-arm64-gnu': 1.43.0
'@oxlint/linux-arm64-musl': 1.43.0
'@oxlint/linux-x64-gnu': 1.43.0
'@oxlint/linux-x64-musl': 1.43.0
'@oxlint/win32-arm64': 1.43.0
'@oxlint/win32-x64': 1.43.0
package-json-from-dist@1.0.0: {}
package-manager-detector@0.2.8: {}
@@ -11589,6 +11766,8 @@ snapshots:
fdir: 6.4.2(picomatch@4.0.2)
picomatch: 4.0.2
tinypool@2.1.0: {}
tinyrainbow@1.2.0: {}
to-fast-properties@2.0.0: {}