
添加.oxlintrc.json配置文件以启用oxlint检查,并更新.prettierrc.cjs以支持jsonc文件格式。同时在useUpload.ts中恢复accept参数的默认值。
20 lines
358 B
JavaScript
20 lines
358 B
JavaScript
// @see https://prettier.io/docs/en/options
|
|
module.exports = {
|
|
singleQuote: true,
|
|
printWidth: 100,
|
|
tabWidth: 2,
|
|
useTabs: false,
|
|
semi: false,
|
|
trailingComma: 'all',
|
|
endOfLine: 'auto',
|
|
htmlWhitespaceSensitivity: 'ignore',
|
|
overrides: [
|
|
{
|
|
files: '*.{json,jsonc}',
|
|
options: {
|
|
trailingComma: 'none',
|
|
},
|
|
},
|
|
],
|
|
}
|