-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Labels
Description
As pointed out by @AdriVanHoudt in #258 it might be a nice idea to have a shareable configuration.
New rules added to these defaults, would mean breakage though. Not adding these rules would mean an outdated config.
Upgrading the major version for each new rule seems overkill though.
I suggest to add multiple inheritable configs:
extends:
- plugin:eslint-plugin-angular/johnpapa
- plugin:eslint-plugin-angular/bestpractices
- plugin:eslint-plugin-angular/recommended
Where:
johnpapa
enables rules related to John Papa's style guide and new rules to enforce John Papa's style guide are not considered breaking changes.bestpractices
enables rules enforcing the AngularJS best practices.recommended
enables some recommended rules and will not change until a new major release is made. E.g. it enablesdi-unused
.
I'm not sure how the prefixes required by some rules should be handled.