Commits
Click on a commit to change the comparison rangerefactor(linter): update tsgolint payload (#13547)
- oxc side of https://github.com/oxc-project/tsgolint/pull/182
Updates the payload that `oxlint` sends to `tsgolint` to match the new format. The new structure is based around sets of rules and configurations first, and then specifying the files those configs act upon. That looks like something like this (output from running `oxlint --type-aware apps/oxlint/fixtures`)
```json
{
"configs": [
{
"file_paths": [
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/use-unknown-in-catch-callback-variable/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/prefer-reduce-type-parameter/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/return-await/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/non-tsgolint.ts",
"..."
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/no-unnecessary-template-expression/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/no-unsafe-type-assertion/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/no-unsafe-member-access/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/no-unsafe-call/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/no-unnecessary-boolean-literal-compare/index.ts"
],
"rules": [
{ "name": "await-thenable" },
{ "name": "no-floating-promises" },
{ "name": "no-array-delete" },
{ "name": "no-base-to-string" },
{ "name": "no-confusing-void-expression" },
{ "name": "no-duplicate-type-constituents" },
{ "...": "..."},
{ "name": "restrict-plus-operands" },
{ "name": "restrict-template-expressions" },
{ "name": "return-await" },
{ "name": "switch-exhaustiveness-check" },
{ "name": "unbound-method" },
{ "name": "use-unknown-in-catch-callback-variable" }
]
},
{
"file_paths": [
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/no-floating-promises/src/index.ts",
"/Users/<user>/workspace/oxc/apps/oxlint/fixtures/tsgolint/no-floating-promises/src/overrides.ts"
],
"rules": [{ "name": "no-floating-promises" }]
}
]
}
```2 months ago
by camchenry