-
-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(oxlint): improve disabling "no-nested-ternary" tests (#8814)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8ce21d1
commit 2b83b71
Showing
6 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
apps/oxlint/fixtures/disable_eslint_and_unicorn_alias_rules/.oxlintrc-eslint.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,6 @@ | ||
{ | ||
"plugins": [], | ||
"rules": { | ||
"eslint/no-nested-ternary": "off" | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
...s/two_rules_with_same_name/.oxlintrc.json → ...nicorn_alias_rules/.oxlintrc-unicorn.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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
{ | ||
"plugins": [ | ||
"oxc", | ||
"unicorn" | ||
], | ||
"rules": { | ||
"eslint/no-nested-ternary": "off", | ||
"unicorn/no-nested-ternary": "off" | ||
} | ||
} |
File renamed without changes.
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
...lias_rules_-c .oxlintrc-eslint.json test.js -c .oxlintrc-unicorn.json [email protected]
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: -c .oxlintrc-eslint.json test.js | ||
working directory: fixtures/disable_eslint_and_unicorn_alias_rules | ||
---------- | ||
Found 0 warnings and 0 errors. | ||
Finished in <variable>ms on 1 file with 48 rules using 1 threads. | ||
---------- | ||
CLI result: LintSucceeded | ||
---------- | ||
|
||
########## | ||
arguments: -c .oxlintrc-unicorn.json test.js | ||
working directory: fixtures/disable_eslint_and_unicorn_alias_rules | ||
---------- | ||
Found 0 warnings and 0 errors. | ||
Finished in <variable>ms on 1 file with 61 rules using 1 threads. | ||
---------- | ||
CLI result: LintSucceeded | ||
---------- |
12 changes: 0 additions & 12 deletions
12
...nt/src/snapshots/fixtures__two_rules_with_same_name_-c .oxlintrc.json [email protected]
This file was deleted.
Oops, something went wrong.