Completely ignore files #36
-
How to completely ignore some file? I've set file to unknown section in independent modules but on every import it gives an error. I've already tried to set something like this: {
ignores: ['**/some-file.ts'],
plugins: { 'project-structure': projectStructurePlugin },
rules: {
'project-structure/independent-modules': [
'error',
independentModulesConfig
]
}
} but it doesn't work, do you have some work around? So the plugin will completely close eyes on the specific file |
Beta Was this translation helpful? Give feedback.
Answered by
Igorkowalski94
Feb 20, 2025
Replies: 2 comments 8 replies
-
{
ignores: ['src/example/**', "someFileInProjectRoot.ts", "src/hello.ts", "src/example/**/someFile.ts" ],
plugins: { 'project-structure': projectStructurePlugin },
rules: {
'project-structure/independent-modules': [
'error',
independentModulesConfig
]
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
-
Any ideas? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.