Skip to content

Commit 04bf3ba

Browse files
refactor: use const instead of enum of one member
Co-authored-by: Sebastian Good <2230835+scagood@users.noreply.github.com>
1 parent 1418d3d commit 04bf3ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/rules/no-sync.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ module.exports = {
4545
{
4646
type: "object",
4747
properties: {
48-
from: {
49-
type: "string",
50-
enum: ["file"],
51-
},
48+
from: { const: "file" },
5249
path: {
5350
type: "string",
5451
},

0 commit comments

Comments
 (0)