From 4d295c9b5d944d58426ccb402e417093ff899120 Mon Sep 17 00:00:00 2001 From: Splines Date: Tue, 20 Feb 2024 12:25:47 +0100 Subject: [PATCH 1/2] Don't report unused disable directive (ESLint) --- eslint.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index f037398b8..38122f670 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -82,5 +82,9 @@ export default [ ...globals.node, }, }, + linterOptions: { + // see https://github.com/Splines/eslint-plugin-erb/releases/tag/v2.0.1 + reportUnusedDisableDirectives: "off", + }, }, ]; From 77431cb30366b526e02ab8328578fd75a13ababd Mon Sep 17 00:00:00 2001 From: Splines Date: Tue, 20 Feb 2024 12:27:29 +0100 Subject: [PATCH 2/2] Upgrade eslint-plugin-erb to v2.0.1 --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index b58fa340d..dd7907d62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3237,9 +3237,9 @@ escape-string-regexp@^4.0.0: integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== eslint-plugin-erb@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-erb/-/eslint-plugin-erb-2.0.0.tgz#34ef70ff7f04987f3f385a5d498ce4992b504bb7" - integrity sha512-yLfDeaVjY5PzoBR9mk1hRIlOZ/LuzIi8CSZi2DYsRWVY0WIQLRL/D6372OFwhyJomqsnT17V6XRhi6rbeumUhw== + version "2.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-erb/-/eslint-plugin-erb-2.0.1.tgz#ed4b98e2c06221510ff46e43743236a11c0d2a71" + integrity sha512-d0vvv0QNH2MGl69ey89hAKtrfllgB7gSVU85q+eb+/u5OmbUuOtE1QttBZbIoGFnBoDIiTYl+bXaPbqWKB/r5w== eslint-scope@^4.0.3: version "4.0.3"