From a09343acc5b9442e4f930098d597d269d98198f0 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sat, 11 Apr 2020 18:48:11 +0200 Subject: [PATCH 1/3] Temporarily disable dangerous `unicorn/string-content` --- config/plugins.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/config/plugins.js b/config/plugins.js index f80bd0e6..80f67cba 100644 --- a/config/plugins.js +++ b/config/plugins.js @@ -113,14 +113,6 @@ module.exports = { } } ], - 'unicorn/string-content': [ - 'error', - { - patterns: { - [/\.\.\./.source]: '…' - } - } - ], // The character class sorting is a bit buggy at the moment. 'unicorn/better-regex': [ From 1f1847a0617a99fae425e746b351e95566813e62 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sun, 12 Apr 2020 11:28:16 +0200 Subject: [PATCH 2/3] Revert plugins.js --- config/plugins.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/plugins.js b/config/plugins.js index 80f67cba..f80bd0e6 100644 --- a/config/plugins.js +++ b/config/plugins.js @@ -113,6 +113,14 @@ module.exports = { } } ], + 'unicorn/string-content': [ + 'error', + { + patterns: { + [/\.\.\./.source]: '…' + } + } + ], // The character class sorting is a bit buggy at the moment. 'unicorn/better-regex': [ From 1c648578e6b837eb433f80c865e2e815db53826b Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sun, 12 Apr 2020 11:29:38 +0200 Subject: [PATCH 3/3] Add commented version back --- config/plugins.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/config/plugins.js b/config/plugins.js index f80bd0e6..cd3b0863 100644 --- a/config/plugins.js +++ b/config/plugins.js @@ -113,14 +113,16 @@ module.exports = { } } ], - 'unicorn/string-content': [ - 'error', - { - patterns: { - [/\.\.\./.source]: '…' - } - } - ], + + // TODO: Restore when it becomes safer + // 'unicorn/string-content': [ + // 'error', + // { + // patterns: { + // [/\.\.\./.source]: '…' + // } + // } + // ], // The character class sorting is a bit buggy at the moment. 'unicorn/better-regex': [