Playground TypeScript ESLint DRANK Playground typescript-eslint.io 2 years ago Related Topics: TypeScript JavaScript arrow_back open_in_new Open page https://typescript-eslint.io/play 1 comments 鹿野 壮 @tonkotsuboy_com 2 years ago ■ 配列の存在チェックindexOf()でなくincludes()を使う ■ 文字列の開始文字チェックindexOf()でなくstartsWith()を使う 一々レビューせず、@typescript-eslintのprefer-includesprefer-string-starts-ends-withをerrorにして、隣人に強制しよう💪 typescript-eslint.io/play/#ts=4.7.2… #JavaScript https://t.co/J2zk6DY1b6
鹿野 壮 @tonkotsuboy_com 2 years ago ■ 配列の存在チェックindexOf()でなくincludes()を使う ■ 文字列の開始文字チェックindexOf()でなくstartsWith()を使う 一々レビューせず、@typescript-eslintのprefer-includesprefer-string-starts-ends-withをerrorにして、隣人に強制しよう💪 typescript-eslint.io/play/#ts=4.7.2… #JavaScript https://t.co/J2zk6DY1b6
■ 配列の存在チェック
indexOf()でなく
includes()を使う
■ 文字列の開始文字チェック
indexOf()でなく
startsWith()を使う
一々レビューせず、
@typescript-eslintの
prefer-includes
prefer-string-starts-ends-with
をerrorにして、隣人に強制しよう💪
typescript-eslint.io/play/#ts=4.7.2…
#JavaScript https://t.co/J2zk6DY1b6