Socket
Book a DemoInstallSign in
Socket

eslint-plugin-trim

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-trim

## Installation

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

eslint-plugin-trim

Installation

# npm
npm install -D eslint-plugin-trim

# yarn
yarn add -D eslint-plugin-trim

# pnpm
pnpm add -D eslint-plugin-trim

Configuration (legacy: .eslintrc\*)

{
  "plugins": ["trim"],
  "rules": {
    "trim/argument": "warn",
    "trim/class-name": "warn"
  }
}

or

{
  "extends": ["plugin:trim/recommended"]
}

Configuration (new: eslint.config.js)

import trim from 'eslint-plugin-trim';

export default [trim.configs.flat.recommended];

List of supported rules

✔️: Enabled in the recommended configuration.
🔧: Fixable with eslint --fix.

✔️🔧RuleDescription
🔧argumentEnforce argument
🔧class-nameEnforce className

Keywords

eslint

FAQs

Package last updated on 12 Mar 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