Browse Source

Add package.json for prettier dependency & script

master
Dylan Baker 1 year ago
parent
commit
74cd30ea15
2 changed files with 28 additions and 0 deletions
  1. 19
    0
      package-lock.json
  2. 9
    0
      package.json

+ 19
- 0
package-lock.json View File

@@ -0,0 +1,19 @@
1
+{
2
+  "requires": true,
3
+  "lockfileVersion": 1,
4
+  "dependencies": {
5
+    "@prettier/plugin-ruby": {
6
+      "version": "0.12.3",
7
+      "resolved": "https://registry.npmjs.org/@prettier/plugin-ruby/-/plugin-ruby-0.12.3.tgz",
8
+      "integrity": "sha512-2DEsy9L5MW6fPCIHtl5b2ghVSh+J3ZBm+eyXDX8e/crKxVxzSdqMcYAHFdgtaZHMZvXvrFsftCZjw5qkwm3p3A==",
9
+      "requires": {
10
+        "prettier": "^1.16.4"
11
+      }
12
+    },
13
+    "prettier": {
14
+      "version": "1.17.1",
15
+      "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.17.1.tgz",
16
+      "integrity": "sha512-TzGRNvuUSmPgwivDqkZ9tM/qTGW9hqDKWOE9YHiyQdixlKbv7kvEqsmDPrcHJTKwthU774TQwZXVtaQ/mMsvjg=="
17
+    }
18
+  }
19
+}

+ 9
- 0
package.json View File

@@ -0,0 +1,9 @@
1
+{
2
+  "scripts": {
3
+    "format": "prettier --write ./lib/*.rb ./lib/**/*.rb ./spec/*.rb ./spec/**/*.rb"
4
+  },
5
+  "dependencies": {
6
+    "@prettier/plugin-ruby": "^0.12.3",
7
+    "prettier": "^1.17.1"
8
+  }
9
+}

Loading…
Cancel
Save