User-defined extended diagnostics #48117
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
compiler: extended diagnostics
feature: under consideration
Feature request for which voting has completed and the request is now under consideration
feature
Issue that requests a new feature
P4
A relatively minor issue that is not relevant to core functions
Milestone
Which @angular/* package(s) are relevant/related to the feature request?
compiler-cli
Description
With great pleasure I looked at the new possibilities of extended diagnostics, but unfortunately I found out that there is no possibility to extend it myself.
For the moment I can patch the execution to inject some own checks but it feels not awesome.
Proposed solution
I think a good way to add some own rules would be a similar system like the builders schema.
You define within a checks.json file all supported rules, each rule can have a schema.json file to handle all configuration parameters.
The angular.json file contains a list of extending check sets on root level (same level as projects) and load all rules during build, serve, etc.
The tsconfig.json file lists all checks also custom ones. If a custom one is not listed, it won't be enabled.
Alternatives considered
to be considered
The text was updated successfully, but these errors were encountered: