New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-salute-react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-salute-react

Salute eslint plugin for react

  • 0.0.0-canary-20250211071757
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-salute-react

ESLint plugin for React applications with custom rules to enforce best practices.

Installation

npm install --save-dev eslint-plugin-salute-react
# or
yarn add -D eslint-plugin-salute-react
# or
pnpm add -D eslint-plugin-salute-react

Requirements

  • ESLint v8.50.0 or v9.0.0+
  • @typescript-eslint/eslint-plugin >= 8.0.0
  • @typescript-eslint/parser >= 8.0.0

Configuration

// eslint.config.js
import salute from "eslint-plugin-salute-react";

export default [
  // Use recommended config
  salute.configs.recommended,

  // Or configure rules individually
  {
    plugins: { "salute-react": salute },
    rules: {
      "salute-react/no-memoized-primitives": "error",
      "salute-react/no-modifying-ref-on-render": "error",
      "salute-react/no-redundant-commit": "error",
      "salute-react/prefer-lazy-state-initialization": "error",
    },
  },
];

Legacy Config

// .eslintrc.js or .eslintrc.json
{
  "plugins": ["salute-react"],
  "extends": ["plugin:salute-react/recommended"],
  // Or configure rules individually
  "rules": {
    "salute-react/no-memoized-primitives": "error",
    "salute-react/no-modifying-ref-on-render": "error",
    "salute-react/no-redundant-commit": "error",
    "salute-react/prefer-lazy-state-initialization": "error"
  }
}

Rules

RuleDescription
no-memoized-primitivesPrevents unnecessary memoization of primitive values
no-modifying-ref-on-renderPrevents modifying refs during render
no-redundant-commitPrevents redundant commits in React state updates
prefer-lazy-state-initializationEnforces lazy initialization for expensive state computations

License

MIT

FAQs

Package last updated on 11 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc