openreachtech / eslint-config-openreachtech

ESLint config by Open Reach Tech inc.
MIT License
0 stars 0 forks source link

🛠 Add rule `no-ts-ignore` #49

Open StewEucen opened 2 years ago

StewEucen commented 2 years ago

Overview

Tasks

StewEucen commented 1 year ago
StewEucen commented 10 months ago
extends:
  - 'plugin:nuxt/recommended'
  - 'plugin:@typescript-eslint/recommended' # <--- ✅
/Users/steweucen/_open-reach-tech/_dev/_cases/brandbuddies-front-affiliates/plugins/apollo.ts
// ↓ ✅
   5:1   error    Do not use "@ts-ignore" because it alters compilation errors  @typescript-eslint/ban-ts-comment
  17:35  warning  Unexpected any. Specify a different type                      @typescript-eslint/no-explicit-any
  21:44  warning  Unexpected any. Specify a different type                      @typescript-eslint/no-explicit-any
  32:60  warning  Unexpected any. Specify a different type                      @typescript-eslint/no-explicit-any

/Users/steweucen/_open-reach-tech/_dev/_cases/brandbuddies-front-affiliates/plugins/route.client.ts
  20:41  warning  Unexpected any. Specify a different type   @typescript-eslint/no-explicit-any
  20:52  warning  Unexpected any. Specify a different type   @typescript-eslint/no-explicit-any
  20:63  warning  Unexpected any. Specify a different type   @typescript-eslint/no-explicit-any
  58:61  warning  'savedPosition' is defined but never used  @typescript-eslint/no-unused-vars

/Users/steweucen/_open-reach-tech/_dev/_cases/brandbuddies-front-affiliates/stores/user.ts
  76:7  error  'user' is never reassigned. Use 'const' instead  prefer-const

/Users/steweucen/_open-reach-tech/_dev/_cases/brandbuddies-front-affiliates/types/Affiliate/product.ts
  15:19  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

/Users/steweucen/_open-reach-tech/_dev/_cases/brandbuddies-front-affiliates/utils/auth.ts
  1:1  error  Do not use "@ts-ignore" because it alters compilation errors  @typescript-eslint/ban-ts-comment

/Users/steweucen/_open-reach-tech/_dev/_cases/brandbuddies-front-affiliates/utils/user.ts
   3:48  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  16:48  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any