mirror of
https://github.com/enso-org/enso.git
synced 2024-12-18 14:01:37 +03:00
3eb47ac2ba
Closes: enso-org/cloud-v2#1081 Tl;dr: [optional] 1-liner if the context of the change is long Context: This Change: This PR specifies the amount of retries if the request is sent through ReactQuery. Test Plan: Try to reproduce the bug from the issue, see that requests stops after 3 retries.
62 lines
1.5 KiB
JavaScript
62 lines
1.5 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-',
|
|
'',
|
|
'^#[/]App',
|
|
'^#[/]appUtils',
|
|
'^#[/]text',
|
|
'^#[/]reactQueryClient',
|
|
'',
|
|
'^#[/]configurations[/]',
|
|
'',
|
|
'^#[/]data[/]',
|
|
'',
|
|
'^#[/]hooks[/]',
|
|
'',
|
|
'^#[/]providers[/]',
|
|
'',
|
|
'^#[/]events[/]',
|
|
'',
|
|
'^#[/]pages[/]',
|
|
'',
|
|
'^#[/]layouts[/]',
|
|
'',
|
|
'^#[/]components[/]',
|
|
'',
|
|
'^#[/]modals[/]',
|
|
'',
|
|
'^#[/]services[/]',
|
|
'',
|
|
'^#[/]utilities[/]',
|
|
'',
|
|
'^#[/]authentication[/]',
|
|
'',
|
|
'^[.]',
|
|
],
|
|
importOrderParserPlugins: ['typescript', 'jsx', 'importAssertions'],
|
|
importOrderTypeScriptVersion: '5.0.0',
|
|
},
|
|
},
|
|
],
|
|
}
|