Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: xojs/xo

v4.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 06 Jul 23:25

Improvements

  • Lint node:test files with the new eslint-node-test plugin
  • Recognize any tool's *-ignore/*:ignore comment (like svelte-ignore), not just a hardcoded list, for capitalized-comments

New rules


v3.0.2...v4.0.0

v3.0.2

Choose a tag to compare

@sindresorhus sindresorhus released this 19 Jun 07:54
  • Fix --fix corrupting TypeScript files outside the tsconfig 7baa7f2

v3.0.1...v3.0.2

v3.0.1

Choose a tag to compare

@sindresorhus sindresorhus released this 18 Jun 00:08
  • Fix type resolution for TypeScript files outside the tsconfig 91d3e6d

v3.0.0...v3.0.1

v3.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 16 Jun 22:58

Breaking

  • Requires Node.js 22
  • Removed built-in React support.
    • Add eslint-config-xo-react to your config instead. Learn more
    • It was removed to keep XO's core lean and framework-agnostic. Bundling eslint-plugin-react for everyone held XO back by its slow ESLint-major support, and there's now a competing plugin, @eslint-react, so picking one for all users no longer makes sense.
  • The bundled rules now live in a single eslint-config-xo package. The separate eslint-config-xo-typescript package is merged into it.
    • If you prefer using ESLint directly, you can get all the rules there now.
  • Replaced the xoToEslintConfig export with the xo/eslint-adapter import for editor/ESLint integration. For example, xoToEslintConfig([{space: true, prettier: true}]) becomes eslintConfigXo({space: true, prettier: true}) from eslint-config-xo, or simply export {default} from 'xo/eslint-adapter';.

Improvements

  • Lint CSS, Markdown, HTML, JSDoc comments, and regular expressions out of the box
  • Add --max-warnings flag to treat warnings as errors (#724)
  • Add ESLint bulk suppression support (#826)
  • Hide warnings when there are errors, so you can focus on what matters (#507)
  • Respect the global gitignore (#803)
  • Allow overriding default ignores with negation patterns (#65)
  • Throw when no files match explicitly provided patterns

New rules

Read more

v2.0.2

Choose a tag to compare

@sindresorhus sindresorhus released this 14 Mar 19:32
  • Fix react and prettier: 'compat' configs failing when files is not specified bde9854

v2.0.1...v2.0.2

v2.0.1

Choose a tag to compare

@sindresorhus sindresorhus released this 14 Mar 18:17

v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 14 Mar 08:37

Breaking

  • Requires Node.js 20.19
  • Requires ESLint 10
  • Removed CommonJS config file support (use .js/.mjs/.ts/.mts instead)
  • Temporarily removed eslint-plugin-promise rules (pending ESLint 10 compatibility)

Improvements

  • Default to content-based cache strategy for faster re-linting
  • Show warning when explicitly specified files are ignored
  • Accept ESLint-native files format in config
  • Simplified TypeScript handling by using in-memory programs
  • Fix linting of files starting with a dot
  • Fix cwd for case-sensitive filesystems

New rules


v1.2.3...v2.0.0

v1.2.3

Choose a tag to compare

@sindresorhus sindresorhus released this 07 Oct 02:06
  • Add support for Vue, Svelte, and Astro file extensions (#845) d1aea04
  • Fix prettier integration being broken due to nullish coalescing misuse (#836) b41471f

v1.2.2...v1.2.3

v1.2.2

Choose a tag to compare

@sindresorhus sindresorhus released this 15 Aug 11:27
  • Fix indent-binary-ops configuration for spaces (#825) d5c2522

v1.2.1...v1.2.2

v1.2.1

Choose a tag to compare

@sindresorhus sindresorhus released this 18 Jul 16:48

v1.2.0...v1.2.1