neoclide / coc-eslint

Eslint extension for coc.nvim
MIT License
396 stars 25 forks source link

Parsing error: ESLint was configured to run on .... However that TSConfig does not include this file #138

Closed wikanonymous-dev closed 1 year ago

wikanonymous-dev commented 1 year ago

Hi, im just facing problem with configured .eslintrc.js and tsconfig.eslint.json. coc-eslint gave me error that files not included either at tsconfig or eslintrc (means that coc-eslint work with my eslint configuration) but I don't know why coc-eslint still gave me that error.

Error occured inside /src directory.

Related dependecies version:

coc-eslint: 1.5.8
eslint: 8.23.1

.eslintrc.js

> module.exports = {
>   extends: [
>     'standard-with-typescript',
>     'plugin:vue/vue3-recommended',
>     '@vue/eslint-config-typescript',
>     'plugin:unicorn/recommended',
>   ],
>   plugins      : ['align-assignments', 'unicorn'],
>   parserOptions: {
>     project: './tsconfig.eslint.json',
>     parser : {
>       'ts'        : '@typescript-eslint/parser',
>       'js'        : 'espree',
>       '<template>': 'espree',
>     },
>   },
> }

tsconfig.eslint.json

> {
>   "extends": "./tsconfig.json",
>   "include": [
>     "src/**/*.vue",
>     "src/**/*.ts",
>     "src/.vitepress/**/*.ts",
>     "src/.vitepress/**/*.vue",
>     "packages/**/*.ts",
>     "packages/**/*.js",
>     "packages/**/*.vue",
>     "cypress/**/*.ts",
>     "types/**/*.d.ts",
>     ".eslintrc.js",
>     "postcss.config.js",
>     "tailwind.config.js",
>     "tailwind.animation.js",
>     "vite.config.ts",
>     "vitest.config.ts",
>     "cypress.config.ts",
>     "vitest.setup.ts"
>   ],
>   "exclude": [
>     "node_modules",
>     "coverage",
>     "dist",
>     ".nuxt"
>   ]
> }
> 
Screen Shot 2022-12-14 at 15 09 51

What should I do to fix that error diagnostic? Thanks

chemzqm commented 1 year ago
Screenshot 2022-12-14 at 21 47 56