Skip to content

Add shareable configuration #354

@remcohaszing

Description

@remcohaszing

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 enables di-unused.

I'm not sure how the prefixes required by some rules should be handled.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions