From f427557acc33599c27bf16fa058a93f34d23e1fc Mon Sep 17 00:00:00 2001 From: thewalla07 Date: Sun, 10 Nov 2019 18:30:20 +0000 Subject: [PATCH] Test: no-unused-disable for capitalized-comments Adding a test to verify if this rule is working for capitalized-comments. I could not replicate the issue locally on linux where earlier in the week I could on windows. Refs #34 and eslint/eslint#12548 --- tests/lib/rules/no-unused-disable.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/lib/rules/no-unused-disable.js b/tests/lib/rules/no-unused-disable.js index 807c8fb..50c5ca3 100644 --- a/tests/lib/rules/no-unused-disable.js +++ b/tests/lib/rules/no-unused-disable.js @@ -133,6 +133,12 @@ function baz() { var foo = 3 //eslint-disable-line no-shadow } `, + ` + /* eslint capitalized-comments: ["error"] */\n// eslint-disable-next-line capitalized-comments\n// lowercase comment\n + `, + ` + /* eslint capitalized-comments: ["error"] */\r\n// eslint-disable-next-line capitalized-comments\r\n/* lowercase comment */\r\n + `, ]) { it(code, () => runESLint(code).then(messages => {