Skip to content

Commit

Permalink
feat: enable unicorn/prefer-at
Browse files Browse the repository at this point in the history
Now that support for Node.js < 17 has been dropped, all supported
versions of Node.js support `Array#at()` and `String#at()`.  Use 'em!

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Oct 17, 2023
1 parent e743137 commit 294d4ea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rules/unicorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ module.exports = {
}
}],

// don't prefer Array#at() and String#at()
// TODO [engine:node@>=16.6]: Enable unicorn/prefer-at
"unicorn/prefer-at": "off",

// don't require Node#append() instead of Node#appendChild()
// consistency advantage doesn't outweigh backwards compat
"unicorn/prefer-dom-node-append": "off",
Expand Down

0 comments on commit 294d4ea

Please sign in to comment.