Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Labels
Milestone
Description
Repro
<script lang="ts">// ...import {AxiosError }from"axios";// ...const response=awaitthis.$http.post<JwtToken>("authentication_token",{email:this.username,password:this.password},{headers: {authorization:""}}).catch((error:AxiosError)=> {// <-- this line right hereif (error?.response?.status==401) {throw"Login Failed";}throwerror?.message;});// ...
Expected Result
Should pass es-lint fine
Actual Result
Itsometimes passes es-lint, appears to do it on first pass, but fails on subsequent passes when runningnpm run serve
.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 2.18.0 |
@typescript-eslint/parser | 2.18.0 |
TypeScript | 3.7.5 |
ESLint | 6.8.0 |
node | 12.14.1 |
npm | 6.13.6 |