ESLint error from the installed config/auth.ts file #4716
gregmsanderson
started this conversation in
General
Replies: 1 comment
-
Thanks for reporting it. It has been fixed in this commit and will be part of next release. adonisjs/presets@d15e72f |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
A tiny thing which but out of interest I just tried the steps on https://adonisjs.com/blog/upgrading-eslint-typescript-setup to upgrade ESLint. That worked :) However when running the lint command I noticed an error:
That
config/auth.ts
is the default file created when opting to use access tokens as the guard.That file appears to have been generated from this:
https://github.com/adonisjs/presets/blob/b8a44f09332136c1e428ab43d6588982c41467c6/src/auth/stubs/config/access_tokens_with_lucid.stub#L27
Of course the ESLint error can be disabled with:
... but it would perhaps be better to fix it. It looks to be caused by
Authenticators
being used twice. Are other people getting that? Ignoring it?Beta Was this translation helpful? Give feedback.
All reactions