Skip to content

Commit c7b05ec

Browse files
committed
Use Prettier
1 parent 287fa1b commit c7b05ec

File tree

4 files changed

+70
-5
lines changed

4 files changed

+70
-5
lines changed

DevToolsPlugin.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
export class RecorderPlugin {
22
async stringify(recording) {
3-
return JSON.stringify(recording, null, 2);
3+
return JSON.stringify(recording, null, 2)
44
}
55
async stringifyStep(step) {
6-
return JSON.stringify(step, null, 2);
6+
return JSON.stringify(step, null, 2)
77
}
88
}
99

1010
/* eslint-disable no-undef */
1111
chrome.devtools.recorder.registerRecorderExtensionPlugin(
1212
new RecorderPlugin(),
13-
/* name=*/ 'Custom JSON',
14-
/* mediaType=*/ 'application/json'
15-
);
13+
/* name=*/ "Custom JSON",
14+
/* mediaType=*/ "application/json",
15+
)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# testing-library-recorder-extension
2+
23
Testing Library Extension for Chrome DevTools Recorder
34

45
## Inspiration
6+
57
- [Puppeteer Replay example extension](https://github.com/puppeteer/replay/tree/main/examples/chrome-extension)

package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"private": true,
3+
"devDependencies": {
4+
"prettier": "^2.7.1",
5+
"prettier-config-nick": "^1.0.3"
6+
},
7+
"prettier": "prettier-config-nick"
8+
}

0 commit comments

Comments
 (0)