Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ arguments: --ignore-path fixtures/linter/.customignore --no-ignore fixtures/lint
working directory:
----------

! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-expressions.html\eslint(no-unused-expressions)]8;;\: Expected expression to be used
,-[fixtures/linter/nan.js:1:1]
1 | 123 == NaN;
: ^^^^^^^^^^^
`----
help: Consider using this expression or removing it

! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/use-isnan.html\eslint(use-isnan)]8;;\: Requires calls to isNaN() when checking for NaN
,-[fixtures/linter/nan.js:1:8]
1 | 123 == NaN;
: ^^^
`----
help: Use the isNaN function to compare with NaN.

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Found 2 warnings and 0 errors.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: --ignore-pattern **/*.js --ignore-pattern **/*.vue fixtures/linter
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 0 files with 88 rules using 1 threads.
Finished in <variable>ms on 0 files with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: --import-plugin -A all -D no-cycle fixtures/flow/
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 2 files with 90 rules using 1 threads.
Finished in <variable>ms on 2 files with 91 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: --import-plugin fixtures/flow/index.mjs
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
Finished in <variable>ms on 1 file with 91 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ working directory:
help: Remove the appending `.skip`

Found 1 warning and 1 error.
Finished in <variable>ms on 1 file with 100 rules using 1 threads.
Finished in <variable>ms on 1 file with 101 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ working directory:
help: Remove the debugger statement

Found 0 warnings and 1 error.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: -W correctness -A no-debugger fixtures/linter/debugger.js
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with 87 rules using 1 threads.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ working directory:
`----

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ working directory:
`----

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ working directory:
help: Delete this file or add some code to it.

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: -c fixtures/config_ignore_patterns/ignore_extension/eslintrc.json fix
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 0 files with 88 rules using 1 threads.
Finished in <variable>ms on 0 files with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: -c fixtures/eslintrc_env/eslintrc_env_browser.json fixtures/eslintrc_
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ working directory:
help: Delete this file or add some code to it.

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: -c fixtures/eslintrc_vitest_replace/eslintrc.json fixtures/eslintrc_v
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ working directory:
help: Remove the debugger statement

Found 0 warnings and 1 error.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: -c fixtures/no_console_off/eslintrc.json fixtures/no_console_off/test
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: -c fixtures/no_empty_allow_empty_catch/eslintrc.json -W no-empty fixt
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ working directory:
help: Remove this block or add a comment inside it

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ working directory:
help: Replace var with let or const

Found 0 warnings and 1 error.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
Finished in <variable>ms on 1 file with 91 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Expand All @@ -42,7 +42,7 @@ working directory:
help: Delete this console statement.

Found 1 warning and 1 error.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
Finished in <variable>ms on 1 file with 91 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Expand All @@ -61,7 +61,7 @@ working directory:
help: Replace var with let or const

Found 0 warnings and 1 error.
Finished in <variable>ms on 1 file with 90 rules using 1 threads.
Finished in <variable>ms on 1 file with 91 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ working directory:
help: Remove the debugger statement

Found 2 warnings and 2 errors.
Finished in <variable>ms on 7 files with 87 rules using 1 threads.
Finished in <variable>ms on 7 files with 88 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@ working directory:
: ^^^^^^^^^^^^^^^^
`----

Found 1 warning and 1 error.
Finished in <variable>ms on 1 file with 51 rules using 1 threads.
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-expressions.html\eslint(no-unused-expressions)]8;;\: Expected expression to be used
,-[fixtures/typescript_eslint/test.ts:4:1]
3 |
4 | 9007199254740993 // no-loss-of-precision
: ^^^^^^^^^^^^^^^^
`----
help: Consider using this expression or removing it

Found 2 warnings and 1 error.
Finished in <variable>ms on 1 file with 52 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ working directory:
: ^^^^^^^^^^^^^^^^
`----

Found 2 warnings and 1 error.
Finished in <variable>ms on 1 file with 63 rules using 1 threads.
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-expressions.html\eslint(no-unused-expressions)]8;;\: Expected expression to be used
,-[fixtures/typescript_eslint/test.ts:4:1]
3 |
4 | 9007199254740993 // no-loss-of-precision
: ^^^^^^^^^^^^^^^^
`----
help: Consider using this expression or removing it

Found 3 warnings and 1 error.
Finished in <variable>ms on 1 file with 64 rules using 1 threads.
----------
CLI result: LintFoundErrors
----------
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ working directory:
help: Remove the debugger statement

Found 4 warnings and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
11 changes: 9 additions & 2 deletions apps/oxlint/src/snapshots/_fixtures__linter@oxlint.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,22 @@ working directory:
`----
help: Remove the debugger statement

! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-expressions.html\eslint(no-unused-expressions)]8;;\: Expected expression to be used
,-[fixtures/linter/nan.js:1:1]
1 | 123 == NaN;
: ^^^^^^^^^^^
`----
help: Consider using this expression or removing it

! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/use-isnan.html\eslint(use-isnan)]8;;\: Requires calls to isNaN() when checking for NaN
,-[fixtures/linter/nan.js:1:8]
1 | 123 == NaN;
: ^^^
`----
help: Use the isNaN function to compare with NaN.

Found 3 warnings and 0 errors.
Finished in <variable>ms on 3 files with 88 rules using 1 threads.
Found 4 warnings and 0 errors.
Finished in <variable>ms on 3 files with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,22 @@ working directory:
`----
help: Remove the debugger statement

! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-expressions.html\eslint(no-unused-expressions)]8;;\: Expected expression to be used
,-[fixtures/linter/nan.js:1:1]
1 | 123 == NaN;
: ^^^^^^^^^^^
`----
help: Consider using this expression or removing it

! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/use-isnan.html\eslint(use-isnan)]8;;\: Requires calls to isNaN() when checking for NaN
,-[fixtures/linter/nan.js:1:8]
1 | 123 == NaN;
: ^^^
`----
help: Use the isNaN function to compare with NaN.

Found 2 warnings and 0 errors.
Finished in <variable>ms on 2 files with 88 rules using 1 threads.
Found 3 warnings and 0 errors.
Finished in <variable>ms on 2 files with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ working directory:
help: Remove the debugger statement

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ working directory:
help: Remove the debugger statement

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ working directory:
help: Variable declared without assignment. Either assign a value or remove the declaration.

Found 3 warnings and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ working directory:
help: Remove the debugger statement

Found 2 warnings and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: fixtures/vue/empty.vue
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
2 changes: 1 addition & 1 deletion apps/oxlint/src/snapshots/_foo.asdf@oxlint.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: foo.asdf
working directory:
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 0 files with 88 rules using 1 threads.
Finished in <variable>ms on 0 files with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ working directory: fixtures/config_ignore_patterns/ignore_directory
help: Delete this file or add some code to it.

Found 1 warning and 0 errors.
Finished in <variable>ms on 1 file with 88 rules using 1 threads.
Finished in <variable>ms on 1 file with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ arguments: -c ./test/eslintrc.json --ignore-pattern *.ts .
working directory: fixtures/config_ignore_patterns/with_oxlintrc
----------
Found 0 warnings and 0 errors.
Finished in <variable>ms on 0 files with 88 rules using 1 threads.
Finished in <variable>ms on 0 files with 89 rules using 1 threads.
----------
CLI result: LintSucceeded
----------
Loading
Loading