ember-cli-eslint icon indicating copy to clipboard operation
ember-cli-eslint copied to clipboard

Linting typescript for in-repo-addons does not work

Open atstoyanov opened this issue 5 years ago • 0 comments

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 avatar Oct 11 '19 11:10 atstoyanov