Skip to content

Commit 2451db4

Browse files
authored
Merge pull request Expensify#90837 from Expensify/deprecate-getUrlWithBackToParam
[No QA] Migrate getUrlWithBackToParam from no-restricted-syntax to @deprecated
2 parents ba4a7bd + aae9685 commit 2451db4

3 files changed

Lines changed: 13 additions & 183 deletions

File tree

config/eslint/eslint.config.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,6 @@ const config = defineConfig([
402402
selector: 'CallExpression[callee.object.name="React"][callee.property.name="forwardRef"]',
403403
message: 'forwardRef is deprecated. Please use ref as a prop instead. See: contributingGuides/STYLE.md#forwarding-refs',
404404
},
405-
{
406-
selector: 'CallExpression[callee.name="getUrlWithBackToParam"]',
407-
message:
408-
'Usage of getUrlWithBackToParam function is prohibited. This is legacy code and no new occurrences should be added. Please look into the `How to remove backTo from URL` section in contributingGuides/NAVIGATION.md. and use alternative routing methods instead.',
409-
},
410405
{
411406
selector: 'ImportNamespaceSpecifier[parent.source.value=/^@libs/]',
412407
message: 'Namespace imports from @libs are not allowed. Use named imports instead. Example: import { method } from "@libs/module"',

config/eslint/eslint.seatbelt.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"../../src/Expensify.tsx" "react-hooks/set-state-in-effect" 1
1919
"../../src/GlobalModals.tsx" "no-restricted-syntax" 2
2020
"../../src/ONYXKEYS.ts" "no-restricted-syntax" 2
21+
"../../src/ROUTES.ts" "@typescript-eslint/no-deprecated/getUrlWithBackToParam" 176
2122
"../../src/components/AccountingConnectionConfirmationModal.tsx" "@typescript-eslint/no-deprecated/ConfirmModal" 1
2223
"../../src/components/ActionSheetAwareScrollView/useActionSheetAwareScrollViewRef.ts" "react-hooks/immutability" 1
2324
"../../src/components/ActionSheetAwareScrollView/useActionSheetKeyboardSpacing.ts" "@typescript-eslint/no-deprecated/useScrollViewOffset" 1

0 commit comments

Comments
 (0)