Socket
Book a DemoInstallSign in
Socket

@theforeman/eslint-plugin-rules

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theforeman/eslint-plugin-rules

Eslint custom rules for the foreman

latest
Source
npmnpm
Version
15.0.1
Version published
Weekly downloads
697
99.71%
Maintainers
2
Weekly downloads
 
Created
Source

Eslint Plugin Rules

About

Place for eslint custom rules for Foreman and plugins

Usage

Create an eslintrc file

{
  "plugins": ["@theforeman/rules"],
  "rules": {
    "@theforeman/rules/require-ouiaid": "warn",
  }
}

ouiaId prop is used in automation tests. An example can be found here.

If not specified in the eslintrc file, these components will be checked for an ouiaId prop:

  "Alert",
  "Breadcrumb",
  "Button",
  "Card",
  "Checkbox",
  "Chip",
  "ChipGroup",
  "ContextSelector",
  "Dropdown",
  "DropdownItem",
  "DropdownSeparator",
  "DropdownToggle",
  "DropdownToggleCheckbox",
  "FormSelect",
  "Menu",
  "Modal",
  "ModalBoxCloseButton",
  "ModalContent",
  "Nav",
  "NavExpandable",
  "NavItem",
  "OptionsMenu",
  "Pagination",
  "Radio",
  "RowWrapper",
  "Select",
  "Switch",
  "TabButton",
  "TabContent",
  "Tabs",
  "Text",
  "TextInput",
  "Title",
  "Toolbar",
  "Table",
  "TableComposable",
  "Tr"

You can specify what components you want to check against.

{
  "plugins": ["@theforeman/rules"],
  "rules": {
    "@theforeman/rules/require-ouiaid": [
      "warn",
      "Button",
      "Table",
    ]
  }

Here is the list of OUIA-compliant PatternFly 4 components.

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts