-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3] [Proposal] Bring prettier to the v3
One of the bigger pain points of backporting fixes and improvements to the v3 is due to the fact that we rely on prettier for the v4 but not on the v3, leading to huge conflicts in the end mostly related to different formatting. This PR proposes that we bring prettier and a similar eslint config to the v3 just to ease comparisons between both major versions. Note that some eslint rules enabled on the v4 are here not enabled, mostly `eqeqeq` and `no-nested-ternaries`(both because that's a lot of work). For that second rule, the fact that we also run prettier may lead to code harder to read than before.
- Loading branch information
1 parent
83d6dbf
commit 40a5093
Showing
1,020 changed files
with
45,574 additions
and
44,514 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
name: Performance tests | ||
on: | ||
pull_request: | ||
types: [ labeled ] | ||
types: [labeled] | ||
|
||
jobs: | ||
perf-tests: | ||
if: ${{ github.event.label.name == 'Performance checks' }} | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
# needed for integration & memory tests codecs support | ||
- run: sudo add-apt-repository multiverse && sudo apt update && sudo apt install -y ubuntu-restricted-extras | ||
- run: npm install | ||
- run: export DISPLAY=:99 | ||
- run: sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional | ||
- run: node tests/performance/run.js | ||
perf-tests: | ||
if: ${{ github.event.label.name == 'Performance checks' }} | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
# needed for integration & memory tests codecs support | ||
- run: | ||
sudo add-apt-repository multiverse && sudo apt update && sudo apt install -y | ||
ubuntu-restricted-extras | ||
- run: npm install | ||
- run: export DISPLAY=:99 | ||
- run: sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional | ||
- run: node tests/performance/run.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"printWidth": 90, | ||
"proseWrap": "always" | ||
} |
Oops, something went wrong.