- Install prettier
- Make a .prettierignore file, and add directories you'd like prettier to not format, for example:
**/node_modules
- Run
prettier --write "**/*.js"
*Don't forget the quotes. - Optional: if you want to format JSON/SCSS files too, replace js with json/scss.
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
export const state = () => ({ | |
categories: [] | |
}); | |
export const mutations = { | |
setCategories(state) { | |
state.categories = [ | |
"Pablo", | |
"Automotor", | |
"Compras", |
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
var ajax = new XMLHttpRequest(); | |
ajax.onreadystatechange = function() { | |
if (ajax.status == 200 && ajax.readyState == 4) { | |
var answer = document.createElement( 'html' ); | |
answer.innerHTML = ajax.responseText; | |
console.log(answer.querySelector('.language-python').innerHTML); | |
} | |
} |
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 requests | |
import os | |
def get_urls(content): | |
''' | |
Parses the css file and retrieves the font urls. | |
Parameters: | |
content (string): The data which needs to be parsed for the font urls. |