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.
npm install eslint-plugin-fsa --save-dev
There is one rule in the plugin:
- object-meets-standard: checks if action functions return an object that meets the Flux Standard Action standard.
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
}
}