From da359c9c95d86988126d16da4df8c17e70188907 Mon Sep 17 00:00:00 2001 From: Hangjit Rai Date: Mon, 8 Jul 2024 16:16:05 +1000 Subject: [PATCH] ESLINT Cleanup --- .husky/prepare-commit-msg | 7 +++++++ package.json | 4 ++-- src/acronym-constants.js | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index af7f4fd..823191a 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,11 @@ #!/bin/bash + +# Bash sets the BASH environment variable, so if it is not set, then we +# are running in a different shell, so manually run ourselves in BASH. +if [ -z "${BASH:-}" ]; then + exec bash "$0" "$@" +fi + # Include any branches for which you wish to disable this script if [ -z "$BRANCHES_TO_SKIP" ]; then BRANCHES_TO_SKIP=(master develop staging test) diff --git a/package.json b/package.json index fe17265..c3edb12 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "web": "nodemon app.js", "test": "yarn jest", "test-watch": "yarn jest --watch test/", - "lint": "eslint .", - "lint-fix": "eslint --fix .", + "lint": "yarn eslint .", + "lint-fix": "yarn eslint --fix .", "update-version:chrome": "yarn dot-json distribution/manifest_v3.json version $VER && cd distribution && mv manifest_v3.json manifest.json", "update-version:firefox": "yarn dot-json distribution/manifest_v2.json version $VER && cd distribution && mv manifest_v2.json manifest.json", "release:firefox": "cd distribution && yarn web-ext-submit", diff --git a/src/acronym-constants.js b/src/acronym-constants.js index 5defcab..32eb594 100644 --- a/src/acronym-constants.js +++ b/src/acronym-constants.js @@ -479,6 +479,8 @@ let localAcronyms = [ 'AIM', 'AB', 'ABv2', + 'CX', + 'PX', ]; export const acronyms = commonAcronyms.concat(