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

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

@atstoyanov

Description

@atstoyanov

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?

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