Skip to content

Commit

Permalink
Prettier for imports (#74)
Browse files Browse the repository at this point in the history
* prettier for imports

Update .prettierrc.json

* fix type lint error

* run prettier with new plugin
  • Loading branch information
jerempy authored Oct 16, 2023
1 parent d02bedd commit fef5b82
Show file tree
Hide file tree
Showing 16 changed files with 527 additions and 74 deletions.
11 changes: 10 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"singleQuote": true
"singleQuote": true,
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrder": [
"^@tbd54566975/(.*)$",
"<THIRD_PARTY_MODULES>",
"^./lib/(.*)$",
"^[./]"
],
"importOrderCaseInsensitive": true,
"importOrderSeparation": true
}
4 changes: 2 additions & 2 deletions examples/node/stream-data.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fetch from 'node-fetch';

import { RecordsRead } from '@tbd54566975/dwn-sdk-js';

import fetch from 'node-fetch';
import { v4 as uuidv4 } from 'uuid';

import { createJsonRpcRequest } from '../../dist/src/lib/json-rpc.js';
Expand Down
Loading

0 comments on commit fef5b82

Please sign in to comment.