New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@solid-design-system/eslint-plugin

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-design-system/eslint-plugin

ESLint custom rules for the Solid Design System component library

latest
npmnpm
Version
1.0.2
Version published
Maintainers
4
Created
Source

@solid-design-system/eslint-plugin

Overview

This package is a custom ESLint plugin designed to extend linting capabilities in your project. It provides custom ESLint rules to the Solid Design System component library, helping to enforce coding standards and catch potential issues when working with the library.

Installation

npm install --save-dev @solid-design-system/eslint-plugin

or with Yarn:

yarn add --dev @solid-design-system/eslint-plugin

Configuration

Minimal configuration

import sds from '@solid-design-system/eslint-plugin';

export default [
  {
    ...sds.configs.recommended,
    files: ['**/*.{html,jsx}']
  }
];
import sds from '@solid-design-system/eslint-plugin';

export default [
  {
    ...sds.configs.recommended,
    files: ['**/*.{html,jsx}'],
    rules: {
      ...sds.configs.recommended.rules, // Must be defined. If not, all recommended rules will be lost
      '@solid-design-system/required-sd-icon-label': 'error'
    }
  }
];

Adding New Rules

  • Create a new file for the rule under the src/rules directory.
  • Implement the rule logic and export it.
  • Update the index.ts file in src/rules to include the new rule.
  • Add corresponding documentation under docs/rules/.
  • Create necessary tests to cover both valid and invalid scenarios.

Testing

Run the tests to verify rule behavior:

npm test

Keywords

eslint

FAQs

Package last updated on 08 Oct 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