Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant