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

@swarmion/eslint-plugin

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swarmion/eslint-plugin

An eslint plugin with rules to enforces proper usage of contracts.

0.33.0-alpha.0
Version published
Weekly downloads
206
-39.59%
Maintainers
4
Weekly downloads
 
Created

@swarmion/eslint-plugin

An eslint plugin with rules to enforces proper usage of contracts.

This package is part of the Swarmion project. See its documentation for more insights.

Installation

pnpm add --save-dev @swarmion/eslint-plugin

or if using yarn

yarn add --dev @swarmion/eslint-plugin

or if using npm

npm install --save-dev @swarmion/eslint-plugin

Usage

Add @swarmion to the plugins section of your .eslintrc configuration file, then configure the rules you want to use under the rules section.

{
  "plugins": ["@swarmion"],
  "rules": {
    "@swarmion/rule-name": "error"
  }
}

You can also enable all the recommended rules for our plugin. Add plugin:@swarmion/recommended in extends:

{
  "extends": ["plugin:@swarmion/recommended"]
}

Rules

Key: :white_check_mark: = recommended, :wrench: = fixable

NameDescription:white_check_mark::wrench:
@swarmion/no-undeclared-contractsRequire that used contracts are defined in the serverless service file:white_check_mark:

FAQs

Package last updated on 11 Jun 2024

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