Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Linting typescript for in-repo-addons does not work #456

Open
atstoyanov opened this issue Oct 11, 2019 · 0 comments
Open

Linting typescript for in-repo-addons does not work #456

atstoyanov opened this issue Oct 11, 2019 · 0 comments

Comments

@atstoyanov
Copy link

We are using ember 3.12 with typescript. Currently we are migrating to ESLint for linting JavaScript and TypeScript. The project is configured according to the @typescript-eslint project documentation. The linting is working ok in VSCode. When the project is served there are some linting errors:

C:\src\temp\ember312\lib\auto-import\app\app\services\auto-import.js
  0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: C:\src\temp\ember312\lib\auto-import\app\app\services\auto-import.js.
The file must be included in at least one of the projects provided

The error is documented here.

The thing that bothers me is the double app\app folder that doesn't exist in the project. The actual path is C:\src\temp\ember312\lib\auto-import\app\services\auto-import.js.

ember-cli-build configuration

    eslint: {
      extensions: ['js', 'ts']
    }

Any suggestions?

@atstoyanov atstoyanov changed the title Linting typescript and in-repo-addons does not work Linting typescript for in-repo-addons does not work Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant