coffeehaml 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/ast.js +334 -125
- package/dist/cli.js +363 -291
- package/dist/compiler.js +126 -89
- package/dist/emitter.js +771 -736
- package/dist/errors.js +5 -2
- package/dist/expressions.js +211 -154
- package/dist/index.js +22 -6
- package/dist/lexer.js +536 -340
- package/dist/parser.js +533 -438
- package/dist/prettier/coffeescript-formatter.js +292 -392
- package/dist/prettier/index.js +96 -60
- package/dist/prettier/options.js +179 -147
- package/dist/prettier/printer.js +549 -642
- package/dist/types.js +122 -12
- package/dist/vite-plugin.js +78 -63
- package/package.json +4 -9
- package/dist/ast.d.ts +0 -123
- package/dist/ast.d.ts.map +0 -1
- package/dist/ast.js.map +0 -1
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/compiler.d.ts +0 -10
- package/dist/compiler.d.ts.map +0 -1
- package/dist/compiler.js.map +0 -1
- package/dist/emitter.d.ts +0 -4
- package/dist/emitter.d.ts.map +0 -1
- package/dist/emitter.js.map +0 -1
- package/dist/errors.d.ts +0 -3
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/expressions.d.ts +0 -22
- package/dist/expressions.d.ts.map +0 -1
- package/dist/expressions.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lexer.d.ts +0 -30
- package/dist/lexer.d.ts.map +0 -1
- package/dist/lexer.js.map +0 -1
- package/dist/parser.d.ts +0 -10
- package/dist/parser.d.ts.map +0 -1
- package/dist/parser.js.map +0 -1
- package/dist/prettier/coffeescript-formatter.d.ts +0 -31
- package/dist/prettier/coffeescript-formatter.d.ts.map +0 -1
- package/dist/prettier/coffeescript-formatter.js.map +0 -1
- package/dist/prettier/index.d.ts +0 -8
- package/dist/prettier/index.d.ts.map +0 -1
- package/dist/prettier/index.js.map +0 -1
- package/dist/prettier/options.d.ts +0 -10
- package/dist/prettier/options.d.ts.map +0 -1
- package/dist/prettier/options.js.map +0 -1
- package/dist/prettier/printer.d.ts +0 -45
- package/dist/prettier/printer.d.ts.map +0 -1
- package/dist/prettier/printer.js.map +0 -1
- package/dist/types.d.ts +0 -76
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/vite-plugin.d.ts +0 -7
- package/dist/vite-plugin.d.ts.map +0 -1
- package/dist/vite-plugin.js.map +0 -1
package/dist/prettier/index.js
CHANGED
|
@@ -1,69 +1,105 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
// Generated by CoffeeScript 2.7.0
|
|
2
|
+
// index.coffee — CoffeeHaml Prettier Plugin entry point
|
|
3
|
+
var _parsers, _printers, coffeeHamlLanguage, coffeeHamlParser, coffeeHamlPrinter, plugin;
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
tokenize
|
|
7
|
+
} from '../lexer.js';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
parse
|
|
11
|
+
} from '../parser.js';
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
print,
|
|
15
|
+
embedCoffeeScript
|
|
16
|
+
} from './printer.js';
|
|
17
|
+
|
|
18
|
+
import {
|
|
19
|
+
options,
|
|
20
|
+
defaultOptions
|
|
21
|
+
} from './options.js';
|
|
22
|
+
|
|
9
23
|
// ─── Language ──────────────────────────────────────────────
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
coffeeHamlLanguage = {
|
|
25
|
+
name: 'CoffeeHaml',
|
|
26
|
+
parsers: ['coffeehaml'],
|
|
27
|
+
extensions: ['.chaml', '.coffeehaml'],
|
|
28
|
+
vscodeLanguageIds: ['coffeehaml']
|
|
15
29
|
};
|
|
30
|
+
|
|
16
31
|
// ─── Parser ────────────────────────────────────────────────
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
coffeeHamlParser = {
|
|
33
|
+
parse: function(text, _options) {
|
|
34
|
+
var result, tokens;
|
|
35
|
+
tokens = tokenize(text);
|
|
36
|
+
result = parse(tokens);
|
|
37
|
+
if (result.errors.length > 0 && result.document.children.length === 0) {
|
|
38
|
+
throw new Error('CoffeeHaml parse errors:\n' + result.errors.map(function(e) {
|
|
39
|
+
return ` ${e.message}`;
|
|
40
|
+
}).join('\n'));
|
|
41
|
+
}
|
|
42
|
+
return result.document;
|
|
43
|
+
},
|
|
44
|
+
astFormat: 'coffeehaml-ast',
|
|
45
|
+
locStart: function(node) {
|
|
46
|
+
var ref, ref1;
|
|
47
|
+
return (ref = node != null ? (ref1 = node.location) != null ? ref1.offset : void 0 : void 0) != null ? ref : 0;
|
|
48
|
+
},
|
|
49
|
+
locEnd: function(node) {
|
|
50
|
+
if (!(node != null ? node.location : void 0)) {
|
|
51
|
+
return 0;
|
|
52
|
+
}
|
|
53
|
+
return node.location.offset + node.location.length;
|
|
54
|
+
},
|
|
55
|
+
hasPragma: function(text) {
|
|
56
|
+
return /\/\*\*\s*@format\s*\*\//.test(text) || /^\/\s*@format/.test(text);
|
|
57
|
+
}
|
|
39
58
|
};
|
|
59
|
+
|
|
40
60
|
// ─── Printer ───────────────────────────────────────────────
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
61
|
+
coffeeHamlPrinter = {
|
|
62
|
+
print: function(path, options, printFn, _args) {
|
|
63
|
+
var opts;
|
|
64
|
+
opts = options;
|
|
65
|
+
if (options.originalText) {
|
|
66
|
+
opts.originalText = options.originalText;
|
|
67
|
+
}
|
|
68
|
+
return print(path, opts, printFn);
|
|
69
|
+
},
|
|
70
|
+
embed: function(path, _options) {
|
|
71
|
+
var ref;
|
|
72
|
+
return (ref = embedCoffeeScript(path, print)) != null ? ref : null;
|
|
73
|
+
},
|
|
74
|
+
insertPragma: function(text) {
|
|
75
|
+
return '/** @format */\n' + text;
|
|
76
|
+
}
|
|
57
77
|
};
|
|
78
|
+
|
|
58
79
|
// ─── Export ────────────────────────────────────────────────
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
80
|
+
_parsers = {};
|
|
81
|
+
|
|
82
|
+
_parsers.coffeehaml = coffeeHamlParser;
|
|
83
|
+
|
|
84
|
+
_printers = {};
|
|
85
|
+
|
|
86
|
+
_printers['coffeehaml-ast'] = coffeeHamlPrinter;
|
|
87
|
+
|
|
88
|
+
plugin = {
|
|
89
|
+
languages: [coffeeHamlLanguage],
|
|
90
|
+
parsers: _parsers,
|
|
91
|
+
printers: _printers,
|
|
92
|
+
options,
|
|
93
|
+
defaultOptions
|
|
65
94
|
};
|
|
95
|
+
|
|
66
96
|
export default plugin;
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
options,
|
|
100
|
+
defaultOptions
|
|
101
|
+
} from './options.js';
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
print
|
|
105
|
+
} from './printer.js';
|
package/dist/prettier/options.js
CHANGED
|
@@ -1,200 +1,232 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
COMMENTS: 'CoffeeHaml: Comments',
|
|
15
|
-
};
|
|
16
|
-
// ─── Option definitions ────────────────────────────────────
|
|
17
|
-
/** Tag name case normalization. 'preserve' = leave as written. */
|
|
18
|
-
const tagCase = {
|
|
1
|
+
// Generated by CoffeeScript 2.7.0
|
|
2
|
+
// options.coffee — CoffeeHaml Prettier formatting options
|
|
3
|
+
export var CAT = {
|
|
4
|
+
STRUCTURE: 'CoffeeHaml: Structure',
|
|
5
|
+
ATTRIBUTES: 'CoffeeHaml: Attributes',
|
|
6
|
+
COFFEESCRIPT: 'CoffeeHaml: CoffeeScript',
|
|
7
|
+
WHITESPACE: 'CoffeeHaml: Whitespace',
|
|
8
|
+
CONTROL_FLOW: 'CoffeeHaml: Control Flow',
|
|
9
|
+
COMMENTS: 'CoffeeHaml: Comments'
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export var options = {
|
|
13
|
+
tagCase: {
|
|
19
14
|
category: CAT.STRUCTURE,
|
|
20
15
|
type: 'choice',
|
|
21
16
|
description: 'Normalize HTML tag casing. Component tags (%MyComponent) never affected.',
|
|
22
17
|
choices: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
{
|
|
19
|
+
value: 'preserve',
|
|
20
|
+
description: 'Leave tag case as written'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: 'lowercase',
|
|
24
|
+
description: '%DIV to %div (HTML tags only)'
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
implicitDivExpansion: {
|
|
29
29
|
category: CAT.STRUCTURE,
|
|
30
30
|
type: 'boolean',
|
|
31
|
-
description: 'Expand .class to %div.class (anti-idiomatic in HAML).'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const maxChainLength = {
|
|
31
|
+
description: 'Expand .class to %div.class (anti-idiomatic in HAML).'
|
|
32
|
+
},
|
|
33
|
+
maxChainLength: {
|
|
35
34
|
category: CAT.STRUCTURE,
|
|
36
35
|
type: 'int',
|
|
37
|
-
description: 'Max .class chain length before breaking into indented hierarchy. 0 = always break.'
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const inlineThreshold = {
|
|
36
|
+
description: 'Max .class chain length before breaking into indented hierarchy. 0 = always break.'
|
|
37
|
+
},
|
|
38
|
+
inlineThreshold: {
|
|
41
39
|
category: CAT.STRUCTURE,
|
|
42
40
|
type: 'int',
|
|
43
|
-
description: 'Try single-line if estimated width <= this. -1 = never inline children.'
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const voidElementStyle = {
|
|
41
|
+
description: 'Try single-line if estimated width <= this. -1 = never inline children.'
|
|
42
|
+
},
|
|
43
|
+
voidElementStyle: {
|
|
47
44
|
category: CAT.STRUCTURE,
|
|
48
45
|
type: 'choice',
|
|
49
46
|
description: 'How void elements (%br, %img, etc.) are formatted.',
|
|
50
47
|
choices: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
{
|
|
49
|
+
value: 'self-closing',
|
|
50
|
+
description: 'Self-closing (no children)'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: 'explicit',
|
|
54
|
+
description: 'Preserve %br/ syntax, otherwise self-close'
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
attributeStyle: {
|
|
57
59
|
category: CAT.ATTRIBUTES,
|
|
58
60
|
type: 'choice',
|
|
59
61
|
description: 'Enforce attribute syntax: {braces}, (parens), bare, or preserve.',
|
|
60
62
|
choices: [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
{
|
|
64
|
+
value: 'preserve',
|
|
65
|
+
description: 'Keep as written'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: 'braces',
|
|
69
|
+
description: 'Convert to {CoffeeScript} style'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
value: 'parens',
|
|
73
|
+
description: 'Convert to HTML (parens) style'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
value: 'bare',
|
|
77
|
+
description: 'Convert to bare HAML style'
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
attributeMultilineThreshold: {
|
|
69
82
|
category: CAT.ATTRIBUTES,
|
|
70
83
|
type: 'int',
|
|
71
|
-
description: 'Break attributes across lines when count >= this. 0 = always multiline.'
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const attributeSort = {
|
|
84
|
+
description: 'Break attributes across lines when count >= this. 0 = always multiline.'
|
|
85
|
+
},
|
|
86
|
+
attributeSort: {
|
|
75
87
|
category: CAT.ATTRIBUTES,
|
|
76
88
|
type: 'choice',
|
|
77
89
|
description: 'Sort attribute keys (spread attributes always last).',
|
|
78
90
|
choices: [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
{
|
|
92
|
+
value: 'none',
|
|
93
|
+
description: 'Preserve author order'
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
value: 'alphabetical',
|
|
97
|
+
description: 'Sort A to Z'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
value: 'idiomatic',
|
|
101
|
+
description: 'id first, class second, rest A to Z'
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
quoteStyle: {
|
|
86
106
|
category: CAT.ATTRIBUTES,
|
|
87
107
|
type: 'choice',
|
|
88
108
|
description: 'Quote style for bare/HAML attributes.',
|
|
89
109
|
choices: [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
110
|
+
{
|
|
111
|
+
value: 'preserve',
|
|
112
|
+
description: 'Keep as written'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
value: 'double',
|
|
116
|
+
description: 'Force double quotes'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
value: 'single',
|
|
120
|
+
description: 'Force single quotes'
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
coffeeScriptFormat: {
|
|
97
125
|
category: CAT.COFFEESCRIPT,
|
|
98
126
|
type: 'boolean',
|
|
99
|
-
description: 'Format CoffeeScript expressions using prettier/plugins/coffeescript.'
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
const methodChainAlign = {
|
|
127
|
+
description: 'Format CoffeeScript expressions using prettier/plugins/coffeescript.'
|
|
128
|
+
},
|
|
129
|
+
methodChainAlign: {
|
|
103
130
|
category: CAT.COFFEESCRIPT,
|
|
104
131
|
type: 'boolean',
|
|
105
|
-
description: 'Align .method chains on newlines for = expressions.'
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const blankLineHandling = {
|
|
132
|
+
description: 'Align .method chains on newlines for = expressions.'
|
|
133
|
+
},
|
|
134
|
+
blankLineHandling: {
|
|
109
135
|
category: CAT.WHITESPACE,
|
|
110
136
|
type: 'choice',
|
|
111
137
|
description: 'How blank lines between sibling elements are treated.',
|
|
112
138
|
choices: [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
139
|
+
{
|
|
140
|
+
value: 'preserve',
|
|
141
|
+
description: 'Keep single; collapse multiples'
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
value: 'collapse',
|
|
145
|
+
description: 'Remove all blank lines between siblings'
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
value: 'respect',
|
|
149
|
+
description: 'Keep exactly as written'
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
trailingWhitespace: {
|
|
120
154
|
category: CAT.WHITESPACE,
|
|
121
155
|
type: 'choice',
|
|
122
156
|
description: 'Handle trailing whitespace.',
|
|
123
157
|
choices: [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
158
|
+
{
|
|
159
|
+
value: 'remove',
|
|
160
|
+
description: 'Strip trailing whitespace'
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
value: 'preserve',
|
|
164
|
+
description: 'Leave as written'
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
continuationStyle: {
|
|
130
169
|
category: CAT.CONTROL_FLOW,
|
|
131
170
|
type: 'choice',
|
|
132
171
|
description: 'How \\ continuations are formatted.',
|
|
133
172
|
choices: [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
173
|
+
{
|
|
174
|
+
value: 'preserve',
|
|
175
|
+
description: 'Keep as written'
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
value: 'indent',
|
|
179
|
+
description: 'Always use indented continuation'
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
value: 'backslash',
|
|
183
|
+
description: 'Always use \\ continuation'
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
controlFlowInline: {
|
|
141
188
|
category: CAT.CONTROL_FLOW,
|
|
142
189
|
type: 'boolean',
|
|
143
|
-
description: 'Allow - if x then .ok one-liners (anti-Prettier by default).'
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
const statementMerging = {
|
|
190
|
+
description: 'Allow - if x then .ok one-liners (anti-Prettier by default).'
|
|
191
|
+
},
|
|
192
|
+
statementMerging: {
|
|
147
193
|
category: CAT.CONTROL_FLOW,
|
|
148
194
|
type: 'choice',
|
|
149
195
|
description: 'Merge consecutive - lines into a single indented block. Only childless statements.',
|
|
150
196
|
choices: [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
197
|
+
{
|
|
198
|
+
value: 'preserve',
|
|
199
|
+
description: 'Keep each - line separate'
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
value: 'merge',
|
|
203
|
+
description: 'Merge consecutive childless statements into one indented block'
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
commentFormat: {
|
|
157
208
|
category: CAT.COMMENTS,
|
|
158
209
|
type: 'boolean',
|
|
159
|
-
description: 'Reflow/word-wrap comment text (experimental).'
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
export const defaultOptions = {
|
|
182
|
-
tagCase: 'preserve',
|
|
183
|
-
implicitDivExpansion: false,
|
|
184
|
-
maxChainLength: 4,
|
|
185
|
-
inlineThreshold: -1,
|
|
186
|
-
voidElementStyle: 'self-closing',
|
|
187
|
-
attributeStyle: 'preserve',
|
|
188
|
-
attributeMultilineThreshold: 1,
|
|
189
|
-
attributeSort: 'none',
|
|
190
|
-
quoteStyle: 'preserve',
|
|
191
|
-
coffeeScriptFormat: true,
|
|
192
|
-
methodChainAlign: true,
|
|
193
|
-
blankLineHandling: 'preserve',
|
|
194
|
-
trailingWhitespace: 'remove',
|
|
195
|
-
continuationStyle: 'indent',
|
|
196
|
-
controlFlowInline: false,
|
|
197
|
-
statementMerging: 'preserve',
|
|
198
|
-
commentFormat: false,
|
|
210
|
+
description: 'Reflow/word-wrap comment text (experimental).'
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export var defaultOptions = {
|
|
215
|
+
tagCase: 'preserve',
|
|
216
|
+
implicitDivExpansion: false,
|
|
217
|
+
maxChainLength: 4,
|
|
218
|
+
inlineThreshold: -1,
|
|
219
|
+
voidElementStyle: 'self-closing',
|
|
220
|
+
attributeStyle: 'preserve',
|
|
221
|
+
attributeMultilineThreshold: 1,
|
|
222
|
+
attributeSort: 'none',
|
|
223
|
+
quoteStyle: 'preserve',
|
|
224
|
+
coffeeScriptFormat: true,
|
|
225
|
+
methodChainAlign: true,
|
|
226
|
+
blankLineHandling: 'preserve',
|
|
227
|
+
trailingWhitespace: 'remove',
|
|
228
|
+
continuationStyle: 'indent',
|
|
229
|
+
controlFlowInline: false,
|
|
230
|
+
statementMerging: 'preserve',
|
|
231
|
+
commentFormat: false
|
|
199
232
|
};
|
|
200
|
-
//# sourceMappingURL=options.js.map
|