diff --git a/package.json b/package.json index b713553e7..21f599808 100644 --- a/package.json +++ b/package.json @@ -69,8 +69,6 @@ "@eslint/js": "^9.4.0", "@rollup/plugin-typescript": "^11.1.6", "@types/cors": "^2.8.17", - "@types/eslint": "^8.56.10", - "@types/eslint__js": "^8.42.3", "@types/express": "^4.17.21", "@types/js-yaml": "^4.0.9", "@types/jsdom": "^21.1.6", diff --git a/packages/mermaid/src/config.type.ts b/packages/mermaid/src/config.type.ts index 08ad26307..b7cf27e72 100644 --- a/packages/mermaid/src/config.type.ts +++ b/packages/mermaid/src/config.type.ts @@ -1,3 +1,4 @@ +/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 85aafeb5f..e159b8bda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,12 +29,6 @@ importers: '@types/cors': specifier: ^2.8.17 version: 2.8.17 - '@types/eslint': - specifier: ^8.56.10 - version: 8.56.10 - '@types/eslint__js': - specifier: ^8.42.3 - version: 8.42.3 '@types/express': specifier: ^4.17.21 version: 4.17.21 @@ -2850,9 +2844,6 @@ packages: '@types/eslint@8.56.10': resolution: {integrity: sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==} - '@types/eslint__js@8.42.3': - resolution: {integrity: sha512-alfG737uhmPdnvkrLdZLcEKJ/B8s9Y4hrZ+YAdzUeoArBlSUERA2E87ROfOaS4jd/C45fzOoZzidLc1IPwLqOw==} - '@types/estree@0.0.39': resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} @@ -11920,10 +11911,6 @@ snapshots: '@types/estree': 1.0.5 '@types/json-schema': 7.0.15 - '@types/eslint__js@8.42.3': - dependencies: - '@types/eslint': 8.56.10 - '@types/estree@0.0.39': {} '@types/estree@1.0.5': {} diff --git a/scripts/jison/lint.mts b/scripts/jison/lint.mts index 596ce308b..f52010e28 100644 --- a/scripts/jison/lint.mts +++ b/scripts/jison/lint.mts @@ -6,8 +6,9 @@ import { ESLint } from 'eslint'; import jison from 'jison'; const linter = new ESLint({ - overrideConfig: { rules: { 'no-console': 'error' }, parser: '@typescript-eslint/parser' }, - useEslintrc: false, + // @ts-expect-error ESLint types are incorrect + overrideConfigFile: true, + overrideConfig: { rules: { 'no-console': 'error' } }, }); const lint = async (file: string): Promise => {