1.4.0 • Published 2 years ago

eslint-plugin-ng-test-identifier v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ng-test-identifier

ESLint rule to make sure that all elements have an unique test identifier. (data-test attribute by default)

When running eslint with --fix option, this rule adds data-test attribute with random value for all elements (except ng-container/ng-content/ng-template).

Random value is generated using nanoid, and the length and alphabet are configurable.

Example configuration:

{
  "rules": {
    "ng-test-identifier": ["error", {"randomTextOptions": {"length": 8, "alphabet": "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}, "tagName": "data-test"}]
  }
}
1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago