rubocop-katalyst 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/katalyst/prettier_task.rb +8 -3
- data/lib/rubocop/katalyst/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddc6b3c8cce60c0fcdaf1e82f6e870136495a8a4be758e1f00d2e74c4041b6f0
|
4
|
+
data.tar.gz: af751b20b7a7a23a11f2127af97c2b6a2cb92b7ad52aa991f7ffa1d81de9755b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70bf3a16f5ba638f9e7ec0e66f428f9e4383046bd1816fbdf6cfff2ff8d2fed11636203c31a0027775341d29f168cc1f5c21e0467be717db7af85f8728fd4794
|
7
|
+
data.tar.gz: 8e37ed6686f578b0b4e2605082dc07638aadfdce2a7c9d7079f60092c64717e2469aab9c49e3cc2f532bc1dee0518bea1bd69e59cbc7aa2d8cfcd928997cf945
|
@@ -33,11 +33,11 @@ module RuboCop
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def installed?
|
36
|
-
|
36
|
+
File.exist?(config)
|
37
37
|
end
|
38
38
|
|
39
39
|
def config
|
40
|
-
|
40
|
+
File.join(root, ".prettierrc.json")
|
41
41
|
end
|
42
42
|
|
43
43
|
def install_prettier
|
@@ -76,7 +76,12 @@ module RuboCop
|
|
76
76
|
app/assets/stylesheets
|
77
77
|
app/javascript
|
78
78
|
app/packs
|
79
|
-
].
|
79
|
+
].map { |path| File.join(root, path) }
|
80
|
+
.select { |path| File.exist?(path) }
|
81
|
+
end
|
82
|
+
|
83
|
+
def root
|
84
|
+
@root ||= Dir.pwd
|
80
85
|
end
|
81
86
|
end
|
82
87
|
end
|