v20.7.0
Changes to migration plugin (single-use tool, regardless SemVer)
- Better migration plugin by @RobinTail in #1982
- Requirements:
eslint@^9
andtypescript-eslint@^8
(may work with previous versions, but it's no longer tested); rules
andfiles
have to be defined explicitly;- For migrating from v19 use the following minimal config and run
eslint --fix
:
- Requirements:
// eslint.config.js (or .mjs if you're developing in a CommonJS environment)
import parser from "@typescript-eslint/parser";
import migration from "express-zod-api/migration";
export default [
{ languageOptions: { parser }, plugins: { migration } },
{
files: ["**/*.ts"], // define the files need to be migrated (source code)
rules: { "migration/v20": "error" }, // enable the rule explicitly
},
];
Chores
- Replacing ESLint
import-x
plugin withno-restricted-imports
by @RobinTail in #1969 - Replacing
no-restricted-imports
witheslint-plugin-allowed-dependencies
by @RobinTail in #1971 and #1978 - Upgrading all dependencies by @RobinTail in #1968
- dependabot in #1966, #1967, #1970, #1972, #1973, #1974, #1976, #1977, #1979, #1980, #1981, #1983
Full Changelog: v20.6.2...v20.7.0