Skip to content

Commit 666eb3f

Browse files
committed
chore: update prettier to v2.6.2
1 parent eaaa838 commit 666eb3f

File tree

126 files changed

+1234
-1364
lines changed

Some content is hidden

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

126 files changed

+1234
-1364
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ socioeconomic status, or other similar personal characteristics.
3535
Examples of behavior that contributes to creating a positive environment
3636
include:
3737

38-
* Using welcoming and inclusive language
39-
* Being respectful of differing viewpoints and experiences
40-
* Gracefully accepting constructive criticism
41-
* Focusing on what is best for the community
42-
* Showing empathy toward other community members
38+
- Using welcoming and inclusive language
39+
- Being respectful of differing viewpoints and experiences
40+
- Gracefully accepting constructive criticism
41+
- Focusing on what is best for the community
42+
- Showing empathy toward other community members
4343

4444
Examples of unacceptable behavior by participants include:
4545

46-
* The use of sexualized language or imagery and unwelcome sexual attention or
47-
advances
48-
* Personal attacks, insulting/derogatory comments, or trolling
49-
* Public or private harassment
50-
* Publishing, or threatening to publish, others' private information—such as
51-
a physical or electronic address—without explicit permission
52-
* Other conduct which could reasonably be considered inappropriate in a
53-
professional setting
54-
* Advocating for or encouraging any of the above behaviors
46+
- The use of sexualized language or imagery and unwelcome sexual attention or
47+
advances
48+
- Personal attacks, insulting/derogatory comments, or trolling
49+
- Public or private harassment
50+
- Publishing, or threatening to publish, others' private information—such as
51+
a physical or electronic address—without explicit permission
52+
- Other conduct which could reasonably be considered inappropriate in a
53+
professional setting
54+
- Advocating for or encouraging any of the above behaviors
5555

5656
## Our Responsibilities
5757

@@ -98,7 +98,7 @@ It includes adaptions and additions from [Go Community Code of Conduct][golang-c
9898

9999
This Code of Conduct is licensed under the [Creative Commons Attribution 3.0 License][cc-by-3-us].
100100

101-
[contributor-covenant-home]: https://www.contributor-covenant.org (https://www.contributor-covenant.org/)
101+
[contributor-covenant-home]: https://www.contributor-covenant.org 'https://www.contributor-covenant.org/'
102102
[golang-coc]: https://golang.org/conduct
103103
[cncf-coc]: https://github.com/cncf/foundation/blob/master/code-of-conduct.md
104104
[microsoft-coc]: https://opensource.microsoft.com/codeofconduct/

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
21
## Details
32

4-
53
## Does this PR introduce a breaking change?
64

7-
* [ ] Yes
8-
* [ ] No
5+
- [ ] Yes
6+
- [ ] No
97

108
If yes, please describe the impact and migration path for existing applications:
119
Please check if your PR fulfills the following requirements:
1210

13-
1411
## Reminders ( please delete this section before submitting )
15-
-------------------------------------------------------------
12+
13+
---
1614

1715
### The PR fulfills these requirements:
18-
* Tests for the changes have been added (for bug fixes / features)
19-
* Docs have been added / updated (for bug fixes / features)
16+
17+
- Tests for the changes have been added (for bug fixes / features)
18+
- Docs have been added / updated (for bug fixes / features)
2019

2120
### PR Title
21+
2222
Your PR title should following the format below and is automatically validated by our CI.
23+
2324
```shell
2425
ex:
2526
commit-type(optional scope): commit description. ( NOTE: space between column and the message )

.prettierignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.github/
2+
__benchmarks_results__/
23
build/
4+
CHANGELOG.md
35
coverage/
4-
__benchmarks_results__/
5-
public/
66
examples
7-
CHANGELOG.md
7+
fixtures/
8+
public/

CHANGELOG.md

Lines changed: 176 additions & 339 deletions
Large diffs are not rendered by default.

LOCAL_DEV.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ cd packages/@best/agent-frontend
2121
yarn watch
2222
2323
```
24-

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ that allows you to monitor your benchmarks over the time with each commit.
2222

2323
## Getting Started
2424

25-
Ready to jump in? We recommend starting with [The "Best" Manifesto][best
26-
introduction] first, and then once you have a solid understanding of how
25+
Ready to jump in? We recommend starting with [The "Best" Manifesto][best introduction] first, and then once you have a solid understanding of how
2726
Best works, checking out the [Developer Guide][getting started] to read
2827
about how to get started!
2928

babel.config.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
module.exports = {
2-
presets: [
3-
"@babel/preset-typescript"
4-
],
2+
presets: ['@babel/preset-typescript'],
53
plugins: [
6-
"@babel/plugin-proposal-class-properties",
7-
"@babel/transform-modules-commonjs",
8-
"@babel/plugin-syntax-dynamic-import"
9-
]
10-
}
4+
'@babel/plugin-proposal-class-properties',
5+
'@babel/transform-modules-commonjs',
6+
'@babel/plugin-syntax-dynamic-import',
7+
],
8+
};

commitlint.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
module.exports = {
88
extends: [
9-
'@commitlint/config-conventional' // scoped packages are not prefixed
9+
'@commitlint/config-conventional', // scoped packages are not prefixed
1010
],
1111
rules: {
1212
'type-enum': [
@@ -26,8 +26,8 @@ module.exports = {
2626
'revert',
2727
'style',
2828
'test',
29-
'wip'
30-
]
31-
]
32-
}
29+
'wip',
30+
],
31+
],
32+
},
3333
};

docs/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ module.exports = {
88
'continuous-integration',
99
'github-integration',
1010
'frontend',
11-
'configuration'
11+
'configuration',
1212
],
1313
},
1414
blog: {
15-
latest: 'welcome_to_best'
15+
latest: 'welcome_to_best',
1616
// pages are discovered and ordered automatically
1717
},
1818
};

docs/content/blog/old_post.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ created_at: 'May 20, 2019'
66

77
# Behold!
88

9-
Yay!
9+
Yay!

docs/content/docs/configuration.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ title: Configuration
66

77
Best is highly configurable through command-line arguments, the Best configuration file, and environment variables.
88

9-
- [Command Line Arguments](#command-line-arguments)
10-
- [Best Configuration File](#best-configuration-file)
11-
- [Environment Variables](#environment-variables)
9+
- [Command Line Arguments](#command-line-arguments)
10+
- [Best Configuration File](#best-configuration-file)
11+
- [Environment Variables](#environment-variables)
1212

1313
## Command Line Arguments
1414

@@ -139,12 +139,15 @@ When `alias` is specified the assets are served from that path, for example `/as
139139

140140
```js
141141
{
142-
assets: [{
143-
path: './public/'
144-
}, {
145-
alias: '/assets',
146-
path: '/path/to/node_modules/my-static-assets/dist/'
147-
}]
142+
assets: [
143+
{
144+
path: './public/',
145+
},
146+
{
147+
alias: '/assets',
148+
path: '/path/to/node_modules/my-static-assets/dist/',
149+
},
150+
];
148151
}
149152
```
150153

@@ -169,7 +172,7 @@ When `alias` is specified the assets are served from that path, for example `/as
169172
plugins: [
170173
['@lwc/rollup-plugin', { rootDir: '<rootDir>/src/' }],
171174
['rollup-plugin-replace', { 'process.env.NODE_ENV': JSON.stringify('production') }],
172-
]
175+
];
173176
}
174177
```
175178

@@ -187,25 +190,25 @@ For the headless runner, [Puppeteer launch options](https://github.com/puppeteer
187190
{
188191
runners: [
189192
{
190-
runner: "@best/runner-headless",
191-
alias: "default",
193+
runner: '@best/runner-headless',
194+
alias: 'default',
192195
config: {
193196
launchOptions: {
194197
headless: false,
195-
devtools: true
196-
}
197-
}
198+
devtools: true,
199+
},
200+
},
198201
},
199202
{
200-
runner: "@best/runner-remote",
201-
alias: "remote-agent",
203+
runner: '@best/runner-remote',
204+
alias: 'remote-agent',
202205
config: {
203-
host: "http://localhost:5000",
204-
options: { path: "/best" },
205-
remoteRunner: "@best/runner-headless"
206-
}
206+
host: 'http://localhost:5000',
207+
options: { path: '/best' },
208+
remoteRunner: '@best/runner-headless',
209+
},
207210
},
208-
]
211+
];
209212
}
210213
```
211214

docs/content/docs/continuous-integration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ To see an example, look at Best's own CircleCI [`config.yml`](https://github.com
2929

3030
```yml
3131
- run:
32-
name: Run BEST Benchmarks
33-
command: yarn perf
32+
name: Run BEST Benchmarks
33+
command: yarn perf
3434
- run:
35-
name: Compare BEST Benchmarks
36-
command: yarn perf --compareStats ${BASE_COMMIT} ${TARGET_COMMIT} --gitIntegration
35+
name: Compare BEST Benchmarks
36+
command: yarn perf --compareStats ${BASE_COMMIT} ${TARGET_COMMIT} --gitIntegration
3737
```
3838
3939
The Yarn command `perf` is essentially an alias to the Best CLI. Best is first run to benchmark the code of the new Pull Request. Then `best --compareStats` is run with a base commit from `master` and a target commit from the PR. The `--gitIntegration` flag causes Best to post the results on the pull request on GitHub.

docs/content/docs/frontend.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ You can create your own server to host the front end. Follow [this template](htt
3434

3535
```js
3636
import express from 'express';
37-
import { Frontend } from '@best/frontend'
38-
import config from './best-frontend.config'
37+
import { Frontend } from '@best/frontend';
38+
import config from './best-frontend.config';
3939
40-
const PORT = process.env.PORT || 3000
40+
const PORT = process.env.PORT || 3000;
4141
42-
const app = express()
42+
const app = express();
4343
44-
app.use(Frontend(config))
44+
app.use(Frontend(config));
4545
46-
app.listen(PORT)
46+
app.listen(PORT);
4747
```
4848
4949
1. This code is the `best-frontend.confg` configuration file.
@@ -52,13 +52,14 @@ You can create your own server to host the front end. Follow [this template](htt
5252
export default {
5353
apiDatabase: {
5454
adapter: 'sql/postgres',
55-
uri: 'postgresql://localhost' // Provide the connection URI to your hosted postgres database
55+
uri: 'postgresql://localhost', // Provide the connection URI to your hosted postgres database
5656
},
57-
githubConfig: { // (optional) Allows the frontend to fetch commit info directly from GitHub
57+
githubConfig: {
58+
// (optional) Allows the frontend to fetch commit info directly from GitHub
5859
owner: 'salesforce',
59-
repo: 'best'
60-
}
61-
}
60+
repo: 'best',
61+
},
62+
};
6263
```
6364
6465
1. Start the server and point your browser as its URL.

docs/content/docs/getting-started.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Now that you have Best installed, you can start writing some benchmarks. We reco
2222

2323
Let's look at some examples of what a benchmark might look like. Your benchmarks should be in a file ending in `.benchmark.js`.
2424

25-
This is a very simple example of what a benchmark might look like.
25+
This is a very simple example of what a benchmark might look like.
2626

2727
```js
2828
import fib from '../fib';
@@ -31,15 +31,15 @@ describe('js-execution', () => {
3131
benchmark('fibonacci 15', () => {
3232
run(() => {
3333
return fib(15);
34-
})
35-
})
34+
});
35+
});
3636

3737
benchmark('fibonacci 38', () => {
3838
run(() => {
3939
return fib(38);
40-
})
41-
})
42-
})
40+
});
41+
});
42+
});
4343
```
4444

4545
Now let's look at one that uses [Lightning Web Components](https://lwc.dev) that interacts with the DOM.
@@ -55,12 +55,12 @@ describe('simple-item', () => {
5555
element = createElement('simple-item', { is: SimpleItem });
5656
element.flavor = 'red';
5757
document.body.appendChild(element);
58-
})
58+
});
5959
after(() => {
6060
return element && element.parentElement.removeChild(element);
61-
})
62-
})
63-
})
61+
});
62+
});
63+
});
6464
```
6565

6666
Here we have also added an `after` block to clean up the DOM after our test. This resets the state properly between each benchmark.
@@ -75,8 +75,8 @@ There is one last step before you can run the benchmarks: create a `best.config.
7575

7676
```js
7777
module.exports = {
78-
projectName: 'my-benchmarks'
79-
}
78+
projectName: 'my-benchmarks',
79+
};
8080
```
8181

8282
To further customize your Best setup, read about [configuration](/guide/configuration#best-configuration).

docs/content/docs/github-integration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Best relies on a GitHub app to interact with your repositories. Follow [GitHub's
1212

1313
The GitHub App requires these permissions:
1414

15-
- **Checks**: Read/Write
16-
- **Issues**: Read/Write
17-
- **Pull Requests**: Read/Write
15+
- **Checks**: Read/Write
16+
- **Issues**: Read/Write
17+
- **Pull Requests**: Read/Write
1818

1919
Set these environment variables so Best can authenticate and interact with your GitHub App. We recommended setting these environment variables in your CI.
2020

@@ -46,6 +46,6 @@ By default, Best comments on a pull request when the average performance across
4646

4747
```js
4848
{
49-
commentThreshold: 5
49+
commentThreshold: 5;
5050
}
5151
```

0 commit comments

Comments
 (0)