From c90493c244ee047d3b5f79b276b5011d2afe990b Mon Sep 17 00:00:00 2001 From: Bertrand Marron Date: Tue, 13 Feb 2024 11:03:45 +0100 Subject: [PATCH] fix: add unicorn/prevent-abbreviations rule --- index.cjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.cjs b/index.cjs index 99f3d74..3f91432 100644 --- a/index.cjs +++ b/index.cjs @@ -88,6 +88,18 @@ module.exports = { 'unicorn/no-array-method-this-argument': 'off', 'unicorn/no-thenable': 'off', + 'unicorn/prevent-abbreviations': [ + 'error', + { + replacements: { + // We don’t want fnSku to be replaced anywhere + fn: false, + // This is ok + i: false, + }, + }, + ], + // Let’s not use ESM yet 'unicorn/prefer-module': 'off',