Breaking
- The
space,semicolon, andprettieroptions are now global only. Setting them in a config item that also hasfiles,ignores, orbasePaththrows an error. Use the@stylistic/indent,@stylistic/semi, andprettier/prettierrules for file-specific overrides. (#895) unicorn/prefer-minimal-ternary: ThecheckVaryingCalleeoption is renamed tocheckVaryingBase
Improvements
- Lint
package.jsonfiles witheslint-package-json - The
spaceoption 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-.tsimport convention (replacesimport-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
n/prefer-process-get-builtin-moduleunicorn/no-async-iterator-callbackunicorn/no-multiple-promise-resolver-callsunicorn/no-shorthand-property-overridesunicorn/no-transition-allunicorn/no-unnecessary-string-trimunicorn/no-unsafe-sqlite-interpolationunicorn/no-unused-builtin-method-return(replacesunicorn/no-unused-array-method-return)unicorn/no-unused-iterator-helperunicorn/no-useless-re-exportunicorn/no-useless-set-constructionunicorn/no-using-resource-escapeunicorn/prefer-combined-guardsunicorn/prefer-dom-node-html-methodsunicorn/prefer-iterator-zipunicorn/prefer-temporal-conversionunicorn/prefer-then-catchunicorn/single-line-block-comment-stylenode-test/no-duplicate-mock-timers-enablenode-test/no-expect-failure-without-reasonnode-test/no-import-test-filesnode-test/no-late-test-activitynode-test/no-misused-context-hooknode-test/no-mock-module-after-importnode-test/no-process-chdir-in-testnode-test/no-test-global-configurationnode-test/prefer-mock-accessornode-test/prefer-mock-call-countnode-test/valid-test-tags