Skip to content

Document angular versions for rules #274

@tilmanschweitzer

Description

@tilmanschweitzer

There are rules that do not work for all angular version. Therefore the documentation should tell a user for which angular versions a rule makes sense.

Examples - controllerAs was introduced in angular 1.2

/**
 * disallow assignments to `$scope` in controllers
 *
 * ...
 *
 * @styleguideReference {johnpapa} `y031` controllerAs Controller Syntax
 * @version 0.1.0
 * @sinceAngularVersion 1.2
 */

I have no example, but there might be rules that just make sense until a specific angular version. Therefore we might also add a @untilAngularVersion tag as well.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions