2024-01-10 19:22:11 +03:00
|
|
|
/** @file Prettier configuration. */
|
|
|
|
// @ts-check
|
|
|
|
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
|
|
|
|
module.exports = {
|
2024-01-23 00:26:15 +03:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.[j|t]s', '*.[j|t]sx', '*.m[j|t]s', '*.c[j|t]s'],
|
|
|
|
options: {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
|
|
printWidth: 100,
|
|
|
|
tabWidth: 2,
|
|
|
|
semi: false,
|
|
|
|
singleQuote: true,
|
|
|
|
trailingComma: 'es5',
|
|
|
|
arrowParens: 'avoid',
|
|
|
|
plugins: ['@ianvs/prettier-plugin-sort-imports'],
|
|
|
|
// This plugin's options
|
|
|
|
importOrder: [
|
|
|
|
'^react$',
|
|
|
|
'',
|
|
|
|
'<THIRD_PARTY_MODULES>',
|
|
|
|
'',
|
|
|
|
'^enso-',
|
|
|
|
'',
|
|
|
|
'^#[/](?!components[/]).*$',
|
|
|
|
'',
|
|
|
|
'^#[/]components[/]',
|
|
|
|
'',
|
|
|
|
'^[.]',
|
|
|
|
],
|
|
|
|
importOrderParserPlugins: ['typescript', 'jsx', 'importAssertions'],
|
|
|
|
importOrderTypeScriptVersion: '5.0.0',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2024-01-10 19:22:11 +03:00
|
|
|
}
|