From 934a45d383f77dc5f2f571d2eaaa344171dcda5d Mon Sep 17 00:00:00 2001 From: Nelson Martell Date: Wed, 11 Oct 2023 17:07:28 -0500 Subject: [PATCH] fix(rules): adjust some rules as warning - unicorn/filename-case - unicorn/prevent-abbreviations --- src/rules/index.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/rules/index.ts b/src/rules/index.ts index 754e554..218accc 100644 --- a/src/rules/index.ts +++ b/src/rules/index.ts @@ -7,4 +7,27 @@ export const baseRules: Linter.RulesRecord = { 'unicorn/no-null': 'off', 'no-console': 'warn', 'unicorn/prefer-module': 'warn', + 'unicorn/filename-case': [ + 'warn', + { + case: 'kebabCase', + }, + ], + 'unicorn/prevent-abbreviations': [ + 'warn', + { + replacements: { + i: { + index: false, + }, + e: { + event: false, + }, + res: false, + cmd: { + command: true, + }, + }, + }, + ], };