Files
coze-studio/frontend/config/eslint-config/.prettierrc.js
T
zgene 6bed393c12
Backend Tests / backend-unit-test (push) Has been cancelled
Backend Tests / benchmark-test (push) Has been cancelled
CI@main / Node.js v22 (ubuntu-latest) (push) Has been cancelled
Thrift Syntax Validation / validate-thrift (push) Has been cancelled
License Check / License Check (push) Has been cancelled
first commit
2026-05-14 13:29:56 +08:00

36 lines
839 B
JavaScript

// 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' },
},
],
};