Skip to content

Commit 7f8f92e

Browse files
committed
Replace deprecated no-new-object rule
1 parent debf9ee commit 7f8f92e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ module.exports = {
148148
'no-new-func': 'error',
149149
'no-new-wrappers': 'error',
150150
'no-nonoctal-decimal-escape': 'error',
151+
'no-object-constructor': 'error',
151152
'no-new': 'error',
152153
'no-octal-escape': 'error',
153154
'no-octal': 'error',
@@ -400,7 +401,6 @@ module.exports = {
400401
},
401402
],
402403
'no-negated-condition': 'error',
403-
'no-new-object': 'error',
404404
'no-whitespace-before-property': 'error',
405405
'no-trailing-spaces': 'error',
406406
'no-unneeded-ternary': 'error',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
},
5454
"devDependencies": {
5555
"ava": "^2.4.0",
56-
"eslint": "^8.27.0",
56+
"eslint": "^8.50.0",
5757
"is-plain-obj": "^3.0.0"
5858
},
5959
"peerDependencies": {
60-
"eslint": ">=8.27.0"
60+
"eslint": ">=8.50.0"
6161
}
6262
}

0 commit comments

Comments
 (0)