🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@nvidia-elements/lint

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nvidia-elements/lint

Lint configurations and custom rules for NVIDIA Elements projects, providing Elements-specific HTML and CSS validations.

latest
Source
npmnpm
Version
2.3.0
Version published
Maintainers
2
Created
Source

@nvidia-elements/lint

NVIDIA Design System and UI Agent Harness for AI/ML Factories, Robotics, and Autonomous Vehicles.

The @nvidia-elements/lint package is a utility library that provides Elements-specific lint rules to enforce best practices and prevent common errors when using Elements.

Getting Started

npm install @nvidia-elements/lint

Usage

To apply the default recommended configs import elementsRecommended.

// eslint.config.js
import { elementsRecommended } from '@nvidia-elements/lint/eslint';

/** @type {import('eslint').Linter.Config[]} */
export default [
  ...elementsRecommended
];

Or optionally import language specific configurations.

// eslint.config.js
import { elementsHtmlConfig, elementsCssConfig } from '@nvidia-elements/lint/eslint';

/** @type {import('eslint').Linter.Config[]} */
export default [
  elementsHtmlConfig,
  elementsCssConfig
];
eslint -c ./eslint.config.js --color

Severity

You can individually adjust rules for lint severity. By default rules use error severity.

import { elementsHtmlConfig, elementsCssConfig } from '@nvidia-elements/lint/eslint';

/** @type {import('eslint').Linter.Config[]} */
export default [
  elementsHtmlConfig,
  {
    ...elementsCssConfig,
    rules: {
      '@nvidia-elements/lint/no-unexpected-css-value': 'warn'
    }
  }
];

Rules

RuleDescriptionLanguageSeverity
@nvidia-elements/lint/no-complex-popoversDisallow excessive DOM complexity inside popover elements.HTMLerror
@nvidia-elements/lint/no-deprecated-attributesDisallow use of deprecated attributes in HTML.HTMLerror
@nvidia-elements/lint/no-deprecated-global-attribute-valueDisallow use of deprecated attribute values for nve-* utility attributes.HTMLerror
@nvidia-elements/lint/no-deprecated-css-importsDisallow use of deprecated CSS import paths.CSSerror
@nvidia-elements/lint/no-deprecated-css-variableDisallow use of deprecated CSS custom properties.CSS/HTMLerror
@nvidia-elements/lint/no-deprecated-global-attributesDisallow use of deprecated global utility attributes in HTML.HTMLerror
@nvidia-elements/lint/no-deprecated-icon-namesDisallow use of deprecated icon names.HTMLerror
@nvidia-elements/lint/no-deprecated-packagesDisallow usage of deprecated packages.JSONerror
@nvidia-elements/lint/no-deprecated-popover-attributesDisallow use of deprecated popover attributes.HTMLerror
@nvidia-elements/lint/no-deprecated-slotsDisallow use of deprecated slot APIs.HTMLerror
@nvidia-elements/lint/no-deprecated-tagsDisallow use of deprecated elements in HTML.HTMLerror
@nvidia-elements/lint/no-excessive-primary-actionsLimit primary actions to two per page.HTMLerror
@nvidia-elements/lint/no-invalid-event-listenersDisallow inline event handler attributes in HTML.HTMLerror
@nvidia-elements/lint/no-invalid-invoker-triggersDisallow use of invoker trigger attributes on non-button nve-* elements.HTMLerror
@nvidia-elements/lint/no-missing-control-labelRequire form controls to have an accessible label.HTMLerror
@nvidia-elements/lint/no-missing-gap-spaceRequire gap spacing on row, column, and grid layouts.HTMLerror
@nvidia-elements/lint/no-missing-icon-nameRequire icon elements to have an icon name attribute.HTMLerror
@nvidia-elements/lint/no-missing-popover-triggerRequire popover elements to have a corresponding trigger element.HTMLerror
@nvidia-elements/lint/no-missing-slotted-elementsDisallow use of missing slotted elements.HTMLerror
@nvidia-elements/lint/no-misprefixed-tagsDisallow misprefixed Elements tags that resolve to a known nve-* element.HTMLerror
@nvidia-elements/lint/no-nested-container-typesRequire nested container components to use flat container mode.HTMLerror
@nvidia-elements/lint/no-restricted-attributesDisallow use of invalid API attributes or utility attributes on custom HTML element tags.HTMLerror
@nvidia-elements/lint/no-restricted-container-fullRestrict container="full" to direct children of nve-page.HTMLerror
@nvidia-elements/lint/no-restricted-page-sizingDisallow custom height or width styles on nve-page.HTMLerror
@nvidia-elements/lint/no-slotted-popoversDisallow the slot attribute on popover elements.HTMLerror
@nvidia-elements/lint/no-tailwind-classesDisallow Tailwind CSS utility classes with Elements alternatives, and all Tailwind utilities on nve custom elements.HTMLwarn
@nvidia-elements/lint/no-unexpected-attribute-valueDisallow use of invalid attribute values for nve-* elements.HTMLerror
@nvidia-elements/lint/no-unexpected-css-valueDisallow use of invalid CSS values.CSSerror
@nvidia-elements/lint/no-unexpected-css-variableDisallow use of invalid CSS theme variables.CSSerror
@nvidia-elements/lint/no-unexpected-global-attribute-valueDisallow use of invalid attribute values in HTML.HTMLerror
@nvidia-elements/lint/no-unexpected-input-typeDisallow slotted input elements with a type that does not match the parent Elements component.HTMLerror
@nvidia-elements/lint/no-unexpected-library-dependenciesDisallow incorrect dependency usage of @nvidia-elements packages in consuming libraries.JSONerror
@nvidia-elements/lint/no-unexpected-slot-valueDisallow use of invalid slot values in HTML.HTMLerror
@nvidia-elements/lint/no-unexpected-style-customizationDisallow use of style customization in Elements playground template.HTMLoff
@nvidia-elements/lint/no-unknown-css-variableDisallow use of unknown --nve-* CSS theme variables.CSSerror
@nvidia-elements/lint/no-unknown-tagsDisallow use of unknown nve-* tags.HTMLerror
@nvidia-elements/lint/no-unstyled-typographyRequire typography elements to have nve-text styling applied.HTMLerror
@nvidia-elements/lint/prefer-aria-label-in-compact-containersPrefer aria-label on form controls inside toolbars and page headers.HTMLerror
  • Documentation
  • Changelog
  • GitHub Repo
  • npm

Keywords

nvidia

FAQs

Package last updated on 30 Jul 2026

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