es-toolkit/.prettierrc.cjs
Dayong Lee 23aa7db57d
style(format): add sorting imports plugin and fix eslint config (#625)
* Add prettier sort

* Fix prettier setting in eslint

* Apply prettier

* Fix depdencies

* Add .yarn folder in excludes of vitest

* Revert pick I don't know why this is changed
2024-10-01 14:00:45 +09:00

19 lines
528 B
JavaScript

module.exports = {
arrowParens: 'avoid',
bracketSameLine: false,
bracketSpacing: true,
endOfLine: 'lf',
jsxSingleQuote: false,
printWidth: 120,
proseWrap: 'preserve',
quoteProps: 'as-needed',
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
plugins: [require.resolve('@trivago/prettier-plugin-sort-imports')],
importOrder: ['^vitest', '^es-toolkit', '<THIRD_PARTY_MODULES>', '^@(.*)$', '^[.]/', '^[.]{2,}/'],
importOrderSortSpecifiers: true,
importOrderCaseInsensitive: true,
};