@typescript-eslint/eslint-plugin error: ‘Route’ is defined but never used (no-unused-vars)

The solution is to disable the native no-unused-vars so that only the TS one is enabled. The former is likely to be enabled if you extend a config in ESLint. Add the rules below to your ESLint config.

"rules": {
  "no-unused-vars": "off",
  "@typescript-eslint/no-unused-vars": "error"
}

Leave a Comment

tech