Migrate action to run oxlint instead of eslint#1
reviewdog [oxlint-github-pr-check] report
reported by reviewdog 🐶
Findings (4)
testdata/error.js|1 col 5| Variable 'unusedVar' is declared but never used. Unused variables should start with a '_'.
testdata/error.js|1 col 1| Unexpected var, use let or const instead.
testdata/test.js|2 col 32| Unexpected empty block statements
testdata/test.js|2 col 8| Unexpected var, use let or const instead.
Filtered Findings (0)
Annotations
Check failure on line 1 in testdata/error.js
github-actions / oxlint-github-pr-check
[oxlint] testdata/error.js#L1 <no-unused-vars>(https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html)
Variable 'unusedVar' is declared but never used. Unused variables should start with a '_'.
Raw output
{"message":"Variable 'unusedVar' is declared but never used. Unused variables should start with a '_'.","severity":"ERROR","source":{"name":"oxlint","url":"https://oxc.rs/docs/guide/usage/linter.html"},"code":{"value":"no-unused-vars","url":"https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html"},"location":{"path":"testdata/error.js","range":{"start":{"line":1,"column":5},"end":{"line":1,"column":14}}}}
Check failure on line 1 in testdata/error.js
github-actions / oxlint-github-pr-check
[oxlint] testdata/error.js#L1 <no-var>(https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-var.html)
Unexpected var, use let or const instead.
Raw output
{"message":"Unexpected var, use let or const instead.","severity":"ERROR","source":{"name":"oxlint","url":"https://oxc.rs/docs/guide/usage/linter.html"},"code":{"value":"no-var","url":"https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-var.html"},"location":{"path":"testdata/error.js","range":{"start":{"line":1,"column":1},"end":{"line":1,"column":4}}}}
Check warning on line 3 in testdata/test.js
github-actions / oxlint-github-pr-check
[oxlint] testdata/test.js#L2-L3 <no-empty>(https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty.html)
Unexpected empty block statements
Raw output
{"message":"Unexpected empty block statements","severity":"WARNING","source":{"name":"oxlint","url":"https://oxc.rs/docs/guide/usage/linter.html"},"code":{"value":"no-empty","url":"https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty.html"},"location":{"path":"testdata/test.js","range":{"start":{"line":2,"column":32},"end":{"line":3,"column":4}}}}
Check failure on line 2 in testdata/test.js
github-actions / oxlint-github-pr-check
[oxlint] testdata/test.js#L2 <no-var>(https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-var.html)
Unexpected var, use let or const instead.
Raw output
{"message":"Unexpected var, use let or const instead.","severity":"ERROR","source":{"name":"oxlint","url":"https://oxc.rs/docs/guide/usage/linter.html"},"code":{"value":"no-var","url":"https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-var.html"},"location":{"path":"testdata/test.js","range":{"start":{"line":2,"column":8},"end":{"line":2,"column":11}}}}