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.13
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.15.14
Choose a head ref
  • 6 commits
  • 10 files changed
  • 4 contributors

Commits on Mar 9, 2025

  1. chore(deps): update github-actions (#345)

    This PR contains the following updates:
    
    | Package | Type | Update | Change |
    |---|---|---|---|
    |
    [github/codeql-action](https://redirect.github.com/github/codeql-action)
    | action | patch | `v3.28.10` -> `v3.28.11` |
    |
    [peter-evans/create-pull-request](https://redirect.github.com/peter-evans/create-pull-request)
    | action | patch | `v7.0.7` -> `v7.0.8` |
    |
    [taiki-e/install-action](https://redirect.github.com/taiki-e/install-action)
    | action | patch | `v2.49.10` -> `v2.49.17` |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>github/codeql-action (github/codeql-action)</summary>
    
    ###
    [`v3.28.11`](https://redirect.github.com/github/codeql-action/releases/tag/v3.28.11)
    
    [Compare
    Source](https://redirect.github.com/github/codeql-action/compare/v3.28.10...v3.28.11)
    
    ### CodeQL Action Changelog
    
    See the [releases
    page](https://redirect.github.com/github/codeql-action/releases) for the
    relevant changes to the CodeQL CLI and language packs.
    
    #### 3.28.11 - 07 Mar 2025
    
    - Update default CodeQL bundle version to 2.20.6.
    [#&#8203;2793](https://redirect.github.com/github/codeql-action/pull/2793)
    
    See the full
    [CHANGELOG.md](https://redirect.github.com/github/codeql-action/blob/v3.28.11/CHANGELOG.md)
    for more information.
    
    </details>
    
    <details>
    <summary>peter-evans/create-pull-request
    (peter-evans/create-pull-request)</summary>
    
    ###
    [`v7.0.8`](https://redirect.github.com/peter-evans/create-pull-request/releases/tag/v7.0.8):
    Create Pull Request v7.0.8
    
    [Compare
    Source](https://redirect.github.com/peter-evans/create-pull-request/compare/v7.0.7...v7.0.8)
    
    #### What's Changed
    
    - build(deps-dev): bump ts-jest from 29.2.5 to 29.2.6 by
    [@&#8203;dependabot](https://redirect.github.com/dependabot) in
    [https://github.com/peter-evans/create-pull-request/pull/3751](https://redirect.github.com/peter-evans/create-pull-request/pull/3751)
    - build(deps-dev): bump eslint-import-resolver-typescript from 3.8.1 to
    3.8.3 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in
    [https://github.com/peter-evans/create-pull-request/pull/3752](https://redirect.github.com/peter-evans/create-pull-request/pull/3752)
    - build(deps): bump
    [@&#8203;octokit/plugin-paginate-rest](https://redirect.github.com/octokit/plugin-paginate-rest)
    from 11.4.2 to 11.4.3 by
    [@&#8203;dependabot](https://redirect.github.com/dependabot) in
    [https://github.com/peter-evans/create-pull-request/pull/3753](https://redirect.github.com/peter-evans/create-pull-request/pull/3753)
    - build(deps-dev): bump prettier from 3.5.1 to 3.5.2 by
    [@&#8203;dependabot](https://redirect.github.com/dependabot) in
    [https://github.com/peter-evans/create-pull-request/pull/3754](https://redirect.github.com/peter-evans/create-pull-request/pull/3754)
    - fix: suppress output for some git operations by
    [@&#8203;peter-evans](https://redirect.github.com/peter-evans) in
    [https://github.com/peter-evans/create-pull-request/pull/3776](https://redirect.github.com/peter-evans/create-pull-request/pull/3776)
    
    **Full Changelog**:
    peter-evans/create-pull-request@v7.0.7...v7.0.8
    
    </details>
    
    <details>
    <summary>taiki-e/install-action (taiki-e/install-action)</summary>
    
    ###
    [`v2.49.17`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.17):
    2.49.17
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.16...v2.49.17)
    
    -   Update `mdbook@latest` to 0.4.46.
    
    -   Update `knope@latest` to 0.18.4.
    
    -   Update `cargo-semver-checks@latest` to 0.40.0.
    
    -   Update `cargo-binstall@latest` to 1.12.0.
    
    ###
    [`v2.49.16`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.16):
    2.49.16
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.15...v2.49.16)
    
    -   Update `shfmt@latest` to 3.11.0.
    
    -   Update `cargo-lambda@latest` to 1.7.1.
    
    ###
    [`v2.49.15`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.15):
    2.49.15
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.14...v2.49.15)
    
    -   Update `release-plz@latest` to 0.3.125.
    
    -   Update `protoc@latest` to 3.30.0.
    
    ###
    [`v2.49.14`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.14):
    2.49.14
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.13...v2.49.14)
    
    -   Update `espup@latest` to 0.14.1.
    
    ###
    [`v2.49.13`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.13):
    2.49.13
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.12...v2.49.13)
    
    -   Update `trunk@latest` to 0.21.8.
    
    ###
    [`v2.49.12`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.12):
    2.49.12
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.11...v2.49.12)
    
    -   Update `cargo-tarpaulin@latest` to 0.32.2.
    
    -   Update `typos@latest` to 1.30.1.
    
    ###
    [`v2.49.11`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.11):
    2.49.11
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.10...v2.49.11)
    
    -   Update `cargo-tarpaulin@latest` to 0.32.1.
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
    Asia/Shanghai, Automerge - "before 10pm on monday" in timezone
    Asia/Shanghai.
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
    rebase/retry checkbox.
    
    👻 **Immortal**: This PR will be recreated if closed unmerged. Get
    [config
    help](https://redirect.github.com/renovatebot/renovate/discussions) if
    that's undesired.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/oxc-project/eslint-plugin-oxlint).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 9, 2025
    Copy the full SHA
    a47df17 View commit details
  2. chore(deps): update dependency pnpm to v10.6.1 (#346)

    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [pnpm](https://pnpm.io)
    ([source](https://redirect.github.com/pnpm/pnpm/tree/HEAD/pnpm)) |
    `10.5.2` -> `10.6.1` |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/10.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pnpm/10.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pnpm/10.5.2/10.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/10.5.2/10.6.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>pnpm/pnpm (pnpm)</summary>
    
    ###
    [`v10.6.1`](https://redirect.github.com/pnpm/pnpm/blob/HEAD/pnpm/CHANGELOG.md#1061)
    
    [Compare
    Source](https://redirect.github.com/pnpm/pnpm/compare/v10.6.0...v10.6.1)
    
    ##### Patch Changes
    
    - The pnpm CLI process should not stay hanging, when `--silent`
    reporting is used.
    - When `--loglevel` is set to `error`, don't show installation summary,
    execution time, and big tarball download progress.
    - Don't ignore pnpm.patchedDependencies from `package.json`
    [#&#8203;9226](https://redirect.github.com/pnpm/pnpm/issues/9226).
    - When executing the `approve-builds` command, if package.json contains
    `onlyBuiltDependencies` or `ignoredBuiltDependencies`, the selected
    dependency package will continue to be written into `package.json`.
    - When a package version cannot be found in the package metadata, print
    the registry from which the package was fetched.
    
    ###
    [`v10.6.0`](https://redirect.github.com/pnpm/pnpm/blob/HEAD/pnpm/CHANGELOG.md#1060)
    
    [Compare
    Source](https://redirect.github.com/pnpm/pnpm/compare/v10.5.2...v10.6.0)
    
    ##### Minor Changes
    
    - `pnpm-workspace.yaml` can now hold all the settings that `.npmrc`
    accepts. The settings should use camelCase
    [#&#8203;9211](https://redirect.github.com/pnpm/pnpm/pull/9211).
    
        `pnpm-workspace.yaml` example:
    
        ```yaml
        verifyDepsBeforeRun: install
        optimisticRepeatInstall: true
        publicHoistPattern:
          - "*types*"
          - "!@&#8203;types/react"
        ```
    
    - Projects using a `file:` dependency on a local tarball file (i.e.
    `.tgz`, `.tar.gz`, `.tar`) will see a performance improvement during
    installation. Previously, using a `file:` dependency on a tarball caused
    the lockfile resolution step to always run. The lockfile will now be
    considered up-to-date if the tarball is unchanged.
    
    ##### Patch Changes
    
    - `pnpm self-update` should not leave a directory with a broken pnpm
    installation if the installation fails.
    - `fast-glob` replace with `tinyglobby` to reduce the size of the pnpm
    CLI dependencies
    [#&#8203;9169](https://redirect.github.com/pnpm/pnpm/pull/9169).
    - `pnpm deploy` should not remove fields from the deployed package's
    `package.json` file
    [#&#8203;9215](https://redirect.github.com/pnpm/pnpm/issues/9215).
    - `pnpm self-update` should not read the pnpm settings from the
    `package.json` file in the current working directory.
    - Fix `pnpm deploy` creating a `package.json` without the `imports` and
    `license` field
    [#&#8203;9193](https://redirect.github.com/pnpm/pnpm/issues/9193).
    - `pnpm update -i` should list only packages that have newer versions
    [#&#8203;9206](https://redirect.github.com/pnpm/pnpm/issues/9206).
    - Fix a bug causing entries in the `catalogs` section of the
    `pnpm-lock.yaml` file to be removed when `dedupe-peer-dependents=false`
    on a filtered install.
    [#&#8203;9112](https://redirect.github.com/pnpm/pnpm/issues/9112)
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
    Asia/Shanghai, Automerge - "before 10pm on monday" in timezone
    Asia/Shanghai.
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/oxc-project/eslint-plugin-oxlint).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 9, 2025
    Copy the full SHA
    62a1306 View commit details

Commits on Mar 10, 2025

  1. chore(deps): update dependency pnpm to v10.6.2 (#347)

    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [pnpm](https://pnpm.io)
    ([source](https://redirect.github.com/pnpm/pnpm/tree/HEAD/pnpm)) |
    `10.6.1` -> `10.6.2` |
    [![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/10.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pnpm/10.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pnpm/10.6.1/10.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/10.6.1/10.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
    |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>pnpm/pnpm (pnpm)</summary>
    
    ###
    [`v10.6.2`](https://redirect.github.com/pnpm/pnpm/blob/HEAD/pnpm/CHANGELOG.md#1062)
    
    [Compare
    Source](https://redirect.github.com/pnpm/pnpm/compare/v10.6.1...v10.6.2)
    
    ##### Patch Changes
    
    - `pnpm self-update` should always update the version in the
    `packageManager` field of `package.json`.
    - Fix running pnpm CLI from pnpm CLI on Windows when the CLI is bundled
    to an executable
    [#&#8203;8971](https://redirect.github.com/pnpm/pnpm/issues/8971).
    - `pnpm patch-commit` will now use the same filesystem as the store
    directory to compare and create patch files.
    -   Don't show info output when `--loglevel=error` is used.
    - `peerDependencyRules` should be set in `pnpm-workspace.yaml` to take
    effect.
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
    Asia/Shanghai, Automerge - "before 10pm on monday" in timezone
    Asia/Shanghai.
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/oxc-project/eslint-plugin-oxlint).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 10, 2025
    Copy the full SHA
    0248f4e View commit details
  2. chore(deps): update taiki-e/install-action action to v2.49.18 (#348)

    This PR contains the following updates:
    
    | Package | Type | Update | Change |
    |---|---|---|---|
    |
    [taiki-e/install-action](https://redirect.github.com/taiki-e/install-action)
    | action | patch | `v2.49.17` -> `v2.49.18` |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>taiki-e/install-action (taiki-e/install-action)</summary>
    
    ###
    [`v2.49.18`](https://redirect.github.com/taiki-e/install-action/releases/tag/v2.49.18):
    2.49.18
    
    [Compare
    Source](https://redirect.github.com/taiki-e/install-action/compare/v2.49.17...v2.49.18)
    
    -   Update `just@latest` to 1.40.0.
    
    -   Update `mdbook@latest` to 0.4.47.
    
    </details>
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone
    Asia/Shanghai, Automerge - "before 10pm on monday" in timezone
    Asia/Shanghai.
    
    🚦 **Automerge**: Enabled.
    
    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
    rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update
    again.
    
    ---
    
    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
    this box
    
    ---
    
    This PR was generated by [Mend Renovate](https://mend.io/renovate/).
    View the [repository job
    log](https://developer.mend.io/github/oxc-project/eslint-plugin-oxlint).
    
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 10, 2025
    Copy the full SHA
    b0c2f77 View commit details
  3. docs: use right config default name (#349)

    Sysix authored Mar 10, 2025
    Copy the full SHA
    f7b36f4 View commit details

Commits on Mar 11, 2025

  1. release: v0.15.14 (#350)

    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 11, 2025
    Copy the full SHA
    e661bac View commit details
2 changes: 1 addition & 1 deletion .github/workflows/bump_oxlint.yml
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ jobs:
OXLINT_VERSION: ${{ inputs.version }}
run: npm version ${OXLINT_VERSION} --no-git-tag-version

- uses: peter-evans/create-pull-request@dd2324fc52d5d43c699a5636bcf19fceaa70c284 # v7.0.7
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
# bot account with PAT required for triggering workflow runs
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
4 changes: 2 additions & 2 deletions .github/workflows/ci_security.yml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ jobs:
with:
persist-credentials: false

- uses: taiki-e/install-action@3c8fc6eaa5fcff049bb133c1f540c6c2287a191f # v2.49.10
- uses: taiki-e/install-action@f87f9990b09867202953bff9aa0c80e23ee16bb7 # v2.49.18
with:
tool: zizmor

@@ -37,7 +37,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
with:
sarif_file: results.sarif
category: zizmor
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[tools]
pnpm = "10.5.2"
pnpm = "10.6.2"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ module.exports = {
}
```

### Detect rules from `oxlint.json`
### Detect rules from `.oxlintrc.json`

If you are using flat configuration (eslint >= 9.0), you can use the following config:

@@ -56,11 +56,11 @@ If you are using flat configuration (eslint >= 9.0), you can use the following c
import oxlint from 'eslint-plugin-oxlint';
export default [
..., // other plugins
...oxlint.buildFromOxlintConfigFile('./oxlint.json'),
...oxlint.buildFromOxlintConfigFile('./.oxlintrc.json'),
];
```

Or build it by an `oxlint.json`-like object:
Or build it by an `.oxlintrc.json`-like object:

```js
// eslint.config.js
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.13",
"version": "0.15.14",
"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.13",
"oxlint": "^0.15.14",
"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.

15 changes: 15 additions & 0 deletions src/__snapshots__/configs.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -272,6 +272,9 @@ exports[`contains all the oxlint rules 1`] = `
"import/default": [
0,
],
"import/exports-last": [
0,
],
"import/first": [
0,
],
@@ -287,6 +290,9 @@ exports[`contains all the oxlint rules 1`] = `
"import/no-amd": [
0,
],
"import/no-anonymous-default-export": [
0,
],
"import/no-commonjs": [
0,
],
@@ -1093,6 +1099,9 @@ exports[`contains all the oxlint rules 1`] = `
"promise/no-promise-in-callback": [
0,
],
"promise/no-return-wrap": [
0,
],
"promise/param-names": [
0,
],
@@ -1102,6 +1111,9 @@ exports[`contains all the oxlint rules 1`] = `
"promise/prefer-await-to-then": [
0,
],
"promise/prefer-catch": [
0,
],
"promise/spec-only": [
0,
],
@@ -1142,6 +1154,9 @@ exports[`contains all the oxlint rules 1`] = `
"react/jsx-curly-brace-presence": [
0,
],
"react/jsx-filename-extension": [
0,
],
"react/jsx-key": [
0,
],
6 changes: 3 additions & 3 deletions src/build-from-oxlint-config/index.ts
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ const getConfigContent = (

/**
* builds turned off rules, which are supported by oxlint.
* It accepts an object similar to the oxlint.json file.
* It accepts an object similar to the .oxlintrc.json file.
*/
export const buildFromOxlintConfig = (
config: OxlintConfig
@@ -112,9 +112,9 @@ export const buildFromOxlintConfig = (

/**
* builds turned off rules, which are supported by oxlint.
* It accepts an filepath to the oxlint.json file.
* It accepts an filepath to the .oxlintrc.json file.
*
* It the oxlint.json file could not be found or parsed,
* It the .oxlintrc.json file could not be found or parsed,
* no rules will be deactivated and an error to `console.error` will be emitted
*/
export const buildFromOxlintConfigFile = (
5 changes: 5 additions & 0 deletions src/generated/rules-by-category.ts
Original file line number Diff line number Diff line change
@@ -123,7 +123,9 @@ const styleRules: Record<string, 'off'> = {
'sort-keys': 'off',
'vars-on-top': 'off',
yoda: 'off',
'import/exports-last': 'off',
'import/first': 'off',
'import/no-anonymous-default-export': 'off',
'import/no-mutable-exports': 'off',
'import/no-named-default': 'off',
'import/no-namespace': 'off',
@@ -166,8 +168,10 @@ const styleRules: Record<string, 'off'> = {
'jest/require-top-level-describe': 'off',
'node/no-exports-assign': 'off',
'promise/avoid-new': 'off',
'promise/no-return-wrap': 'off',
'promise/no-nesting': 'off',
'promise/param-names': 'off',
'promise/prefer-catch': 'off',
'promise/prefer-await-to-callbacks': 'off',
'promise/prefer-await-to-then': 'off',
'react/jsx-boolean-value': 'off',
@@ -283,6 +287,7 @@ const restrictionRules: Record<string, 'off'> = {
'promise/catch-or-return': 'off',
'promise/spec-only': 'off',
'react/button-has-type': 'off',
'react/jsx-filename-extension': 'off',
'react/no-danger': 'off',
'react/no-unknown-property': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
5 changes: 5 additions & 0 deletions src/generated/rules-by-scope.ts
Original file line number Diff line number Diff line change
@@ -142,7 +142,9 @@ const eslintRules: Record<string, 'off'> = {

const importRules: Record<string, 'off'> = {
'import/default': 'off',
'import/exports-last': 'off',
'import/first': 'off',
'import/no-anonymous-default-export': 'off',
'import/no-absolute-path': 'off',
'import/no-mutable-exports': 'off',
'import/no-named-default': 'off',
@@ -298,11 +300,13 @@ const nodeRules: Record<string, 'off'> = {
const promiseRules: Record<string, 'off'> = {
'promise/avoid-new': 'off',
'promise/catch-or-return': 'off',
'promise/no-return-wrap': 'off',
'promise/no-nesting': 'off',
'promise/no-promise-in-callback': 'off',
'promise/no-callback-in-promise': 'off',
'promise/no-new-statics': 'off',
'promise/param-names': 'off',
'promise/prefer-catch': 'off',
'promise/prefer-await-to-callbacks': 'off',
'promise/prefer-await-to-then': 'off',
'promise/spec-only': 'off',
@@ -313,6 +317,7 @@ const reactRules: Record<string, 'off'> = {
'react/button-has-type': 'off',
'react/checked-requires-onchange-or-readonly': 'off',
'react/iframe-missing-sandbox': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-boolean-value': 'off',
'react/jsx-curly-brace-presence': 'off',
'react/jsx-key': 'off',