Add checks to `mutation_types.js` files to ensure all constants names and values are the same
Our typical mutations_types.js
file looks like this:
export const REQUEST_METRICS_DATA = 'REQUEST_METRICS_DATA';
export const RECEIVE_METRICS_DATA_SUCCESS = 'RECEIVE_METRICS_DATA_SUCCESS';
export const RECEIVE_METRICS_DATA_FAILURE = 'RECEIVE_METRICS_DATA_FAILURE';
A sequence of export const
with values and variables.
The rule would be:
For the files called mutations_types.js
- all UPPERCASE_SNAKE_CASE constants
- to have the same value as their named export
(Also for this files default
exports could be disabled.)
Edited by Miguel Rincon