Skip to content

Commit

Permalink
fix(deps): fix more implicit deps and add linting (#14137)
Browse files Browse the repository at this point in the history
Co-authored-by: ashika112 <[email protected]>
Co-authored-by: ashika112 <[email protected]>
  • Loading branch information
3 people authored Jan 28, 2025
1 parent 8b489d1 commit 22ca811
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 2 deletions.
13 changes: 12 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const compat = new FlatCompat({
const customClientDtsFiles = customClientDtsBundlerConfig.entries
.map(clientBundlerConfig => clientBundlerConfig.outFile)
.filter(outFile => outFile?.length > 0)
.map(outFile => outFile.replace(__dirname + path.sep, '')) // Convert absolute path to relative path
.map(outFile => outFile.replace(__dirname + path.sep, '')); // Convert absolute path to relative path

export default [
{
Expand Down Expand Up @@ -294,4 +294,15 @@ export default [
'jsdoc/no-undefined-types': 1,
},
},
{
ignores: [
'**/**.{native,android,ios}.**',
'**/__tests__/**',
'**/packages/adapter-nextjs/**',
'**/packages/react-native/example/**',
],
rules: {
'import/no-extraneous-dependencies': 'error',
},
},
];
1 change: 1 addition & 0 deletions packages/api-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"devDependencies": {
"@aws-amplify/core": "6.9.2",
"@aws-amplify/react-native": "1.1.6",
"@aws-sdk/types": "3.387.0",
"typescript": "5.0.2"
},
"size-limit": [
Expand Down
6 changes: 6 additions & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
},
"homepage": "https://aws-amplify.github.io/",
"devDependencies": {
"@aws-amplify/core": "6.9.2",
"jest-fetch-mock": "3.0.3",
"typescript": "5.0.2"
},
Expand All @@ -82,6 +83,11 @@
"dependencies": {
"@aws-amplify/api-graphql": "4.7.2",
"@aws-amplify/api-rest": "4.0.67",
"@aws-amplify/data-schema": "^1.7.0",
"rxjs": "^7.8.1",
"tslib": "^2.5.0"
},
"peerDependencies": {
"@aws-amplify/core": "^6.1.0"
}
}
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@aws-sdk/types": "3.398.0",
"@smithy/util-hex-encoding": "2.0.0",
"@types/uuid": "^9.0.0",
"cookie": "^0.7.0",
"js-cookie": "^3.0.5",
"rxjs": "^7.8.1",
"tslib": "^2.5.0",
Expand Down
1 change: 1 addition & 0 deletions packages/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
],
"dependencies": {
"@aws-amplify/api": "6.2.2",
"@aws-amplify/api-graphql": "4.7.2",
"buffer": "4.9.2",
"idb": "5.0.6",
"immer": "9.0.6",
Expand Down
1 change: 1 addition & 0 deletions packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"dependencies": {
"@aws-sdk/client-location": "3.621.0",
"@turf/boolean-clockwise": "6.5.0",
"@aws-sdk/types": "3.398.0",
"camelcase-keys": "6.2.2",
"tslib": "^2.5.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"push-notifications"
],
"dependencies": {
"@aws-sdk/types": "3.398.0",
"lodash": "^4.17.21",
"tslib": "^2.5.0"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/rtn-push-notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,17 @@
"lint:fix": "eslint '**/*.{ts,tsx}' --fix",
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 99"
},
"dependencies": {
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/react-native": "0.70.0",
"react-native": "0.71.0",
"typescript": "5.0.2"
},
"peerDependencies": {
"react-native": ">=0.70"
},
"repository": {
"type": "git",
"url": "https://github.com/aws-amplify/amplify-js.git"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AWSCredentials } from '@aws-amplify/core/internals/utils';
import { expect } from '@jest/globals';
import { type MatcherFunction } from 'expect';

const toBeLastCalledWithConfigAndInput: MatcherFunction<
Expand Down

0 comments on commit 22ca811

Please sign in to comment.