-
Notifications
You must be signed in to change notification settings - Fork 16
/
deno_fmt.deno.txt
42 lines (32 loc) · 2.4 KB
/
deno_fmt.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
DENO_FMT
ALTERNATIVES ==> #See prettier
VERSION ==> #See deno doc
deno fmt [SPATH...] #Prettify
#If DIR (def: '.'), recursive
CONFIG.exclude
CONFIG.fmt.include|exclude #'DIR|PATH_GLOB'_ARR of files [not] to format
FORMATS ==> #Can format:
# - JavaScript|TypeScript
# - JSON[C]
# - Markdown
# - code blocks inside Markdown
--ext=EXT #Can be js[x]|ts[x]|md|json[c]
// deno-fmt-ignore #Ignore next statement
/* deno-fmt-ignore-start|end */ #Ignore several lines
// deno-fmt-ignore-file #Ignore file
<!-- deno-fmt-ignore* --> #Same in Markown
--check #Exit code 1 if files not prettified
--[no-]use-tabs
CONFIG.fmt.useTabs #BOOL (def: false)
--indent-width=NUM
CONFIG.fmt.indentWidth #NUM (def: 2)
--line-width=NUM
CONFIG.fmt.lineWidth #NUM (def: 80)
--[no-]semicolons
CONFIG.fmt.semiColons #BOOL (def: true). If false, still used where necessary.
--[no-]single-quote
CONFIG.fmt.singleQuote #BOOL (def: false)
--prose-wrap=STR
CONFIG.fmt.proseWrap #One of: 'always' (def), 'never' or 'preserve'