Skip to content

Commit

Permalink
Update npm fix based on npm/cli#7025
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Oct 30, 2024
1 parent e16a800 commit fae125b
Show file tree
Hide file tree
Showing 4 changed files with 419 additions and 188 deletions.
1 change: 1 addition & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"settings": {},
"rules": {
"@typescript-eslint/no-misused-new": ["deny"],
"@typescript-eslint/no-this-alias": ["deny"],
"unicorn/no-empty-file": "allow",
"unicorn/no-new-array": "allow",
Expand Down
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ module.exports = [
rules: {
...sharedRules,
'@typescript-eslint/no-floating-promises': ['error'],
// Define @typescript-eslint/no-misused-new because oxlint defines
// "no-misused-new": ["deny"] and trying to eslint-disable it will
// cause an eslint "Definition not found" error otherwise.
'@typescript-eslint/no-misused-new': ['error'],
'@typescript-eslint/no-misused-promises': ['error'],
// Define @typescript-eslint/no-this-alias because oxlint defines
// "no-this-alias": ["deny"] and trying to eslint-disable it will
Expand Down
Loading

0 comments on commit fae125b

Please sign in to comment.