You need to install eslint and some other config libs.
yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D
yarn eslint --init
.eslintrc.js
/** | |
Problem: | |
You have a javascript array that likely has some duplicate values and you would like a count of those values. | |
Solution: | |
Try this schnippet out. | |
*/ |
[ | |
{ | |
"state": "Abia", | |
"lgas": [ | |
"Aba North", | |
"Aba South", | |
"Arochukwu", | |
"Bende", | |
"Ikawuno", | |
"Ikwuano", |
{ | |
"parser": "babel-eslint", | |
"plugins": [ | |
"react", | |
"react-native" | |
], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true, | |
"modules": true |
/** | |
Problem: | |
You have a javascript array that likely has some duplicate values and you would like a count of those values. | |
Solution: | |
Try this schnippet out. | |
*/ |
# to undo a git push | |
git push -f origin HEAD^:master | |
# to get to previous commit (preserves working tree) | |
git reset --soft HEAD | |
# to get back to previous commit (you'll lose working tree) | |
git reset --hard HEAD^ |