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 Elements projects, providing Elements-specific HTML and CSS validations.

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
189
-12.5%
Maintainers
2
Weekly downloads
 
Created
Source

@nvidia-elements/lint

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.

  • Documentation
  • Changelog
  • GitHub Repo
  • [NPM](https://registry.npmjs.org

Getting Started

# local .npmrc file
registry=https://registry.npmjs.org

# https://registry.npmjs.org
npm login

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-css-importsDisallow use of deprecated CSS import paths.CSSerror
@nvidia-elements/lint/no-deprecated-css-variableDisallow use of deprecated --nve-* CSS theme variables.CSSerror
@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-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 and column layouts.HTMLoff
@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-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-page-sizingDisallow custom height or width styles on nve-page.HTMLerror
@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 @nve 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

FAQs

Package last updated on 06 Apr 2026

Related posts