diff --git a/.eslintrc.cjs b/.eslintrc.cjs index cae97e586..f19da3f02 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -48,6 +48,8 @@ module.exports = { 'no-prototype-builtins': 'off', 'no-unused-vars': 'off', 'cypress/no-async-tests': 'off', + '@typescript-eslint/no-unused-vars': 'warn', + '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-misused-promises': 'error', '@typescript-eslint/ban-ts-comment': [ diff --git a/packages/mermaid/scripts/create-types-from-json-schema.mts b/packages/mermaid/scripts/create-types-from-json-schema.mts index 836aaa448..8e5ca783d 100644 --- a/packages/mermaid/scripts/create-types-from-json-schema.mts +++ b/packages/mermaid/scripts/create-types-from-json-schema.mts @@ -24,6 +24,7 @@ import _Ajv2019, { type JSONSchemaType } from 'ajv/dist/2019.js'; // Workaround for wrong AJV types, see // https://github.com/ajv-validator/ajv/issues/2132#issuecomment-1290409907 +// @ts-ignore Incorrect types const Ajv2019 = _Ajv2019 as unknown as typeof _Ajv2019.default; // !!! -- The config.type.js file is created by this script -- !!!