Skip to content

The open alternative to Salesforce, designed for AI.

Func style allowing arrow (#461)

Morning1139Angel695ddd7a92c3
diff --git a/front/.eslintrc.js b/front/.eslintrc.js
index d433a16e505..c7808837211 100644
--- a/front/.eslintrc.js
+++ b/front/.eslintrc.js
@@ -46,6 +46,7 @@ module.exports = {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'twenty/sort-css-properties-alphabetically': 'error',
- 'twenty/no-hardcoded-colors': 'error'
+ 'twenty/no-hardcoded-colors': 'error',
+ 'func-style':['error', 'declaration', { 'allowArrowFunctions': true }],
}
};
diff --git a/front/src/modules/hotkeys/hooks/useDirectHotkeys.ts b/front/src/modules/hotkeys/hooks/useDirectHotkeys.ts
index c1223f2664a..c2b76e8dbba 100644
--- a/front/src/modules/hotkeys/hooks/useDirectHotkeys.ts
+++ b/front/src/modules/hotkeys/hooks/useDirectHotkeys.ts
@@ -15,7 +15,7 @@ export function useDirectHotkeys(
) {
const [pendingHotkey, setPendingHotkey] = useRecoilState(pendingHotkeyState);
- const callbackIfDirectKey = function (
+ function callbackIfDirectKey(
keyboardEvent: KeyboardEvent,
hotkeysEvent: Hotkey,
) {
@@ -24,7 +24,7 @@ export function useDirectHotkeys(
return;
}
setPendingHotkey(null);
- };
+ }
useHotkeys(keys, callbackIfDirectKey, dependencies);
}
diff --git a/server/.eslintrc.js b/server/.eslintrc.js
index 1672a34e0ca..495f70b1ee8 100644
--- a/server/.eslintrc.js
+++ b/server/.eslintrc.js
@@ -21,5 +21,6 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
+ 'func-style':['error', 'declaration', { 'allowArrowFunctions': true }],
},
};