From d125f771e1c355c41f7d547eefe8cc5caf6ce6de Mon Sep 17 00:00:00 2001 From: Conduitry Date: Sat, 23 Sep 2017 14:17:33 -0400 Subject: [PATCH] upgrade prettier; use .prettierrc --- .prettierrc | 3 +++ package.json | 4 ++-- yarn.lock | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..81451039fa --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +useTabs: true +singleQuote: true +trailingComma: es5 diff --git a/package.json b/package.json index 88f878d877..fee5149c7c 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "dev": "node src/shared/_build.js && rollup -c -w", "pretest": "npm run build", "prepublishOnly": "npm run lint && npm test", - "prettier": "prettier --use-tabs --single-quote --trailing-comma es5 --write \"src/**/*.ts\"" + "prettier": "prettier --write \"src/**/*.ts\"" }, "repository": { "type": "git", @@ -59,7 +59,7 @@ "nightmare": "^2.10.0", "node-resolve": "^1.3.3", "nyc": "^11.1.0", - "prettier": "^1.4.1", + "prettier": "^1.7.0", "rollup": "^0.48.2", "rollup-plugin-buble": "^0.15.0", "rollup-plugin-commonjs": "^8.0.2", diff --git a/yarn.lock b/yarn.lock index 89033f2f0b..5c87602a75 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2310,8 +2310,8 @@ preserve@^0.2.0: resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" prettier@^1.4.1: - version "1.5.3" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.5.3.tgz#59dadc683345ec6b88f88b94ed4ae7e1da394bfe" + version "1.7.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.0.tgz#47481588f41f7c90f63938feb202ac82554e7150" pretty-bytes@^1.0.2: version "1.0.4"