Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: oxc-project/eslint-plugin-oxlint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.15.15
Choose a base ref
...
head repository: oxc-project/eslint-plugin-oxlint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.16.0
Choose a head ref
  • 2 commits
  • 6 files changed
  • 3 contributors

Commits on Mar 15, 2025

  1. fix: do not output warning when no matching oxlint rule is found (#355)

    closes #354
    Sysix authored Mar 15, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0b79d3f View commit details

Commits on Mar 16, 2025

  1. release: v0.16.0 (#356)

    Automated changes by
    [create-pull-request](https://github.com/peter-evans/create-pull-request)
    GitHub action
    
    Co-authored-by: Boshen <Boshen@users.noreply.github.com>
    oxc-bot and Boshen authored Mar 16, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9823faf View commit details
Showing with 44 additions and 42 deletions.
  1. +2 −2 package.json
  2. +37 −37 pnpm-lock.yaml
  3. +3 −0 src/__snapshots__/configs.spec.ts.snap
  4. +0 −3 src/build-from-oxlint-config/rules.ts
  5. +1 −0 src/generated/rules-by-category.ts
  6. +1 −0 src/generated/rules-by-scope.ts
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-oxlint",
"version": "0.15.15",
"version": "0.16.0",
"description": "Turn off all rules already supported by oxlint",
"type": "module",
"types": "./dist/index.d.ts",
@@ -67,7 +67,7 @@
"jiti": "^2.4.2",
"lint-staged": "^15.2.10",
"memfs": "^4.14.0",
"oxlint": "^0.15.15",
"oxlint": "^0.16.0",
"prettier": "^3.3.3",
"scule": "^1.3.0",
"shelljs": "^0.8.5",
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/__snapshots__/configs.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -861,6 +861,9 @@ exports[`contains all the oxlint rules 1`] = `
"no-lone-blocks": [
0,
],
"no-lonely-if": [
0,
],
"no-loss-of-precision": [
0,
],
3 changes: 0 additions & 3 deletions src/build-from-oxlint-config/rules.ts
Original file line number Diff line number Diff line change
@@ -83,9 +83,6 @@ export const handleRulesScope = (
const eslintName = getEsLintRuleName(rule);

if (eslintName === undefined) {
console.warn(
`eslint-plugin-oxlint: could not find matching eslint rule for "${rule}"`
);
continue;
}

1 change: 1 addition & 0 deletions src/generated/rules-by-category.ts
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ const pedanticRules: Record<string, 'off'> = {
'max-classes-per-file': 'off',
'max-depth': 'off',
'max-lines': 'off',
'no-lonely-if': 'off',
'no-object-constructor': 'off',
'no-array-constructor': 'off',
'no-case-declarations': 'off',
1 change: 1 addition & 0 deletions src/generated/rules-by-scope.ts
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ const eslintRules: Record<string, 'off'> = {
'max-lines': 'off',
'max-params': 'off',
'new-cap': 'off',
'no-lonely-if': 'off',
'no-useless-call': 'off',
'no-unneeded-ternary': 'off',
'no-extra-label': 'off',