-
-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into no-useless-call
- Loading branch information
Showing
45 changed files
with
1,796 additions
and
1,031 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Empty file.
Empty file.
5 changes: 5 additions & 0 deletions
5
apps/oxlint/fixtures/config_ignore_patterns/with_oxlintrc/test/eslintrc.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,5 @@ | ||
{ | ||
"ignorePatterns": [ | ||
"*.js" | ||
] | ||
} |
Empty file.
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" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
apps/oxlint/fixtures/disable_eslint_and_unicorn_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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"plugins": [ | ||
"unicorn" | ||
], | ||
"rules": { | ||
"unicorn/no-nested-ternary": "off" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
apps/oxlint/fixtures/disable_eslint_and_unicorn_alias_rules/test.js
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 @@ | ||
console.log(bar ? baz : qux === quxx ? bing : bam); |
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
11 changes: 11 additions & 0 deletions
11
...on__eslintrc.json fixtures__config_ignore_patterns__ignore_extension__main.js@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,11 @@ | ||
--- | ||
source: apps/oxlint/src/tester.rs | ||
--- | ||
########## | ||
arguments: -c fixtures/config_ignore_patterns/ignore_extension/eslintrc.json fixtures/config_ignore_patterns/ignore_extension/main.js | ||
working directory: | ||
---------- | ||
Finished in <variable>ms on 0 files with 0 rules using 1 threads. | ||
---------- | ||
CLI result: LintNoFilesFound | ||
---------- |
18 changes: 18 additions & 0 deletions
18
...ore_patterns__with_oxlintrc_-c .__test__eslintrc.json --ignore-pattern _.ts [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,18 @@ | ||
--- | ||
source: apps/oxlint/src/tester.rs | ||
--- | ||
########## | ||
arguments: -c ./test/eslintrc.json --ignore-pattern *.ts . | ||
working directory: fixtures/config_ignore_patterns/with_oxlintrc | ||
---------- | ||
|
||
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-empty-file.html\eslint-plugin-unicorn(no-empty-file)]8;;\: Empty files are not allowed. | ||
,-[main.js:1:1] | ||
`---- | ||
help: Delete this file or add some code to it. | ||
Found 1 warning and 0 errors. | ||
Finished in <variable>ms on 1 file with 97 rules using 1 threads. | ||
---------- | ||
CLI result: LintSucceeded | ||
---------- |
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 | ||
---------- |
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
Oops, something went wrong.