mirror of
https://github.com/enso-org/enso.git
synced 2024-12-18 18:21:39 +03:00
8597de1d43
- Significantly flattens directory structure of `lib/dashboard/` # Important Notes - Basic testing done on: - dashboard's `npm run dev` which (since quite recently) uses Vite. - specifically: `npm run dev` in `app/ide-desktop/lib/dashboard`, OR `npm run dashboard:dev` in `app/ide-desktop` - dashboard's bundle script (`npm run build`) which uses ESBuild. - GUI2's own entry point (GUI2's `npm run dev`). - `./run ide build` - `./run ide watch` - `./run ide2 build` - `./run gui watch`
37 lines
1.2 KiB
JavaScript
37 lines
1.2 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: 4,
|
|
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',
|
|
},
|
|
},
|
|
],
|
|
}
|