flaviostutz / monolint

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

module-folder-structure: add fix capability #37

Open flaviostutz opened 1 year ago

flaviostutz commented 1 year ago

When a "simple" folder structure is required, "fix" creates those folders.

Example:

{
  "rules": {
    "module-folder-structure": {
      "strict": false,
      "folders": [
        "src",
        "libs/**/release"
      ]
    }
  }
}

In case a module has no folders in it:

In case a module has folder "src" and "libs/mylib":

The overall idea with the rules is to iteratively work with the dev, in the loop. It shows an issue, the dev fix something, it fixes another and shows new issues on and on... until all is fixed. This will be nice specially when we have our VSCode plugin #12

@sergioflores-j @tiagostutz what do you think?

tiagostutz commented 1 year ago

Nice one.!! I'll tackle that on my open source friday!

flaviostutz commented 1 year ago

🎉