You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* You can either select the `manifest.json` file or the zipped extension.
92
92
* Find the extension URL and then open `moz-extension://<extension-id>/test/tests.html` in Firefox.
93
93
94
-
## :mag: Run Linter and Formatter
94
+
## :sparkles: Run Linter and Formatter
95
95
96
96
Build the Docker image, which is a one-time operation:
97
97
98
98
```bash
99
99
$ docker compose build
100
100
```
101
101
102
-
Run the linter:
102
+
### :broom: Run Linter
103
103
104
104
```bash
105
105
$ ./bin/run_eslint.sh src/
@@ -112,14 +112,13 @@ This will run ESLint on the codebase and show any style issues or potential prob
112
112
This project uses [Prettier](https://prettier.io/) to format the code.
113
113
For more information why the linter and formatter are separate, see [this article about ESLint deprecating formatting rules](https://eslint.org/blog/2023/10/deprecating-formatting-rules/).
114
114
115
-
Build the Docker image, which is a one-time operation:
116
-
115
+
To check the code for formatting issues without changing any files, use the `check` mode:
117
116
```bash
118
-
$ docker compose build
117
+
$ MODE="check" ./bin/run_formatter.sh
119
118
```
120
119
121
-
Run the formatter:
120
+
To format the code and fix formatting issues, use the `write` mode:
0 commit comments