Skip to content

Commit

Permalink
feat: replace no-new-symbol with no-new-native-nonconstructor
Browse files Browse the repository at this point in the history
BREAKING CHANGE: As of ESLint v9 the `no-new-symbol` rule has been replaced with `no-new-native-nonconstructor` rule.
  • Loading branch information
robertrossmann committed Feb 7, 2024
1 parent 2826004 commit 0a2a748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config-base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ module.exports = {

// Disallow Symbol Constructor
// This rule is aimed at preventing the accidental calling of Symbol with the `new` operator.
'no-new-symbol': 'error',
'no-new-native-nonconstructor': 'error',

// Disallow Primitive Wrapper Instances
// Primitive wrapper objects are, in fact, objects. That means typeof will return "object"
Expand Down

0 comments on commit 0a2a748

Please sign in to comment.