Skip to content

Commit

Permalink
feat(unicorn): don't fix specified abbreviations
Browse files Browse the repository at this point in the history
  • Loading branch information
theurgi committed Feb 22, 2023
1 parent 1594683 commit 4fc8d65
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions src/rules/unicorn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 4fc8d65

Please sign in to comment.