This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useState } from 'react' | |
export const fetchStatus = { | |
none: 0, | |
loading: 1, | |
success: 2, | |
error: 3, | |
} | |
export const useFetch = () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yarn lint | |
linting_result=$? | |
if [[ $linting_result -ne 0 ]] | |
then | |
echo "LINT FAILED!" | |
echo 'Please fix linting problems before committing.' | |
exit 1 |