Skip to content

Consider adding monorepo VSCode instructions #128

@wilsonpage

Description

@wilsonpage

When using the very common VSCode Eslint plugin in combination with a 'monorepo setup eg:

- api/
  - .eslintrc
- app/
  - .eslintrc
  - .babelrc

I found (after loosing a morning, lol) that I needed to amend the vscode-eslint settings as follows in order for the inline linter to resolve the module locations:

{
  
  "eslint.workingDirectories": [
    { "directory": "./api", "changeProcessCWD": true },
    { "directory": "./app", "changeProcessCWD": true }
  ]
  
}

Hope this helps someone save a morning!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions