From 3fe7dca57df8eaadda4185bfe6170b6733aebddc Mon Sep 17 00:00:00 2001 From: Stan Duprey Date: Tue, 26 Jul 2022 11:15:29 -0700 Subject: [PATCH] 5101: Removed @typescript-eslint/ plugin name in eslint-disable-next-line statement to be compatible with js files too (#6037) * 5101: Removed @typescript-eslint/ plugin name in eslint-disable-next-line statement to be compatible with js files too * Update packages/create-redwood-app/template/api/src/lib/auth.ts Co-authored-by: Dominic Saadi Co-authored-by: Stanislas Duprey Co-authored-by: Dominic Saadi --- packages/create-redwood-app/template/api/src/lib/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-redwood-app/template/api/src/lib/auth.ts b/packages/create-redwood-app/template/api/src/lib/auth.ts index 276427c4c9f2..f98fe93a960c 100644 --- a/packages/create-redwood-app/template/api/src/lib/auth.ts +++ b/packages/create-redwood-app/template/api/src/lib/auth.ts @@ -19,7 +19,7 @@ export const hasRole = ({ roles }) => { // in ./api/src/directives/requireAuth // Roles are passed in by the requireAuth directive if you have auth setup -// eslint-disable-next-line @typescript-eslint/no-unused-vars +// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars export const requireAuth = ({ roles }) => { return isAuthenticated() }