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

eslint-plugin-effector

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-effector

Enforcing best practices for Effector

Source
npmnpm
Version
0.7.2
Version published
Weekly downloads
16K
21.46%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-plugin-effector

Enforcing best practices for Effector

This plugin uses TypeScript for more precise results, but JavaScript is supported too.

Installation

First, install ESLint:

$ yarn add -D eslint

Next, install eslint-plugin-effector:

$ yarn add -D eslint-plugin-effector

Usage

Add effector to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["effector"],
  "extends": ["plugin:effector/recommended", "plugin:effector/scope"]
}

To configure individual rules:

{
  "rules": {
    "effector/enforce-store-naming-convention": "off"
  }
}

Available rules by preset

plugin:effector/recommended

This preset is recommended for most projects.

plugin:effector/scope

This preset is recommended for projects that use Fork API. You can read more about Fork API in an article.

plugin:effector/react

This preset is recommended for projects that use React with Effector.

plugin:effector/future

This preset contains rules wich enforce future-effector code-style.

Maintenance

Release flow

  • Bump version in package.json
  • Fill CHANGELOG.md
  • Commit changes by git commit -m "Release X.X.X"
  • Create git tag for release by git tag -a vX.X.X -m "vX.X.X"
  • Push changes to remote by git push --follow-tags
  • Release package to registry by yarn clean-publish
  • Fill release page with changelog on GitHub

Keywords

eslint

FAQs

Package last updated on 10 Jun 2022

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