Skip to content

Commit

Permalink
docs: add decision on linting the worker script (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito authored Oct 27, 2024
1 parent 9dc2d71 commit 16c7c10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions decisions/linting-worker-script.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Linting the worker script

When linting your application, you may encounter warnings or errors originating from the `mockServiceWorker.js` script. Please refrain from opening pull requests to add the `ignore` pragma comments to the script itself.

## Solution

**Make sure that the worker script is ignored by your linting tools**. The worker script isn't a part of your application's code but a static asset. It must be ignored during linting and prettifying in the same way all your static assets in `/public` are ignored. Please configure your tools respectively.

If there are warnings/errors originating from the worker script, it's likely your public directory is not ignored by your linting tools. You may consider ignoring the entire public directory if that suits your project's conventions.

0 comments on commit 16c7c10

Please sign in to comment.