otter icon indicating copy to clipboard operation
otter copied to clipboard

[Feature]: Split the linter plugin to multiple plugins

Open kpanot opened this issue 11 months ago • 1 comments

Context

Today Otter exposes one single plugin with rules dedicated to different features. In the current setup, all the Otter Linter rules are per default activated which require additional dependency to an application that would not use it in its own code.

Proposal

  • [ ] Split the code of the plugin to the dedicated package
  • [ ] Expose the linter plugin and it's recommended configuration as subentries
  • [ ] The additional required dependencies should be peer optional dependencies
  • [ ] A package to share helpers may need to be created
  • [ ] The @o3r/eslint-config-otter package should setup the rules of the modules provided by the application (using import() ?).
  • [ ] An ngUpdate should be provided to @o3r/eslint-plugin to migrate to the import of the different packages
  • [ ] @o3r/eslint-plugin should be deprecated

kpanot avatar Mar 13 '24 07:03 kpanot

We could check depending on the package installed which rules applied (today we have the configuration). We could also have 1 plugin / module as a package.

pginoux-1A avatar Jun 05 '24 08:06 pginoux-1A