You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// String to use for indentation — defaults to '\t'
50
+
indent:'',
51
+
52
+
// Whether to wrap strings in single or double quotes — defaults to 'single'.
53
+
// This only applies to string literals with no `raw` value, which generally
54
+
// means the AST node was generated programmatically, rather than parsed
55
+
// from an original source
56
+
quotes:'single'
46
57
});
47
58
```
48
59
49
-
The `quotes` option is only used for string literals where no raw value was provided. In most cases this means that the ast node was added by manipulating the ast. This avoid's unnecessarily transforming the provided source code.
50
-
51
60
## TypeScript
52
61
53
62
`esrap` can also print TypeScript nodes, assuming they match the ESTree-like [`@typescript-eslint/types`](https://www.npmjs.com/package/@typescript-eslint/types).
0 commit comments