Learning TypeScript sounded like a good idea, so, here’s some TypeScript. I configured Webpack with @babel/preset-typescript which ignores all types, since that’s faster and less complicated. So you’ll want these useful commands (although you can skip them for testing and it’ll just act like JavaScript):
tsc
check types (after yarn global add typescript)
eslint . --ext js,ts
run linter, which now also checks for missing types (after yarn global add eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser)
Learning TypeScript sounded like a good idea, so, here’s some TypeScript. I configured Webpack with
@babel/preset-typescript
which ignores all types, since that’s faster and less complicated. So you’ll want these useful commands (although you can skip them for testing and it’ll just act like JavaScript):tsc
check types (afteryarn global add typescript
)eslint . --ext js,ts
run linter, which now also checks for missing types (afteryarn global add eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser
)Everything else should be the same.