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
112 changes: 56 additions & 56 deletions apps/oxlint/conformance/snapshots/sonarjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -627,10 +627,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -751,10 +751,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -864,10 +864,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -978,10 +978,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1093,10 +1093,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1206,10 +1206,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1321,10 +1321,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1437,10 +1437,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1550,10 +1550,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1663,10 +1663,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1777,10 +1777,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -1890,10 +1890,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js


#### S125 > S125 > Sections of code should not be commented out > invalid
Expand Down Expand Up @@ -2005,8 +2005,8 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/rule_tester.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/rule_tester.js)
at runInvalidTestCase (apps/oxlint/dist/rule_tester.js)
at apps/oxlint/dist/rule_tester.js
at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js

18 changes: 0 additions & 18 deletions apps/oxlint/src-js/index.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
import { definePlugin as _definePlugin, defineRule as _defineRule } from "./package/define.ts";
import { RuleTester as _RuleTester } from "./package/rule_tester.ts";

/**
* @deprecated Import from `oxlint/plugins` instead
*/
export const definePlugin = _definePlugin;

/**
* @deprecated Import from `oxlint/plugins` instead
*/
export const defineRule = _defineRule;

/**
* @deprecated Import from `oxlint/plugins-dev` instead
*/
export const RuleTester = _RuleTester;

export { defineConfig } from "./package/config.ts";

export type {
Expand Down
2 changes: 1 addition & 1 deletion apps/oxlint/test/rule_tester.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import { RuleTester } from "../src-js/index.ts";
import { RuleTester } from "../src-js/package/rule_tester.ts";

import type { Rule } from "../src-js/plugins.ts";

Expand Down
Loading