From 1a86a2b2ff042b066743210212ece812f6d3a519 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Wed, 25 Dec 2024 21:39:33 +0100 Subject: [PATCH] chore: update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 171c24e..3c81568 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,9 @@ export default defineConfig({ The most important variable your service worker will have access to is `__assets`, which contains all routes and public assets that Astro includes in your build. Additionally, you will also get `__prefix` and `__version` you can use for naming & invalidating your Cache storage (useful for debugging purposes). -## eslint globals +## `eslint` globals -Because of the injected variables not being defined in your script, you might get `eslint` errors for the undefined variables when you have the `no-undef` rule. You can use our exported `globals` object in your eslint config as follows: +Because of the injected variables not being defined in your script, you might get `eslint` errors for the undefined variables when you have the `no-undef` rule. To prevent this, you can use our exported `globals` object in your eslint config as follows: ```js import astroSwGlobals from "@ayco/astro-sw/globals";