Skip to content

Commit

Permalink
5101: Removed @typescript-eslint/ plugin name in eslint-disable-next-…
Browse files Browse the repository at this point in the history
…line statement to be compatible with js files too (redwoodjs#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 <dominiceliassaadi@gmail.com>

Co-authored-by: Stanislas Duprey <stanislasduprey@Stanislass-MBP.attlocal.net>
Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
  • Loading branch information
3 people authored Jul 26, 2022
1 parent 30b1b28 commit 3fe7dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-redwood-app/template/api/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 3fe7dca

Please sign in to comment.