about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-01-29 20:11:50 -0500
committerGitHub <noreply@github.com>2023-01-30 02:11:50 +0100
commite6192eab9b7d06697ffcf8e19af3bab8187698cf (patch)
tree37f35d48dcca1423e93a4bd59219ca66a2c9c939
parentc49213f0ea311daba590db1d7a14a641cbd9fe93 (diff)
Remove unused ESLint disable directives (#22427)
-rw-r--r--app/javascript/packs/public-path.js2
-rw-r--r--package.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/packs/public-path.js b/app/javascript/packs/public-path.js
index f96109f4f..f4d166a77 100644
--- a/app/javascript/packs/public-path.js
+++ b/app/javascript/packs/public-path.js
@@ -17,5 +17,5 @@ function formatPublicPath(host = '', path = '') {
 
 const cdnHost = document.querySelector('meta[name=cdn-host]');
 
-// eslint-disable-next-line camelcase, no-undef, no-unused-vars
+// eslint-disable-next-line no-undef
 __webpack_public_path__ = formatPublicPath(cdnHost ? cdnHost.content : '', process.env.PUBLIC_OUTPUT_PATH);
diff --git a/package.json b/package.json
index e55588c06..a69803437 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
     "start": "node ./streaming/index.js",
     "test": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:jest",
     "test:lint": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:lint:sass",
-    "test:lint:js": "eslint --ext=js . --cache",
+    "test:lint:js": "eslint --ext=js . --cache --report-unused-disable-directives",
     "test:lint:sass": "stylelint \"**/*.{css,scss}\"",
     "test:jest": "cross-env NODE_ENV=test jest",
     "format": "prettier --write \"**/*.{json,yml}\"",