feat: manually mirror opencoze's code from bytedance

Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
fanlv
2025-07-20 17:36:12 +08:00
commit 890153324f
14811 changed files with 1923430 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
// Documentation for this file: https://prettier.io/docs/en/options.html
module.exports = {
// We use a larger print width because Prettier's word-wrapping seems to be tuned
// for plain JavaScript without type annotations
printWidth: 80,
// Use .gitattributes to manage newlines
endOfLine: 'auto',
semi: true,
plugins: [require.resolve('prettier-plugin-packagejson')],
tabWidth: 2,
useTabs: false,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
overrides: [
{
files: '.prettierrc',
options: { parser: 'json', trailingComma: 'none' },
},
{
files: '.babelrc',
options: { parser: 'json', trailingComma: 'none' },
},
{
files: '*.json',
options: { trailingComma: 'none' },
},
],
};