browsertrix/frontend
Emma Segal-Grossman b15c5ccddd
ESLint & Typescript fixes (#1407)
Closes #1405

- Properly uses `typescript-eslint`: we were missing the preset from it,
so some of the default `eslint` rules (that don't properly work with
typescript) were being applied and causing false positives
- I also moved the `eslint` config into its own file, and enabled
`typescript-eslint`'s type-awareness, so that we can enable more
type-aware rules in the future if we like
- Adds `ts-lit-plugin` to the typescript config, which _hopefully_ will
allow us to catch issues during build (in CI)
- It looks like `ts-lit-plugin` is sort of abandonware at the moment,
and unfortunately _doesn't_ actually work for this purpose right now,
but the lit team is working on a replacement here:
https://www.npmjs.com/package/@lit-labs/analyzer
- Adds `fork-ts-checker-webpack-plugin`, which allows the typescript
checking process to be run on a separate forked thread in Webpack, which
can help speed up builds & checking
- Enables incremental type checking for better speed
- Fixes a whole bunch of `eslint`-auto-fixable issues (unused imports
and variables, some type issues, etc)
- Fixes a bunch of `lit-analyzer` issues (mostly attribute naming, some
type issues as well)
- Fixes various other type issues:
- Improves type safety in a bunch of places, notably anywhere `apiFetch`
and `APIPaginatedList` are used
  - Removes some `any`s
2023-11-24 12:32:53 -05:00
..
.husky
assets
config ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
scripts
src ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
tests
xliff revert changes from i18n (will address elsewhere) 2023-11-13 19:36:03 -05:00
.dockerignore
.editorconfig
.eslintrc.js ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
.gitignore
.prettierignore
.vscode add vscode config symlink in frontend dir 2023-11-20 16:56:48 -05:00
00-browsertrix-nginx-init.sh fix(build): use /usr/bin/env bash instead of /bin/bash (#1020) 2023-07-28 21:50:04 -07:00
Dockerfile supports overriding the replayweb.page version without having to be r… (#1122) 2023-09-05 20:10:21 -04:00
frontend.conf.template Passthrough X-Forwarded-Proto header in frontend nginx (#1226) 2023-09-28 10:58:57 -07:00
index.d.ts Frontend collections beta UI (#886) 2023-06-06 17:52:01 -07:00
lit-localize.json
minio.conf
package.json ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
playwright.config.ts
postcss.config.js
README.md Update frontend local dev guide (#1073) 2023-08-15 12:03:39 -07:00
sample.env.local
tailwind.config.js build: fix webpack dev server recompiling without changes 2023-09-19 12:15:58 -07:00
tsconfig.eslint.json ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
tsconfig.json ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
web-test-runner.config.mjs
webpack.config.js ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00
webpack.dev.js build: disable webpack polling for hot reload 2023-09-18 15:14:34 -07:00
webpack.prod.js
yarn.lock ESLint & Typescript fixes (#1407) 2023-11-24 12:32:53 -05:00