vuejs / eslint-config-typescript

ESLint configuration for Vue 3 + TypeScript projects
MIT License
129 stars 30 forks source link

ESLint: Parsing error: DeprecationError: 'originalkeywordkind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind (identifier)' instead. #77

Closed Bohilc closed 3 weeks ago

Bohilc commented 5 months ago

Problem:

image

Environment:

IDE: WebStorm Config file: .eslintrc.cjs Framework: Vue 3

/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
  root: true,
  extends: [
    "plugin:vue/vue3-essential",
    "eslint:recommended",
    "@vue/eslint-config-typescript/recommended", // <- HERE THE PROBLEM
    "@vue/eslint-config-prettier",
  ],
  overrides: [
    {
      files: ["cypress/e2e/**.{cy,spec}.{js,ts,jsx,tsx}"],
      extends: ["plugin:cypress/recommended"],
    },
  ],
  parserOptions: {
    ecmaVersion: "latest",
  },
};

Solution suggestion:

Use identifier ToKeywordKind(identifier) instead of originalKeywordKind

haoqunjiang commented 3 weeks ago

It seems to be due to outdated @typescript-eslint/* versions. I guess it's from @vue/eslint-config-typescript v11? Anyway, this issue should have been fixed in the latest release.