summaryrefslogtreecommitdiff
path: root/cli/schemas
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-01-24 21:07:00 +0100
committerGitHub <noreply@github.com>2023-01-24 21:07:00 +0100
commite1c51f3c0d595542fe471359916df2a7b6be5484 (patch)
treecb213509a20a46a208f6623b4012c9f4845bf3c8 /cli/schemas
parentabd96105300a7729a4d8eb69af2e81dd6307a163 (diff)
feat(fmt): add ability to configure semicolons (#17292)
Allows to change behavior of `deno fmt` to use "ASI" setting for semicolons instead of always prefering them, this is done by "--options-semi=asi" flag or `"semi": "asi"` setting in the config file.
Diffstat (limited to 'cli/schemas')
-rw-r--r--cli/schemas/config-file.v1.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/schemas/config-file.v1.json b/cli/schemas/config-file.v1.json
index 4eece59df..96b1f202b 100644
--- a/cli/schemas/config-file.v1.json
+++ b/cli/schemas/config-file.v1.json
@@ -321,6 +321,14 @@
"never",
"preserve"
]
+ },
+ "semiColons": {
+ "description": "Whether to prefer using semicolons.",
+ "default": "prefer",
+ "enum": [
+ "prefer",
+ "asi"
+ ]
}
}
}