github xojs/xo v5.0.0

one day ago

Breaking

  • The space, semicolon, and prettier options are now global only. Setting them in a config item that also has files, ignores, or basePath throws an error. Use the @stylistic/indent, @stylistic/semi, and prettier/prettier rules for file-specific overrides. (#895)
  • unicorn/prefer-minimal-ternary: The checkVaryingCallee option is renamed to checkVaryingBase

Improvements

  • Lint package.json files with eslint-package-json
  • The space option now also applies to HTML files
  • Enforce import file extensions in TypeScript with n/file-extension-in-import, which auto-fixes and understands TypeScript's .js-for-.ts import convention (replaces import-x/extensions)
  • Disable @stylistic/function-paren-newline
  • Update to eslint-plugin-unicorn 75
  • Update to eslint-node-test 0.4

Fixes

  • Fix TypeScript file matching on Windows (#896)

New rules


v4.0.0...v5.0.0

Don't miss a new xo release

NewReleases is sending notifications on new releases.