Open StewEucen opened 2 years ago
no-restricted-syntax
を使えばイケそう。「Comment の中に @ts-ignore
文字列が含まれてるかどうか」をチェックするだけなんで。
「not in 文字列」も判定せんと。
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
Overview
Add rule
no-ts-ignore
.Take over to #169
Tasks
eslint-plugin-openreachtech
repository.