From 9b8f01716774a960073e944823ab727cc867a8f6 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Wed, 26 Jul 2023 06:29:03 -0600 Subject: chore: improve lint setup (#397) - update eslint config to closely mirror the ones from ferdium-app - add .eslintignore - opt in to eslint `reportUnusedDisableDirectives` config option - remove `trailingComma: all` from `prettier` config which is default in `prettier` v3 - autofix or disable a lot of lint issues throughout codebase - add `volta` configuration to `package.json` to autoload correct `node` and `pnpm` versions - upgrade all `eslint` and `prettier` related dependencies to latest - update lint:fix npm script - reformat touched files with prettier - bumped up minor version for all recipes that have changes - introduced injection of 'service.css' where it was missing in many recipes --------- Co-authored-by: Vijay A --- recipes/google-groups/package.json | 2 +- recipes/google-groups/webview.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'recipes/google-groups') diff --git a/recipes/google-groups/package.json b/recipes/google-groups/package.json index f1ff58d..38c3470 100644 --- a/recipes/google-groups/package.json +++ b/recipes/google-groups/package.json @@ -1,7 +1,7 @@ { "id": "google-groups", "name": "Google Groups", - "version": "1.0.1", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://groups.google.com/u/0/" diff --git a/recipes/google-groups/webview.js b/recipes/google-groups/webview.js index 7006eef..c13334a 100644 --- a/recipes/google-groups/webview.js +++ b/recipes/google-groups/webview.js @@ -1,15 +1,17 @@ -const _path = _interopRequireDefault(require('path')); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +const _path = _interopRequireDefault(require('path')); + module.exports = Ferdium => { const getMessages = () => { let countImportant = 0; const unReadConversationCount = document.querySelectorAll('.NHlkZc'); if (unReadConversationCount.length > 0) { - countImportant = Ferdium.safeParseInt(unReadConversationCount[0].textContent); + countImportant = Ferdium.safeParseInt( + unReadConversationCount[0].textContent, + ); } Ferdium.setBadge(countImportant, 0); }; -- cgit v1.2.3-54-g00ecf