prettier!
This commit is contained in:
6
package-lock.json
generated
6
package-lock.json
generated
@@ -787,6 +787,12 @@
|
||||
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
|
||||
"dev": true
|
||||
},
|
||||
"prettier": {
|
||||
"version": "1.14.2",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.2.tgz",
|
||||
"integrity": "sha512-McHPg0n1pIke+A/4VcaS2en+pTNjy4xF+Uuq86u/5dyDO59/TtFZtQ708QIRkEZ3qwKz3GVkVa6mpxK/CpB8Rg==",
|
||||
"dev": true
|
||||
},
|
||||
"progress": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz",
|
||||
|
||||
@@ -4,12 +4,14 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint src"
|
||||
"lint": "eslint src",
|
||||
"format": "prettier --write \"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)\""
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"eslint": "^5.5.0"
|
||||
"eslint": "^5.5.0",
|
||||
"prettier": "^1.14.2"
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
const name = 'Freddy'
|
||||
typeof name === 'string'
|
||||
const name = "Freddy";
|
||||
typeof name === "string";
|
||||
|
||||
if (!('serviceWorker' in navigator)) {
|
||||
if (!("serviceWorker" in navigator)) {
|
||||
// you have an old browser :-(
|
||||
}
|
||||
|
||||
const greeting = 'hello'
|
||||
console.log(`${greeting} world!`)
|
||||
const greeting = "hello";
|
||||
console.log(`${greeting} world!`);
|
||||
|
||||
;[(1, 2, 3)].forEach(x => console.log(x))
|
||||
[(1, 2, 3)].forEach(x => console.log(x));
|
||||
|
||||
Reference in New Issue
Block a user