Skip to content

Commit

Permalink
fix(eslint): disable prevent abbreviations (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensacks authored Jun 30, 2020
1 parent 1c5928e commit 8285114
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ module.exports = {
// regular expressions.
'unicorn/no-unsafe-regex': 'error',

// Preventing abbreviations is incompatible with React standards (props, ref, etc.)
// Additionally, there are many popular libraries that have abbreviations
// as their standard practice and this rule prevents that consistency
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prevent-abbreviations.md
'unicorn/prevent-abbreviations': 'off',

// Array.includes() is consistent with String.includes()
// the rule's performance claim is unsubstantiated and appears to be premature optimization
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/495 and
Expand Down

0 comments on commit 8285114

Please sign in to comment.