Skip to content

Commit 0bba9c5

Browse files
ShadowCat567Vieltojarvi
andauthored
Changed name of eslint-plugin-amplify-backend-rules so it is now scoped (#2714)
* update lint rule package to be in amplify scope * changeset * changed changeset --------- Co-authored-by: Vieltojarvi <[email protected]>
1 parent 03745bb commit 0bba9c5

23 files changed

+51
-49
lines changed

.changeset/empty-rooms-taste.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.eslintrc.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
extends: [
88
'eslint:recommended',
99
'plugin:@typescript-eslint/recommended',
10-
'plugin:amplify-backend-rules/recommended',
10+
'plugin:@aws-amplify/amplify-backend-rules/recommended',
1111
'plugin:jsdoc/recommended-typescript-error',
1212
'plugin:promise/recommended',
1313
'prettier',
@@ -30,7 +30,7 @@ module.exports = {
3030
},
3131
plugins: [
3232
'@typescript-eslint',
33-
'amplify-backend-rules',
33+
'@aws-amplify/amplify-backend-rules',
3434
'unicorn',
3535
'jsdoc',
3636
'import',

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"devDependencies": {
5858
"@actions/core": "^1.10.1",
5959
"@actions/github": "^6.0.0",
60+
"@aws-amplify/eslint-plugin-amplify-backend-rules": "^0.0.2",
6061
"@aws-sdk/client-amplify": "^3.750.0",
6162
"@aws-sdk/client-cloudformation": "^3.750.0",
6263
"@aws-sdk/client-cloudwatch-logs": "^3.750.0",
@@ -80,7 +81,6 @@
8081
"eslint": "^8.38.0",
8182
"eslint-config-prettier": "^8.8.0",
8283
"eslint-config-xo-typescript": "^0.57.0",
83-
"eslint-plugin-amplify-backend-rules": "^0.0.2",
8484
"eslint-plugin-check-file": "^2.6.2",
8585
"eslint-plugin-import": "^2.27.5",
8686
"eslint-plugin-jsdoc": "^50.6.9",

packages/backend-ai/src/conversation/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ export type DefineConversationHandlerFunctionProps = {
199199
export const defineConversationHandlerFunction = (
200200
props: DefineConversationHandlerFunctionProps,
201201
): ConversationHandlerFunctionFactory =>
202-
// eslint-disable-next-line amplify-backend-rules/prefer-amplify-errors
202+
// eslint-disable-next-line @aws-amplify/amplify-backend-rules/prefer-amplify-errors
203203
new DefaultConversationHandlerFunctionFactory(props, new Error().stack);

packages/backend-auth/src/factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class AmplifyAuthFactory implements ConstructFactory<BackendAuth> {
101101
*/
102102
constructor(
103103
private readonly props: AmplifyAuthProps,
104-
// eslint-disable-next-line amplify-backend-rules/prefer-amplify-errors
104+
// eslint-disable-next-line @aws-amplify/amplify-backend-rules/prefer-amplify-errors
105105
private readonly importStack = new Error().stack,
106106
) {
107107
if (AmplifyAuthFactory.factoryCount > 0) {
@@ -263,5 +263,5 @@ const roleNameIsAuthRoleName = (roleName: string): roleName is AuthRoleName => {
263263
export const defineAuth = (
264264
props: AmplifyAuthProps,
265265
): ConstructFactory<BackendAuth> =>
266-
// eslint-disable-next-line amplify-backend-rules/prefer-amplify-errors
266+
// eslint-disable-next-line @aws-amplify/amplify-backend-rules/prefer-amplify-errors
267267
new AmplifyAuthFactory(props, new Error().stack);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"rules": {
33
"no-console": "off",
4-
"amplify-backend-rules/prefer-amplify-errors": "off"
4+
"@aws-amplify/amplify-backend-rules/prefer-amplify-errors": "off"
55
}
66
}

packages/backend-auth/src/reference_factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class AmplifyReferenceAuthFactory
9292
*/
9393
constructor(
9494
private readonly props: AmplifyReferenceAuthProps,
95-
// eslint-disable-next-line amplify-backend-rules/prefer-amplify-errors
95+
// eslint-disable-next-line @aws-amplify/amplify-backend-rules/prefer-amplify-errors
9696
private readonly importStack = new Error().stack,
9797
) {
9898
if (AmplifyAuthFactory.factoryCount > 0) {
@@ -234,7 +234,7 @@ export const referenceAuth = (
234234
): ConstructFactory<BackendReferenceAuth> => {
235235
return new AmplifyReferenceAuthFactory(
236236
props,
237-
// eslint-disable-next-line amplify-backend-rules/prefer-amplify-errors
237+
// eslint-disable-next-line @aws-amplify/amplify-backend-rules/prefer-amplify-errors
238238
new Error().stack,
239239
);
240240
};

packages/backend-function/src/lambda-shims/invoke_ssm_shim.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ setInterval(
1717
try {
1818
// Attempt to log error
1919
console.debug(error);
20-
// eslint-disable-next-line amplify-backend-rules/no-empty-catch
20+
// eslint-disable-next-line @aws-amplify/amplify-backend-rules/no-empty-catch
2121
} catch {
2222
// Do nothing if logging fails
2323
}

packages/create-amplify/src/project_root_validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class ProjectRootValidator {
2222
validate = async (): Promise<void> => {
2323
const testPath = path.resolve(this.projectRoot, 'amplify');
2424
if (this.exists(testPath)) {
25-
// eslint-disable-next-line amplify-backend-rules/prefer-amplify-errors
25+
// eslint-disable-next-line @aws-amplify/amplify-backend-rules/prefer-amplify-errors
2626
throw new Error(
2727
`An amplify directory already exists at ${testPath}. If you are trying to run an Amplify Gen 2 command inside an Amplify Gen 1 project we recommend creating the project in another directory. Learn more about AWS Amplify Gen 2: ${amplifyLearnMoreUrl}`,
2828
);

0 commit comments

Comments
 (0)