Skip to content

Issues related to packages in monorepo #2218

@lifeiscontent

Description

@lifeiscontent

Repro

It's a private repo I can give one of the maintainers access.

{
  "env": {
    "browser": true,
    "es6": true,
    "jest": true,
    "node": true
  },
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended-requiring-type-checking",
    "plugin:@typescript-eslint/recommended",
    "plugin:cypress/recommended",
    "plugin:prettier/recommended",
    "plugin:react/recommended",
    "plugin:testing-library/recommended",
    "prettier",
    "prettier/@typescript-eslint"
  ],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    },
    "ecmaVersion": 2020,
    "project": [
      "tsconfig.json",
      "packages/*/tsconfig.json",
      "apps/*/tsconfig.json"
    ],
    "sourceType": "module"
  },
  "plugins": [
    "cypress",
    "@typescript-eslint",
    "prettier",
    "react-hooks",
    "react",
    "testing-library"
  ],
  "root": true,
  "rules": {
    "@typescript-eslint/no-unused-vars": [
      "error",
      { "argsIgnorePattern": "^_" }
    ],
    "prettier/prettier": "error",
    "react-hooks/exhaustive-deps": "warn",
    "react-hooks/rules-of-hooks": "error",
    "react/jsx-filename-extension": [
      2,
      { "extensions": [".js", ".jsx", ".tsx"] }
    ]
  },
  "settings": {
    "react": {
      "pragma": "React",
      "version": "detect"
    },
    "import/parsers": {
      "@typescript-eslint/parser": [".ts", ".tsx"]
    },
    "import/resolver": {
      "typescript": {}
    }
  }
}
// your repro code case

Expected Result

no errors

Actual Result
20:16 error Unsafe assignment of an any value @typescript-eslint/no-unsafe-assignment

Additional Info
@typescript-eslint/parser doesn't seem to be seeing my source code for some of my packages in the monorepo.

Versions

package version
@typescript-eslint/parser 3.3.0
TypeScript 3.9.5
ESLint 7.2.0
node 12.8.1
npm 6.14.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    fix: user errorissue was fixed by correcting the configuration / correcting the codepackage: parserIssues related to @typescript-eslint/parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions