Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

eslint-plugin-fsa

1.0.12 • Public • Published

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
    }
}

Install

npm i eslint-plugin-fsa

DownloadsWeekly Downloads

7

Version

1.0.12

License

ISC

Unpacked Size

11.9 kB

Total Files

7

Last publish

Collaborators

  • avatar