github xojs/eslint-config-xo v8.0.0

one hour ago

Breaking

  • Require Node.js 22.22.2 0ec8dd1
  • Update to eslint-plugin-unicorn 80 6ebd25e
  • Update to @stylistic/eslint-plugin 6 0ec8dd1
    • @stylistic/no-multi-spaces no longer allows extra spaces to align object property values.
  • Replace @stylistic/array-bracket-newline, @stylistic/array-bracket-spacing, @stylistic/array-element-newline, @stylistic/function-call-argument-newline, @stylistic/object-curly-newline, and @stylistic/object-curly-spacing with @stylistic/list-style 0ec8dd1
    • It checks [] and {} lists, including tuple types, and puts objects, imports, and exports with four or more items on separate lines.
    • Arguments, parameters, and generics are not checked.
  • Remove the xo/import-specifier-newline rule 0ec8dd1
    • @stylistic/list-style now handles import specifiers. Remove any eslint-disable comments for the old rule.
  • Stop linting .cjs and .cts files with XO's rules 0ec8dd1
  • Use the core no-restricted-imports and no-loop-func rules in TypeScript instead of the deprecated @typescript-eslint versions 0ec8dd1
  • Use the default unicorn/name-replacements options, which also check filenames and imports 171abd7 (#137)
  • Disallow a _ prefix on private class members in TypeScript. Use #private or a plain name instead. 0ec8dd1
  • The exported extension and ignore lists are now readonly in the TypeScript types 0ec8dd1

Improvements

  • Lint HTML, CSS, JSON, and Markdown files with the matching eslint-plugin-unicorn presets 6ebd25e
  • Use unicorn/prefer-regexp-exec instead of the overlapping regexp and @typescript-eslint versions 9342241 (#134)
  • Use unicorn/prefer-https instead of @html-eslint/prefer-https in HTML, as it has an autofix 6ebd25e
  • Allow void as a statement in no-void, for void promise.then(…) 6ebd25e
  • Don't enable @stylistic/no-mixed-operators in Prettier modes fc74fa5 (#136)

New rules


v7.0.0...v8.0.0

Don't miss a new eslint-config-xo release

NewReleases is sending notifications on new releases.