Skip to content

"Parsing error: File 'tsconfig.json' not found" when path has any caps and is on non-system drive (C:). #1580

Closed
@matracey

Description

@matracey

What code were you trying to parse?

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "module": "esnext",
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ]
  },
  "angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true
  }
}

What did you expect to happen?
I expected the tslint.json file to be parsed and for the eslint results to be returned.

What actually happened?
I received an Parsing error: File 'tsconfig.json' not found.

I have created a repository where the issue can be easily reproduced by cloning on Windows to a drive that isn't your system drive (C: in most cases).

Versions

package version
@typescript-eslint/parser ^2.19.0
TypeScript ~3.7.5
ESLint ^6.8.0
node 13.7.0
npm 6.13.6

Metadata

Metadata

Assignees

Labels

externalThis issue is with another package, not typescript-eslint itselfpackage: typescript-estreeIssues related to @typescript-eslint/typescript-estreeworking as intendedIssues that are closed as they are working as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions