Skip to content

Commit 4d3d982

Browse files
committed
JS: Autoformat date-functions file
1 parent b5ef3bd commit 4d3d982

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

javascript/ql/src/semmle/javascript/frameworks/DateFunctions.qll

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@ private module DateFns {
77
result = API::moduleImport(["date-fns", "date-fns/esm"]).getMember(["format", "lightFormat"])
88
or
99
result =
10-
API::moduleImport(["date-fns/format", "date-fns/lightFormat", "date-fns/esm/format",
11-
"date-fns/esm/lightFormat"])
10+
API::moduleImport([
11+
"date-fns/format", "date-fns/lightFormat", "date-fns/esm/format",
12+
"date-fns/esm/lightFormat"
13+
])
1214
}
1315

1416
private API::Node curriedFormatFunction() {
1517
result =
1618
API::moduleImport(["date-fns/fp", "date-fns/esm/fp"]).getMember(["format", "lightFormat"])
1719
or
1820
result =
19-
API::moduleImport(["date-fns/fp/format", "date-fns/fp/lightFormat", "date-fns/esm/fp/format",
20-
"date-fns/esm/fp/lightFormat"])
21+
API::moduleImport([
22+
"date-fns/fp/format", "date-fns/fp/lightFormat", "date-fns/esm/fp/format",
23+
"date-fns/esm/fp/lightFormat"
24+
])
2125
}
2226

2327
/**

0 commit comments

Comments
 (0)