From 4fc8d659601317242bdc6490869d2f6a9fede764 Mon Sep 17 00:00:00 2001 From: theurgi <58859663+theurgi@users.noreply.github.com> Date: Wed, 22 Feb 2023 02:12:03 -0500 Subject: [PATCH] feat(unicorn): don't fix specified abbreviations --- src/rules/unicorn.ts | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/rules/unicorn.ts b/src/rules/unicorn.ts index 742306c..9ddfb42 100644 --- a/src/rules/unicorn.ts +++ b/src/rules/unicorn.ts @@ -41,26 +41,24 @@ export = defineConfig({ // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1273#issuecomment-1069506684 'unicorn/prefer-json-parse-buffer': 'off', - // NOTE Be aware of this but leave it on unless it becomes a problem. - // // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/898fcb4/docs/rules/prevent-abbreviations.md - // 'unicorn/prevent-abbreviations': [ - // 'error', - // { - // // case insensitive and matches substrings - // replacements: { - // args: false, - // dev: false, - // dist: false, - // env: false, - // pkg: false, - // prop: false, - // props: false, - // ref: false, - // src: false, - // }, - // }, - // ], + 'unicorn/prevent-abbreviations': [ + 'error', + { + // case insensitive and matches substrings + replacements: { + args: false, + dev: false, + dist: false, + env: false, + pkg: false, + prop: false, + props: false, + ref: false, + src: false, + }, + }, + ], 'unicorn/template-indent': 'off', },