Skip to content

Commit 54abb74

Browse files
committed
chore: prettier
1 parent 4fb7c50 commit 54abb74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+69278
-67571
lines changed

.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [ 14.x, 16.x ]
20+
node-version: [14.x, 16.x]
2121
os: [ubuntu-latest]
2222

2323
steps:

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100
6+
}

.versionrc.js

-7
This file was deleted.

CHANGELOG.md

+102-156
Large diffs are not rendered by default.

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,46 @@ TypeScript using Acorn.
1212
To get started, import the plugin and use Acorn's extension mechanism to register it. You have to enable `options.locations` while using `acorn-typescript`.
1313

1414
```typescript
15-
import * as acorn from "acorn";
16-
import tsPlugin from "acorn-typescript";
15+
import * as acorn from 'acorn';
16+
import tsPlugin from 'acorn-typescript';
1717

1818
const node = acorn.Parser.extend(tsPlugin()).parse(
19-
`
19+
`
2020
const a = 1
2121
type A = number
2222
export {
2323
a,
2424
type A as B
2525
}
2626
`,
27-
{
28-
sourceType: "module",
29-
ecmaVersion: "latest",
30-
locations: true,
31-
}
27+
{
28+
sourceType: 'module',
29+
ecmaVersion: 'latest',
30+
locations: true
31+
}
3232
);
3333
```
3434

3535
If you want to enable parsing within a TypeScript ambient context, where certain syntax have different rules (like `.d.ts` files and inside [declare module blocks](https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html)):
3636

3737
```typescript
38-
import * as acorn from "acorn";
39-
import tsPlugin from "acorn-typescript";
38+
import * as acorn from 'acorn';
39+
import tsPlugin from 'acorn-typescript';
4040

4141
const node = acorn.Parser.extend(tsPlugin({ dts: true })).parse(
42-
`
42+
`
4343
const a = 1
4444
type A = number
4545
export {
4646
a,
4747
type A as B
4848
}
4949
`,
50-
{
51-
sourceType: "module",
52-
ecmaVersion: "latest",
53-
locations: true,
54-
}
50+
{
51+
sourceType: 'module',
52+
ecmaVersion: 'latest',
53+
locations: true
54+
}
5555
);
5656
```
5757

0 commit comments

Comments
 (0)