We have been moved for better. Look Here for an Updated Version. People are also contributing there for making it more beautiful. See you there!!!
- 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.
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
This file contains hidden or 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 React, { useState } from 'react'; | |
import { Grid, Input, Select } from 'react-spreadsheet-grid'; | |
import set from 'lodash.set'; | |
import users from './users.json'; | |
const positions = [{ | |
id: 1, | |
name: 'System Architect' | |
},{ | |
id: 2, |
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:
- Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
This file contains hidden or 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
doLast { | |
def moveFunc = { resSuffix -> | |
File originalDir = file("${resourcesDir}/drawable-${resSuffix}") | |
if (originalDir.exists()) { | |
File destDir = file("${resourcesDir}/drawable-${resSuffix}-v4") | |
ant.move(file: originalDir, tofile: destDir) | |
} | |
} | |
moveFunc.curry("ldpi").call() | |
moveFunc.curry("mdpi").call() |
OlderNewer