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

Linter error. This may be a problem with tsconfig.json #2

Open
bshambaugh opened this issue Jun 28, 2022 · 1 comment
Open

Linter error. This may be a problem with tsconfig.json #2

bshambaugh opened this issue Jun 28, 2022 · 1 comment

Comments

@bshambaugh
Copy link
Owner

I have a linter error:

/home/ubuntu/Documents/exploringCIDs/elliptic-piece/did-key-creator/src/index.ts
  0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: src/index.ts.
The file must be included in at least one of the projects provided

bshambaugh
3 hours ago
This is a potential solution:https://stackoverflow.com/questions/63879049/what-means-parsing-error-parseroptions-project-has-been-set-for-typescript This is my tsconfig.json:

{
   "compilerOptions": {
     "module": "commonjs",
     "lib": ["es6", "dom", "esnext"],
     "target": "ES2020",
     "declaration": true,
     "declarationMap": true,
     "skipLibCheck": true,
     "resolveJsonModule": true,
     "removeComments": true,
     "esModuleInterop": true,
     "emitDecoratorMetadata": true,
     "experimentalDecorators": true,
     "sourceMap": true,
     "typeRoots": [
       "./types", "node_modules/@types"
     ],
     "outDir":"lib",
     "rootDir":"src"
  },
  "include": [
    "src/*","src/**/*","src/"
  ]
}

include is a mess because I have been playing around with it thinking that changing it is the way.

"include": [
    "src/*","src/**/*","src/"
  ]
@bshambaugh
Copy link
Owner Author

Try this and see if it helps:

https://www.typescriptlang.org/docs/handbook/tsconfig-json.html

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