mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 06:01:05 +08:00
61 lines
1.3 KiB
JavaScript
61 lines
1.3 KiB
JavaScript
export default {
|
|
printWidth: 100,
|
|
tabWidth: 2,
|
|
bracketSpacing: true,
|
|
trailingComma: 'es5',
|
|
singleQuote: true,
|
|
arrowParens: 'always',
|
|
|
|
overrides: [
|
|
{
|
|
files: '*.html',
|
|
options: { parser: 'babel' },
|
|
},
|
|
{
|
|
files: '*.component.html',
|
|
options: { parser: 'angular' },
|
|
},
|
|
{
|
|
files: ['**/frameworks/angular/src/**/*.ts', '**/frameworks/angular/template/**/*.ts'],
|
|
options: { parser: 'babel-ts' },
|
|
},
|
|
{
|
|
files: ['*.md', '*.mdx'],
|
|
options: {
|
|
importOrderSeparation: false,
|
|
importOrderSortSpecifiers: false,
|
|
},
|
|
},
|
|
],
|
|
plugins: [
|
|
'@trivago/prettier-plugin-sort-imports',
|
|
'prettier-plugin-brace-style',
|
|
'prettier-plugin-curly',
|
|
'prettier-plugin-jsdoc',
|
|
'prettier-plugin-css-order',
|
|
'prettier-plugin-merge',
|
|
],
|
|
|
|
// @trivago/prettier-plugin-sort-imports
|
|
importOrder: [
|
|
'^node:',
|
|
'^(vitest|@testing-library)',
|
|
'^react(-dom(/client)?(/server)?)?$',
|
|
'^storybook/internal',
|
|
'^@storybook/[^-]*$',
|
|
'^@storybook/(?!addon-)(.*)$',
|
|
'^@storybook/addon-(.*)$',
|
|
'<THIRD_PARTY_MODULES>',
|
|
'^[./]',
|
|
],
|
|
importOrderSeparation: true,
|
|
importOrderSortSpecifiers: true,
|
|
|
|
// prettier-plugin-jsdoc
|
|
jsdocPreferCodeFences: true,
|
|
tsdoc: true,
|
|
|
|
// prettier-plugin-brace-style
|
|
braceStyle: '1tbs',
|
|
};
|