-
-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't override
n/no-unsupported-features/*
if user has customi…
…sed them
- Loading branch information
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const _ = new FormData(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const _ = new FormData(); |
20 changes: 20 additions & 0 deletions
20
test/fixtures/disable-n-no-unsupported-features/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"xo": { | ||
"rules": { | ||
"n/no-unsupported-features/es-builtins": "off", | ||
"n/no-unsupported-features/es-syntax": "off", | ||
"n/no-unsupported-features/node-builtins": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "overrides.js", | ||
"rules": { | ||
"n/no-unsupported-features/node-builtins": "error" | ||
} | ||
} | ||
] | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
} |