diff --git a/config/plugins.js b/config/plugins.js index 86aa91df..7877cfa7 100644 --- a/config/plugins.js +++ b/config/plugins.js @@ -50,6 +50,14 @@ module.exports = { // TODO: Remove this override when the rule is more stable. 'unicorn/consistent-function-scoping': 'off', + // TODO: Change the rule default for this. + 'unicorn/expiring-todo-comments': [ + 'error', + { + allowWarningComments: true + } + ], + // TODO: Temporarily disabled as the rule is buggy. 'function-call-argument-newline': 'off', diff --git a/test/open-report.js b/test/open-report.js index f04c70b4..7165e394 100644 --- a/test/open-report.js +++ b/test/open-report.js @@ -21,8 +21,7 @@ test('opens nothing when there are no errors nor warnings', async t => { t.pass(); }); -// TODO: Fix the logic causing this to fail. -test.failing('only opens errors if there are errors and warnings', async t => { +test('only opens errors if there are errors and warnings', async t => { const glob = path.join(__dirname, 'fixtures/open-report/**'); const results = await fn.lintFiles(glob);