fix: Update Newer Imports to Older for Backward Compatibility

Closes #1866
This commit is contained in:
Rajarshee Chatterjee
2025-11-15 09:01:16 +05:30
parent b2e7362b85
commit 78d7a86f42
14 changed files with 280 additions and 256 deletions
+22
View File
@@ -146,6 +146,17 @@ export default tseslint.config(
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'no-case-declarations': 'warn',
'no-undef': 'error',
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['@/lib/fetch*'],
message: 'Use @libs/fetch instead of @/lib/fetch',
},
],
},
],
},
languageOptions: {
ecmaVersion: 5,
@@ -164,6 +175,17 @@ export default tseslint.config(
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/ban-ts-comment': 'off',
'no-undef': 'error',
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['@/lib/fetch*'],
message: 'Use @libs/fetch instead of @/lib/fetch',
},
],
},
],
},
languageOptions: {
globals: {