Skip to content

Commit

Permalink
New: Allow args and lib abbreviations (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning authored Oct 13, 2022
1 parent 269ac9e commit 5d6bf9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-seahorses-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@zazen/eslint-config': minor
---

Allow `args` and `lib` abbreviations
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ module.exports = {
'unicorn/no-null': 'off',
'unicorn/no-useless-undefined': 'off',
'unicorn/prefer-ternary': ['error', 'only-single-line'],
/** https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md */
'unicorn/prevent-abbreviations': [
'error',
{ allowList: { args: true, lib: true } },
],

'promise/param-names': 'error',
'promise/no-return-wrap': ['error', { allowReject: true }],
Expand Down

0 comments on commit 5d6bf9d

Please sign in to comment.