irc-framework icon indicating copy to clipboard operation
irc-framework copied to clipboard

Add tooling for typescript

Open nemchik opened this issue 3 years ago • 0 comments

  • rename existing babel and eslint configs to cjs file extension
  • use eslint-define-config to ensure valid config
  • only apply typescript specific eslint rules to *.ts files
  • add tsconfig files
    • base file to define how typescript should behave across the project (allows other configs to extend from base)
    • root folder tsconfig to include tooling configs (babel, eslint, webpack)
    • individual tsconfig files inside examples, src, and test folders to allow scoping projects
  • add new package scripts to emit typescript declarations and lint by confirming tsc can build
  • upgrade babel and eslint dependencies
  • upgrade compression-webpack-plugin to 9.2.0 which includes typescript definitions (a later version is available, but it changes the minimum supported version of Node)
  • convert webpack config to typescript
  • apply fixes from eslint using yarn lint:eslint --fix
  • add .editorconfig

nemchik avatar Jun 08 '22 19:06 nemchik