@bitovi/eslint-plugin
Advanced tools
Comparing version 1.0.0 to 1.0.1
27
index.js
@@ -1,11 +0,30 @@ | ||
const hostListenerClickEventsHaveKeyEvents = require("./rules/host-listener-click-events-have-key-events"); | ||
const hostListenerMouseEventsHaveKeyEvents = require("./rules/host-listener-mouse-events-have-key-events"); | ||
const hostListenerClickEventsHaveKeyEvents = require("./rules/angular/host-listener-click-events-have-key-events"); | ||
const hostListenerMouseEventsHaveKeyEvents = require("./rules/angular/host-listener-mouse-events-have-key-events"); | ||
module.exports = { | ||
rules: { | ||
"host-listener-click-events-have-key-events": | ||
"angular/host-listener-click-events-have-key-events": | ||
hostListenerClickEventsHaveKeyEvents, | ||
"host-listener-mouse-events-have-key-events": | ||
"angular/host-listener-mouse-events-have-key-events": | ||
hostListenerMouseEventsHaveKeyEvents, | ||
// TO-DO: on next major version (2), remove deprecated rules | ||
"host-listener-click-events-have-key-events": { | ||
...hostListenerClickEventsHaveKeyEvents, | ||
meta: { | ||
messages: { | ||
hostListenerClickEventsHaveKeyEvents: | ||
"DEPRECATED RULE: please use the new angular/host-listener-click-events-have-key-events rule. HostListener click must be accompanied by either keyup, keydown or keypress event for accessibility.", | ||
}, | ||
}, | ||
}, | ||
"host-listener-mouse-events-have-key-events": { | ||
...hostListenerMouseEventsHaveKeyEvents, | ||
meta: { | ||
messages: { | ||
hostListenerMouseEventsHaveKeyEvents: | ||
"DEPRECATED RULE: please use the new angular/host-listener-mouse-events-have-key-events rule. HostListener {{ mouseEvent }} must be accompanied by {{ keyEvent }} event for accessibility.", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
{ | ||
"name": "@bitovi/eslint-plugin", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Bitovi's Custom ESLint Rules for @bitovi/eslint-config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,8 +9,16 @@ # @bitovi/eslint-plugin | ||
#### host-listener-click-events-have-key-events | ||
#### angular/host-listener-click-events-have-key-events | ||
Class equivalent to [@angular-eslint/template/click-events-have-key-events](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/click-events-have-key-events.md) | ||
#### host-listener-mouse-events-have-key-events | ||
#### angular/host-listener-mouse-events-have-key-events | ||
Class equivalent to [@angular-eslint/template/mouse-events-have-key-events](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/mouse-events-have-key-events.md) | ||
#### host-listener-click-events-have-key-events (DEPRECATED) | ||
Class equivalent to [@angular-eslint/template/click-events-have-key-events](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/click-events-have-key-events.md) | ||
#### host-listener-mouse-events-have-key-events (DEPRECATED) | ||
Class equivalent to [@angular-eslint/template/mouse-events-have-key-events](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/mouse-events-have-key-events.md) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8062
138
24
1