feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
35
frontend/config/eslint-config/.prettierrc.js
Normal file
35
frontend/config/eslint-config/.prettierrc.js
Normal 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' },
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user