Skip to content

Commit 22ca811

Browse files
pranavosuashika112
andauthored
fix(deps): fix more implicit deps and add linting (#14137)
Co-authored-by: ashika112 <[email protected]> Co-authored-by: ashika112 <[email protected]>
1 parent 8b489d1 commit 22ca811

File tree

9 files changed

+30
-2
lines changed

9 files changed

+30
-2
lines changed

eslint.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const compat = new FlatCompat({
2424
const customClientDtsFiles = customClientDtsBundlerConfig.entries
2525
.map(clientBundlerConfig => clientBundlerConfig.outFile)
2626
.filter(outFile => outFile?.length > 0)
27-
.map(outFile => outFile.replace(__dirname + path.sep, '')) // Convert absolute path to relative path
27+
.map(outFile => outFile.replace(__dirname + path.sep, '')); // Convert absolute path to relative path
2828

2929
export default [
3030
{
@@ -294,4 +294,15 @@ export default [
294294
'jsdoc/no-undefined-types': 1,
295295
},
296296
},
297+
{
298+
ignores: [
299+
'**/**.{native,android,ios}.**',
300+
'**/__tests__/**',
301+
'**/packages/adapter-nextjs/**',
302+
'**/packages/react-native/example/**',
303+
],
304+
rules: {
305+
'import/no-extraneous-dependencies': 'error',
306+
},
307+
},
297308
];

packages/api-rest/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"devDependencies": {
9090
"@aws-amplify/core": "6.9.2",
9191
"@aws-amplify/react-native": "1.1.6",
92+
"@aws-sdk/types": "3.387.0",
9293
"typescript": "5.0.2"
9394
},
9495
"size-limit": [

packages/api/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
},
6969
"homepage": "https://aws-amplify.github.io/",
7070
"devDependencies": {
71+
"@aws-amplify/core": "6.9.2",
7172
"jest-fetch-mock": "3.0.3",
7273
"typescript": "5.0.2"
7374
},
@@ -82,6 +83,11 @@
8283
"dependencies": {
8384
"@aws-amplify/api-graphql": "4.7.2",
8485
"@aws-amplify/api-rest": "4.0.67",
86+
"@aws-amplify/data-schema": "^1.7.0",
87+
"rxjs": "^7.8.1",
8588
"tslib": "^2.5.0"
89+
},
90+
"peerDependencies": {
91+
"@aws-amplify/core": "^6.1.0"
8692
}
8793
}

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@aws-sdk/types": "3.398.0",
5555
"@smithy/util-hex-encoding": "2.0.0",
5656
"@types/uuid": "^9.0.0",
57+
"cookie": "^0.7.0",
5758
"js-cookie": "^3.0.5",
5859
"rxjs": "^7.8.1",
5960
"tslib": "^2.5.0",

packages/datastore/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
],
4646
"dependencies": {
4747
"@aws-amplify/api": "6.2.2",
48+
"@aws-amplify/api-graphql": "4.7.2",
4849
"buffer": "4.9.2",
4950
"idb": "5.0.6",
5051
"immer": "9.0.6",

packages/geo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"dependencies": {
7070
"@aws-sdk/client-location": "3.621.0",
7171
"@turf/boolean-clockwise": "6.5.0",
72+
"@aws-sdk/types": "3.398.0",
7273
"camelcase-keys": "6.2.2",
7374
"tslib": "^2.5.0"
7475
},

packages/notifications/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"push-notifications"
9292
],
9393
"dependencies": {
94+
"@aws-sdk/types": "3.398.0",
9495
"lodash": "^4.17.21",
9596
"tslib": "^2.5.0"
9697
},

packages/rtn-push-notification/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@
2323
"lint:fix": "eslint '**/*.{ts,tsx}' --fix",
2424
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 99"
2525
},
26+
"dependencies": {
27+
"lodash": "^4.17.21"
28+
},
2629
"devDependencies": {
2730
"@types/react-native": "0.70.0",
31+
"react-native": "0.71.0",
2832
"typescript": "5.0.2"
2933
},
34+
"peerDependencies": {
35+
"react-native": ">=0.70"
36+
},
3037
"repository": {
3138
"type": "git",
3239
"url": "https://github.com/aws-amplify/amplify-js.git"

packages/storage/__tests__/providers/s3/apis/internal/testUtils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { AWSCredentials } from '@aws-amplify/core/internals/utils';
2-
import { expect } from '@jest/globals';
32
import { type MatcherFunction } from 'expect';
43

54
const toBeLastCalledWithConfigAndInput: MatcherFunction<

0 commit comments

Comments
 (0)