eidellev / inertiajs-adonisjs

280 stars 17 forks source link

How to resolve ESlint to work with vue extension? #103

Closed marcelodelta closed 1 year ago

marcelodelta commented 1 year ago

Parsing error: ESLint was configured to run on <tsconfigRootDir>/resources\js\Pages\Home.vue using parserOptions.project: /tsconfig.json The extension for the file (.vue) is non-standard. You should add parserOptions.extraFileExtensions to your config.

eidellev commented 1 year ago

Hi @marcelodelta This is a bit out of the scope of this library. What I personally do in my projects is to have a separate tsconfig.json and eslint configs for my client code and for my server.

See this for how to set up eslint with Vue.