From 1b52f6bea3d178a8f56ec6495f8aebcbb77aefea Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 25 Jul 2022 00:52:43 +0000 Subject: [PATCH] Setup lint for browser and js files --- .eslintrc.json | 9 ++++++--- package.json | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3055747..e6bd099 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,12 @@ { - "globals": {}, + "globals": { + "Qs": "readonly" + }, "env": { "commonjs": true, "es2021": true, - "node": true + "node": true, + "browser": true }, "parser": "@typescript-eslint/parser", "plugins": [ @@ -39,4 +42,4 @@ } ] } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 7484a3a..ca725da 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,9 @@ "eslint --cache --fix", "yarn generate:types", "git add src/payload-types.ts" + ], + "*.js": [ + "eslint --cache --fix" ] } }