mirror of
https://github.com/enso-org/enso.git
synced 2024-12-18 05:21:33 +03:00
ebf4cd5c1f
- Remove unnecessary modules - Remove `ts-plugin-namespace-auto-import` as it was a workaround to use the non-conventional `import *` convention - Remove `esbuild-plugin-copy-directories` as it is unuse - Inline modules that are only ever used once - Inline `project-manager-shim` into `gui2` - it is only used during `gui2`'s dev mode - Inline `content-config` into `client` - Flatten `app/ide-desktop/lib/` to `app/ide-desktop/` - Flatten `app/ide-desktop/lib/dashboard/` to `app/dashboard/` # Important Notes - As mentioned above, all remaining modules have been moved up from `app/ide-desktop/lib/` to `app/ide-desktop/`. It's not ideal but I'd rather hold off on moving them anywhere else before we have a consensus on what should go where. - (That is to say, this may not be the final directory structure - but I figure it's fine to get *something* done so that hopefully the rest of the restructuring is simpler.)
64 lines
1.6 KiB
JavaScript
64 lines
1.6 KiB
JavaScript
/** @file Prettier configuration. */
|
|
// @ts-check
|
|
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
|
|
module.exports = {
|
|
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', 'prettier-plugin-tailwindcss'],
|
|
// This plugin's options
|
|
importOrder: [
|
|
'^react$',
|
|
'',
|
|
'<THIRD_PARTY_MODULES>',
|
|
'',
|
|
'^enso-',
|
|
'',
|
|
'^#[/]assets',
|
|
'',
|
|
'^#[/]App',
|
|
'^#[/]appUtils',
|
|
'^#[/]text',
|
|
'^#[/]reactQueryClient',
|
|
'',
|
|
'^#[/]configurations[/]',
|
|
'',
|
|
'^#[/]data[/]',
|
|
'',
|
|
'^#[/]hooks[/]',
|
|
'',
|
|
'^#[/]providers[/]',
|
|
'',
|
|
'^#[/]events[/]',
|
|
'',
|
|
'^#[/]pages[/]',
|
|
'',
|
|
'^#[/]layouts[/]',
|
|
'',
|
|
'^#[/]components[/]',
|
|
'',
|
|
'^#[/]modals[/]',
|
|
'',
|
|
'^#[/]services[/]',
|
|
'',
|
|
'^#[/]utilities[/]',
|
|
'',
|
|
'^#[/]authentication[/]',
|
|
'',
|
|
'^[.]',
|
|
],
|
|
importOrderParserPlugins: ['typescript', 'jsx', 'importAssertions'],
|
|
importOrderTypeScriptVersion: '5.0.0',
|
|
},
|
|
},
|
|
],
|
|
}
|