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-spacesno 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-spacingwith@stylistic/list-style0ec8dd1- 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.
- It checks
- Remove the
xo/import-specifier-newlinerule 0ec8dd1@stylistic/list-stylenow handles import specifiers. Remove anyeslint-disablecomments for the old rule.
- Stop linting
.cjsand.ctsfiles with XO's rules 0ec8dd1 - Use the core
no-restricted-importsandno-loop-funcrules in TypeScript instead of the deprecated@typescript-eslintversions 0ec8dd1 - Use the default
unicorn/name-replacementsoptions, which also check filenames and imports 171abd7 (#137) - Disallow a
_prefix onprivateclass members in TypeScript. Use#privateor a plain name instead. 0ec8dd1 - The exported extension and ignore lists are now
readonlyin the TypeScript types 0ec8dd1
Improvements
- Lint HTML, CSS, JSON, and Markdown files with the matching
eslint-plugin-unicornpresets 6ebd25e - Use
unicorn/prefer-regexp-execinstead of the overlappingregexpand@typescript-eslintversions 9342241 (#134) - Use
unicorn/prefer-httpsinstead of@html-eslint/prefer-httpsin HTML, as it has an autofix 6ebd25e - Allow
voidas a statement inno-void, forvoid promise.then(…)6ebd25e - Don't enable
@stylistic/no-mixed-operatorsin Prettier modes fc74fa5 (#136)
New rules
@stylistic/list-styleno-loop-funcno-useless-assignment@typescript-eslint/method-signature-style@typescript-eslint/no-confusing-non-null-assertion@typescript-eslint/no-misused-spread@typescript-eslint/no-mixed-enums@typescript-eslint/no-unnecessary-parameter-property-assignment@typescript-eslint/no-unsafe-enum-assignment@typescript-eslint/no-unsafe-unary-minusunicorn/no-nullunicorn/prefer-awaitunicorn/prefer-options-parameterunicorn/prefer-regexp-execunicorn/require-spread-parenthesesunicorn/no-invalid-file-input-acceptunicorn/no-useless-undefined- JavaScript only.
unicorn/no-invalid-argument-count- JavaScript only.
n/prefer-global/crypton/prefer-global/timersjsdoc/ts-method-signature-stylepackage-json/no-local-dependenciespackage-json/no-exact-peer-dependenciespackage-json/no-redundant-repository-fieldspackage-json/restrict-fields-when-private