Skip to content

Commit

Permalink
Fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Feb 28, 2022
1 parent ca15b22 commit 042c759
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ module.exports = {
'react/require-default-props': ['error'],
'react/default-props-match-prop-types': ['error'],
'react/sort-prop-types': ['error'],
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
settings: {
'import/resolver': {
'babel-module': {},
},
},
'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
],
}
48 changes: 24 additions & 24 deletions src/Store/Album/FetchPeople.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import {
buildAsyncState,
buildAsyncActions,
buildAsyncReducers,
} from '@thecodingmachine/redux-toolkit-wrapper'
import api from '@/Services'

export default {
initialState: buildAsyncState(),
action: buildAsyncActions('album/fetchPeople', async (args, k) => {
return await api
.get('/persons/', {
timeout: 10000,
})
.then(response => {
return response.data
})
.catch(e => {
console.log('Request Failed', e)
return e
})
}),
reducers: buildAsyncReducers({ itemKey: 'albumPeople' }), // We do not want to modify some item by default
}
import {
buildAsyncState,
buildAsyncActions,
buildAsyncReducers,
} from '@thecodingmachine/redux-toolkit-wrapper'
import api from '@/Services'

export default {
initialState: buildAsyncState(),
action: buildAsyncActions('album/fetchPeople', async (args, k) => {
return await api
.get('/persons/', {
timeout: 10000,
})
.then(response => {
return response.data
})
.catch(e => {
console.log('Request Failed', e)
return e
})
}),
reducers: buildAsyncReducers({ itemKey: 'albumPeople' }), // We do not want to modify some item by default
}

0 comments on commit 042c759

Please sign in to comment.