Skip to content

Update dependency xo to v1 #698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update dependency xo to v1 #698

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 23, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
xo 0.25.4 -> 1.1.1 age adoption passing confidence

Release Notes

xojs/xo (xo)

v1.1.1

Compare Source

  • Fix: Behaviour of print-config option with relative file path (#​816) b538cf7

v1.1.0

Compare Source


v1.0.5

Compare Source


v1.0.4

Compare Source

  • Fix: Error while loading configs with custom plugins (#​805) 32960d3

v1.0.3

Compare Source


v1.0.2

Compare Source

v1.0.1

Compare Source

  • Fix: Ensure lint text does not strip rules between runs (#​802) e63d7a5

v1.0.0

Compare Source

Breaking
  • Requires ESLint flat config
  • Requires Node.js 20.17
  • Configuration now only through package.json and xo.config.{js,cjs,mjs,ts,cts,mts} files
  • Switched from eslint-plugin-import to eslint-plugin-import-x (since it's better maintained)
    • You will have to update ignore comments and config from import to import-x
  • CLI flags removed:
    • --plugin: Configurable via config file
    • --extend: Configurable via config file
    • --global: Configurable via config file
    • --extension: Configurable via config file
    • --env: No longer relevant with new config system
    • --node-version: Removed as it only affected unsupported Node.js versions
    • --reporter: Removed due to potential lookup reliability issues
  • Node.js engines check removed
    • Was only active in unsupported Node.js versions
  • Webpack lookup and import resolution removed
    • Considered too niche for core functionality
Improvements
  • React support
  • Prettier compatibility mode with {prettier: 'compat'} option
    • Disables all Prettier-affected stylistic rules, and maintains existing Prettier functionality otherwise
  • Enhanced stdin handling:
    • --stdin-filename now optional
    • Supports TypeScript files via stdin
New rules
Thanks

Huge thanks to @​spence-s for doing most of the work for this 🎉


v0.61.1

Compare Source

v0.61.0

Compare Source

v0.60.0

Compare Source

New rules
Improvements

v0.59.3

Compare Source

v0.59.2

Compare Source

v0.59.1

Compare Source

v0.59.0

Compare Source

New rules
Breaking

v0.58.0

Compare Source

  • TypeScript: Disable default-case rule to avoid conflict with stricter @typescript-eslint/switch-exhaustiveness-check rule

v0.57.0

Compare Source

Breaking
New rules

v0.56.0

Compare Source

  • Support additional TypeScript extensions (.mts, .cts) (#​728) 04552b8

v0.55.1

Compare Source

  • Lock down eslint-plugin-import dependency to patch versions only 0a71db5

v0.55.0

Compare Source

Breaking
New rules

v0.54.2

Compare Source

v0.54.1

Compare Source

v0.54.0

Compare Source

New rules
Improvements

v0.53.1

Compare Source

v0.53.0

Compare Source

Breaking
New rules

v0.52.4

Compare Source

v0.52.3

Compare Source

v0.52.2

Compare Source

v0.52.1

Compare Source

v0.52.0

Compare Source

New rules
Improvements

v0.51.0

Compare Source

  • Internal: Include rulesMeta in linting results (#​674) cd86133
    • This is meant for editor plugins and formatters.

v0.50.0

Compare Source

v0.49.0

Compare Source

New rules
Breaking

v0.48.0

Compare Source

New rules
TypeScript-only

v0.47.0

Compare Source

New rules
Improvements

v0.46.4

Compare Source

v0.46.3

Compare Source

  • Fix an issue with npm not including bundledDependencies when publishing.

v0.46.2

Compare Source

  • Fix an issue with importing a dependency 653887a

v0.46.1

Compare Source

  • Fix an issue with npm not including bundledDependencies when publishing.

v0.46.0

Compare Source

Breaking
New rules
Improvements
Fixes

v0.45.0

Compare Source

New rules
Improvements
  • Replace Prettier's jsxBracketSameLine option with bracketSameLine (#​609) 506c151
  • Enable import/named rule for JavaScript (#​601) 623f259

v0.44.0

Compare Source

New rules
Improvements
Fixes

v0.43.0

Compare Source

Improvements
  • Enforce importing process and Buffer in Node.js explicitly 9f40074
    • This is the recommendation in the Node.js docs.
  • Upgrade dependencies f2c5041
Fixes
  • Make cache directory be relative to cwd (#​582) 512291b
    • This fixes editor integration.

v0.42.0

Compare Source

New rules
Improvements

v0.41.0

Compare Source

Breaking

  • XO can no longer be installed globally.
    • It caused too many problems. Instead, you can run the local XO binary with $ npx xo.
  • XO now enforces trailing comma in multiline statements.
  • Change operator-linebreak rule to enforce operators before.
    • This way is more readable.

New rules

v0.40.3

Compare Source

v0.40.2

Compare Source

v0.40.1

Compare Source

v0.40.0

Compare Source

Breaking
  • XO now enforces that your project is ESM
    If you cannot yet move to ESM, I recommend staying on XO 0.39 for now.
  • Require Node.js 12.20 cc06c3c
New rules
Meta
  • Move from deprecated ESLint.CLIEngine to ESLint (#​534) 0480d80
    This should hopefully resolve a bunch of issues.

v0.39.1

Compare Source

  • Fix a problem with using XO with Prettier fa34c74

v0.39.0

Compare Source

New rules
Breaking
Improvements
  • Add --print-config flag (#​529) 7b8dc70
  • Disable the import/default rule for TypeScript files e3c511b
  • Disable the import/export rule for TypeScript files b385bee

v0.38.2

Compare Source

  • Disable the node/file-extension-in-import rule for TypeScript projects (#​523) 1eb8230
    It doesn't work properly with TypeScript projects.

v0.38.1

Compare Source

v0.38.0

Compare Source

New rules
Improvements
  • Add auto-fix for fixing file extensions in imports f4f6b39
  • Add .mjs and .cjs as default extensions (#​521) 2e05c81
  • Allow file extension for import/no-unassigned-import allow list 8156d42
Fixes
  • Fix ignored package.json config when using the CLI (#​520) 32bd3b8

v0.37.1

Compare Source

  • Fix TypeScript not supporting extensions f56d90d

v0.37.0

Compare Source

New rules
Renamed rules

Only affects you if you had any of these rules disabled.

  • unicorn/no-fn-reference-in-iteratorunicorn/no-array-callback-reference
  • unicorn/no-array-instanceofunicorn/no-instanceof-array
  • unicorn/no-reduceunicorn/no-array-reduce
  • unicorn/prefer-datasetunicorn/prefer-dom-node-dataset
  • unicorn/prefer-flat-mapunicorn/prefer-array-flat-map
  • unicorn/prefer-replace-allunicorn/prefer-string-replace-all
  • unicorn/prefer-starts-ends-withunicorn/prefer-string-starts-ends-with
  • unicorn/prefer-text-contentunicorn/prefer-dom-node-text-content
  • unicorn/prefer-trim-start-endunicorn/prefer-string-trim-start-end
  • unicorn/prefer-event-keyunicorn/prefer-keyboard-event-key
  • unicorn/prefer-node-appendunicorn/prefer-dom-node-append
  • unicorn/prefer-node-removeunicorn/prefer-dom-node-remove
Improvements
  • Improve ESM compatibility 211f295
  • Enforce errerror for variable names d801095
  • Enforce some inclusive wording 0ec4b8c

v0.36.1

Compare Source

v0.36.0

Compare Source

v0.35.0

Compare Source

New rules
Improvements

v0.34.2

Compare Source

v0.34.1

Compare Source

  • Disable the unicorn/import-style rule for TypeScript projects 77716e2
    It wants to use import path from 'path'; which is not always possible.

v0.34.0

Compare Source

New rules
Improvements

v0.33.1

Compare Source

  • Fix setting multiple of some CLI flags ead63be

v0.33.0

Compare Source

New rules
Improvements

v0.32.1

Compare Source

  • Dependency updates

v0.32.0

Compare Source

v0.31.0

Compare Source

New rules
Improvements

v0.30.0

Compare Source

New rules
Fixes
  • Lock prettier dependency at 2.0.4 until we can resolve #​466
  • Prevent extraneous newline from --stdin --fix (#​460) 07e2762

v0.29.1

Compare Source

v0.29.0

Compare Source

New rules
Improvements

v0.28.3

Compare Source

v0.28.2

Compare Source

v0.28.1

Compare Source

  • Add xo-typescript and prettier/@​typescript-eslint before user extends (#​442) 6c57ff7
  • Change XO cache path to avoid conflicts when upgrading (#​443) fc30597

v0.28.0

Compare Source

New rules
Improvements

v0.27.2

Compare Source

  • Sort file paths before generating unique cache key (#​432) 1807537

v0.27.1

Compare Source

Important: We changed the cache structure, so you'll need to delete node_modules/.cache/xo:

$ rm node_modules/.cache/xo

[v0.27.0](https://redirect.github.com/xojs/xo/


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coveralls
Copy link

coveralls commented May 23, 2025

Coverage Status

coverage: 58.014%. remained the same
when pulling 1aa79f0 on renovate/xo-1.x
into 0f13407 on master.

@renovate renovate bot force-pushed the renovate/xo-1.x branch 4 times, most recently from 4d304f5 to 36f22ee Compare May 31, 2025 12:50
@renovate renovate bot force-pushed the renovate/xo-1.x branch from 36f22ee to 1aa79f0 Compare June 7, 2025 18:50
@renovate renovate bot force-pushed the renovate/xo-1.x branch from 1aa79f0 to 4fc5508 Compare June 23, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant