Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitovi/eslint-plugin

Package Overview
Dependencies
Maintainers
14
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitovi/eslint-plugin - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

rules/angular/host-listener-click-events-have-key-events.js

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.",
},
},
},
},
};

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc