flaviostutz / monolint

Linter for monorepos. Checks folder structure, module contents, file contents and naming conventions
MIT License
7 stars 4 forks source link

Ignore all files in a folder that is not a module #86

Open roneyrogerio opened 1 year ago

roneyrogerio commented 1 year ago

Some times is necessary to ignore the whole content in folders like .github, .serverless, node_modules ... Today the .monolintignore only ignores modules, the ideal would be to ignore folders that are not modules too.

flaviostutz commented 1 year ago

That's a good one! So instead of using the monolintignore only during the modules discovery you mean to use it for all files, even if outside modules.

This can be tricky because the rules could look for folders at will (outside modules) and the core plugin wouldn't have control over this.

Maybe we could filter out the results whose "resource" attribute matches the "monolintignore" instructions?