mitmproxy/web
Maximilian Hils f211ca91be
Adopt ESLint (#7008)
* adopt eslint

* `eslint --fix`

* optimize imports

* make eslint happy, upgrade some legacy react code

* more eslint fixes

* const indentation

* enforce typescript only

* [autofix.ci] apply automated fixes

* remove no-case-declarations

* better exhaustiveness checking

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-09 11:06:05 +02:00
..
gen Update ruff requirement from <=0.4.7,>=0.4.1 to <=0.5.0,>=0.5.0 (#6990) 2024-07-02 12:07:47 +02:00
src Adopt ESLint (#7008) 2024-07-09 11:06:05 +02:00
.editorconfig
.prettierignore
eslint.config.mjs Adopt ESLint (#7008) 2024-07-09 11:06:05 +02:00
gulpfile.js Adopt ESLint (#7008) 2024-07-09 11:06:05 +02:00
jest.config.js
package-lock.json Adopt ESLint (#7008) 2024-07-09 11:06:05 +02:00
package.json Adopt ESLint (#7008) 2024-07-09 11:06:05 +02:00
README.md
tsconfig.json web: Upgrade Redux (#6926) 2024-06-14 00:27:33 +02:00

Quick Start

  • Install mitmproxy as described in ../CONTRIBUTING.md
  • Run node --version to make sure that you have at least Node.js 18 or above. If you are on Ubuntu <= 22.04, you need to upgrade.
  • Run cd mitmproxy/web to change to the directory with package.json
  • Run npm install to install dependencies
  • Run npm start to start live-compilation
  • Run mitmweb after activating your Python virtualenv (see ../CONTRIBUTING.md).

Testing

  • Run npm test to run the test suite.

Code formatting

Architecture

There are two components:

Contributing

We very much appreciate any (small) improvements to mitmweb. Please do not include the compiled assets in mitmproxy/tools/web/static in your pull request. Refreshing them on every commit would massively increase repository size. We will update these files before every release.

Developer Tools