Skip to content

Commit

Permalink
Replace deprecated no-new-object rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 25, 2023
1 parent debf9ee commit 7f8f92e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ module.exports = {
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-nonoctal-decimal-escape': 'error',
'no-object-constructor': 'error',
'no-new': 'error',
'no-octal-escape': 'error',
'no-octal': 'error',
Expand Down Expand Up @@ -400,7 +401,6 @@ module.exports = {
},
],
'no-negated-condition': 'error',
'no-new-object': 'error',
'no-whitespace-before-property': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
},
"devDependencies": {
"ava": "^2.4.0",
"eslint": "^8.27.0",
"eslint": "^8.50.0",
"is-plain-obj": "^3.0.0"
},
"peerDependencies": {
"eslint": ">=8.27.0"
"eslint": ">=8.50.0"
}
}

0 comments on commit 7f8f92e

Please sign in to comment.