Skip to content
Discussion options

You must be logged in to vote

Your scenario is no different from simply allowing the import.

Allowing an import === Ignoring the error for that import

If you want to ignore/allow the same imports between modules, you can use reusableImportPatterns or simply create a variable.

{
  modules: [
    {
      name: "Module1",
      pattern: "src/module1/**",
      allowImportsFrom: ["{sharedIgnoredFiles}", "src/module1/**"],
    },
    {
      name: "Module 2",
      pattern: "src/module2/**",
      allowImportsFrom: ["{sharedIgnoredFiles}", "src/module2/**"],
    },
  ],
  reusableImportPatterns: {
    sharedIgnoredFiles: ["src/file1.ts", "src/folder1/file2.ts"],
  },
}

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@Igorkowalski94
Comment options

@Igorkowalski94
Comment options

@chertik77
Comment options

Comment options

You must be logged in to vote
5 replies
@Igorkowalski94
Comment options

@chertik77
Comment options

@Igorkowalski94
Comment options

@Igorkowalski94
Comment options

Answer selected by chertik77
@chertik77
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants