You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in [eslint] Error while loading rule '@typescript-eslint/consistent-type-assertions': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
看样子是parserOptions.project这里要写tsconfig.json的位置,配置了但还是没生效,求解。 "devDependencies": { "@babel/core": "^7.22.20", "@babel/eslint-parser": "^7.22.15", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "@vue/cli-plugin-babel": "~5.0.8", "@vue/cli-plugin-eslint": "~5.0.8", "@vue/cli-plugin-pwa": "~5.0.8", "@vue/cli-plugin-router": "~5.0.8", "@vue/cli-plugin-typescript": "~5.0.8", "@vue/cli-plugin-vuex": "~5.0.8", "@vue/cli-service": "~5.0.8", "@vue/eslint-config-typescript": "^12.0.0", "eslint": "^8.49.0", "eslint-config-alloy": "^5.1.2", "eslint-plugin-vue": "^9.17.0", "less": "^4.2.0", "less-loader": "^8.1.1", "typescript": "~5.2.2", "vue-eslint-parser": "^9.3.1" }
The text was updated successfully, but these errors were encountered:
ERROR in [eslint] Error while loading rule '@typescript-eslint/consistent-type-assertions': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
看样子是parserOptions.project这里要写tsconfig.json的位置,配置了但还是没生效,求解。
"devDependencies": { "@babel/core": "^7.22.20", "@babel/eslint-parser": "^7.22.15", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "@vue/cli-plugin-babel": "~5.0.8", "@vue/cli-plugin-eslint": "~5.0.8", "@vue/cli-plugin-pwa": "~5.0.8", "@vue/cli-plugin-router": "~5.0.8", "@vue/cli-plugin-typescript": "~5.0.8", "@vue/cli-plugin-vuex": "~5.0.8", "@vue/cli-service": "~5.0.8", "@vue/eslint-config-typescript": "^12.0.0", "eslint": "^8.49.0", "eslint-config-alloy": "^5.1.2", "eslint-plugin-vue": "^9.17.0", "less": "^4.2.0", "less-loader": "^8.1.1", "typescript": "~5.2.2", "vue-eslint-parser": "^9.3.1" }
The text was updated successfully, but these errors were encountered: