modules/core/ui/reducer.js
Function ui
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ui = (state = initialState, action) => {
switch (action.type) {
case '[MAIN]:APP_QUIT:SUCCESS':
return Object.assign({}, state, { appQuit: true });
case '[MAIN]:WINDOW:OPEN':
Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Open
Open
import uniq from 'lodash/uniq';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/