-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Can't reproduceThis doesn't seem rightThis doesn't seem right
Description
Hi!
Help me to figure out next problem.
I use coc-eslint with configuration (CocLocalConfig):
{
"eslint.packageManager": "pnpm",
"eslint.autoFixOnSave": true,
"eslint.options": {
"overrideConfigFile": "eslint.config.mjs"
},
"eslint.workingDirectories": [
{ "mode": "auto" }
],
"eslint.debug": true,
"eslint.experimental.useFlatConfig": true
}
and the project structure ~/work/tld/project/{apps,packages}/src/*
where in each apps and packages there is eslint.config.mjs.
The contents of eslint.config.mjs:
import { config } from '@tld/eslint-config';
export default [
...config,
{
files: ['**/*.ts'],
languageOptions: {
parserOptions: {
project: './tsconfig.json',
},
},
},
];
eslint looks for it in ~/ (have an error Error: Cannot read file '/home/USER/tsconfig.json'.)
Only works if I'm doing cd ~/work/tld/packages/NAME && vim src/to/file.ts
Metadata
Metadata
Assignees
Labels
Can't reproduceThis doesn't seem rightThis doesn't seem right