forked from oxc-project/oxc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(oxlint): canonicalize paths provided as args
closes oxc-project#9023
- Loading branch information
1 parent
23480e6
commit e451332
Showing
6 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
apps/oxlint/fixtures/ignore_file_current_dir/.oxlintrc.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,10 @@ | ||
{ | ||
"ignorePatterns": [ | ||
"foo.js", | ||
"a/bar.js" | ||
], | ||
"rules": { | ||
"no-debugger": "deny" | ||
} | ||
} | ||
|
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,2 @@ | ||
debugger | ||
console.log("Don't lint me!!") |
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,2 @@ | ||
debugger | ||
console.log("Don't lint me!!") |
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
22 changes: 22 additions & 0 deletions
22
apps/oxlint/src/snapshots/fixtures__ignore_file_current_dir_ .@oxlint.snap
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,22 @@ | ||
--- | ||
source: apps/oxlint/src/tester.rs | ||
--- | ||
########## | ||
arguments: | ||
working directory: fixtures/ignore_file_current_dir | ||
---------- | ||
Found 0 warnings and 0 errors. | ||
Finished in <variable>ms on 0 files with 100 rules using 1 threads. | ||
---------- | ||
CLI result: LintSucceeded | ||
---------- | ||
|
||
########## | ||
arguments: . | ||
working directory: fixtures/ignore_file_current_dir | ||
---------- | ||
Found 0 warnings and 0 errors. | ||
Finished in <variable>ms on 0 files with 100 rules using 1 threads. | ||
---------- | ||
CLI result: LintSucceeded | ||
---------- |