Socket
Book a DemoInstallSign in
Socket

eslint-plugin-rics

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-rics

ESLint plugin for rics CSS preprocessor

latest
Source
npmnpm
Version
0.3.20
Version published
Maintainers
1
Created
Source

rics

npm version minzipped size downloads

ESLint plugin for linting rics files.

Installation

npm install eslint-plugin-rics

Usage

Flat Config (ESLint 9+)

// eslint.config.js
import ricsPlugin from "eslint-plugin-rics";

export default [
  {
    files: ["**/*.rics"],
    ...ricsPlugin.configs.recommended,
    plugins: { rics: ricsPlugin },
  },
];

Legacy Config (ESLint 8)

{
  "plugins": ["rics"],
  "overrides": [
    {
      "files": ["*.rics"],
      "extends": ["plugin:rics/recommended"]
    }
  ]
}

Rules

rics/no-compile-errors

Reports rics compilation errors.

{
  rules: {
    "rics/no-compile-errors": "error",
  },
}

rics/no-compile-warnings

Reports rics compilation warnings.

{
  rules: {
    "rics/no-compile-warnings": "warn",
  },
}

rics/max-nesting-depth

Limits nesting depth in rics files.

{
  rules: {
    "rics/max-nesting-depth": ["warn", { max: 4 }],
  },
}

The recommended configuration enables:

  • rics/no-compile-errors: error
  • rics/no-compile-warnings: warn

License

MIT

Built by Better Lyrics

Keywords

eslint

FAQs

Package last updated on 28 Dec 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