This will install eslint and prettier plus the necessary config modifications to make both work with each other nicely:
npm i -D eslint prettier eslint-config-prettier
sudo curl -s https://raw.githubusercontent.com/grahampugh/macadmin-scripts/master/installinstallmacos.py | sudo python - --workdir ~/Downloads --version 11.2.3 |
#!/bin/bash | |
CYAN="$(tput bold; tput setaf 6)" | |
RESET="$(tput sgr0)" | |
clear | |
if command -v python3 > /dev/null 2>&1; then | |
if [ $(python3 -c "print('ye')") = "ye" ]; then | |
clear |
// 1. Even or odd | |
function isEven(value){ | |
if (value % 2 == 0){ | |
return true; | |
} | |
else | |
return false; | |
} |
function cloneObject(object) { | |
return Object.entries(object).reduce((result, [key, value]) => { | |
result[key] = value | |
return result | |
}, {}) | |
} | |
let myObject = { a: 1, b: 2 } | |
console.log(cloneObject(myObject)) | |
// => { a: 1, b: 2 } |
/* Add the subtle gradient to the editor background */ | |
.monaco-editor { | |
background-color: black !important; | |
background-image: linear-gradient(to bottom, #2a2139 75%, #34294f); | |
background-size: auto 100vh; | |
background-position: top; | |
background-repeat: no-repeat; | |
} | |
.monaco-workbench { |