Skip to content

Commit

Permalink
feat: ban new Array (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Jul 4, 2023
1 parent d4a9ebc commit be5bc80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-config-basic/index.js
Expand Up @@ -368,6 +368,8 @@ module.exports = {
'unicorn/prefer-node-protocol': 'error',
// Prefer using number properties like `Number.isNaN` rather than `isNaN`
'unicorn/prefer-number-properties': 'error',
// Ban `new Array` as `Array` constructor's params are ambiguous
'unicorn/no-new-array': 'error',

'no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
'eslint-comments/disable-enable-pair': 'off',
Expand Down

0 comments on commit be5bc80

Please sign in to comment.