mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 23:51:16 +08:00
31 lines
576 B
JavaScript
31 lines
576 B
JavaScript
export default {
|
|
printWidth: 100,
|
|
tabWidth: 2,
|
|
bracketSpacing: true,
|
|
trailingComma: 'es5',
|
|
singleQuote: true,
|
|
overrides: [
|
|
{
|
|
files: '*.html',
|
|
options: { parser: 'babel' },
|
|
},
|
|
{
|
|
files: '*.component.html',
|
|
options: { parser: 'angular' },
|
|
},
|
|
],
|
|
plugins: ['@trivago/prettier-plugin-sort-imports'],
|
|
|
|
importOrder: [
|
|
'^node:',
|
|
'^storybook/internal',
|
|
'^@storybook/(.*)$',
|
|
'<THIRD_PARTY_MODULES>',
|
|
'^[./]',
|
|
],
|
|
importOrderSeparation: true,
|
|
importOrderSortSpecifiers: true,
|
|
|
|
arrowParens: 'always',
|
|
};
|