diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-01-24 21:07:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-24 21:07:00 +0100 |
| commit | e1c51f3c0d595542fe471359916df2a7b6be5484 (patch) | |
| tree | cb213509a20a46a208f6623b4012c9f4845bf3c8 /cli/schemas | |
| parent | abd96105300a7729a4d8eb69af2e81dd6307a163 (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.json | 8 |
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" + ] } } } |
