make Prettier
authorAJ ONeal <aj@therootcompany.com>
Mon, 27 Apr 2020 20:52:30 +0000 (20:52 +0000)
committerAJ ONeal <aj@therootcompany.com>
Mon, 27 Apr 2020 20:52:30 +0000 (20:52 +0000)
.prettierrc [new file with mode: 0644]
flutter/versions.js

diff --git a/.prettierrc b/.prettierrc
new file mode 100644 (file)
index 0000000..cd64a92
--- /dev/null
@@ -0,0 +1,6 @@
+{
+  "trailingComma": "none",
+  "tabWidth": 2,
+  "singleQuote": true,
+  "proseWrap": "always"
+}
index 5bbefc5853815c7e418941093c439b3ee5197a83..6b8f57ba45e9657e9e53064842f91c456611f026 100644 (file)
@@ -1,6 +1,6 @@
-"use strict";
+'use strict';
 
-var request = require("@root/request");
+var request = require('@root/request');
 
 // TODO
 // get list of supported platforms and archetectures
@@ -10,17 +10,17 @@ var request = require("@root/request");
 
 module.platforms = async function () {
   return [
-    ["macos", "amd64"],
-    ["linux", "amd64"],
-    ["windows", "amd64"],
+    ['macos', 'amd64'],
+    ['linux', 'amd64'],
+    ['windows', 'amd64']
   ];
 };
 
 module.versions = async function (os, _arch) {
   return request({
     url:
-      "https://storage.googleapis.com/flutter_infra/releases/releases_" +
+      'https://storage.googleapis.com/flutter_infra/releases/releases_' +
       os +
-      ".json",
+      '.json'
   });
 };