Skip to content

Enforce that Redux action creators comply to the Flux Standard Actions standard.

Notifications You must be signed in to change notification settings

joseph-galindo/eslint-plugin-fsa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-fsa

This is an ESLint plugin, that restricts developers from writing custom actions for flux. The main purpose is to use human friendly standard action creators.

Installing

npm install eslint-plugin-fsa --save-dev

ESLint Rules

There is one rule in the plugin:

  • object-meets-standard: checks if action functions return an object that meets the Flux Standard Action standard.

Sample Configuration File

Here's a sample ESLint configuration file that activates these rules:

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

Or turn rules one by one:

{
    "plugins": [
        "fsa"
    ],
    "rules": {
    	"fsa/object-meets-standard": 2
    }
}

About

Enforce that Redux action creators comply to the Flux Standard Actions standard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%