17 lines
639 B
JavaScript
17 lines
639 B
JavaScript
// Using a JS file, allowing us to add comments
|
|
module.exports = {
|
|
// This plugins line is mandatory for the plugin to work with pnpm.
|
|
// https://github.com/trivago/prettier-plugin-sort-imports/blob/61d069711008c530f5a41ca4e254781abc5de358/README.md?plain=1#L89-L96
|
|
plugins: ['@trivago/prettier-plugin-sort-imports'],
|
|
endOfLine: 'lf',
|
|
semi: true,
|
|
singleQuote: true,
|
|
tabWidth: 2,
|
|
trailingComma: 'es5',
|
|
arrowParens: 'always',
|
|
importOrder: ['^react$', '^(?!^react$|^@/|^[./]).*', '^@/(.*)$', '^[./]'],
|
|
importOrderSeparation: true,
|
|
importOrderSortSpecifiers: true,
|
|
importOrderParserPlugins: ['jsx', 'typescript'],
|
|
};
|