Skip to content

Commit

Permalink
Update prettier v2 to v3
Browse files Browse the repository at this point in the history
Just keeping things fresh!
  • Loading branch information
lencioni committed Jun 28, 2024
1 parent f39b3cb commit e1a488b
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 46 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,52 @@ name: Run Unit tests

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
node16:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test using Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn lint
- run: yarn test
- uses: actions/checkout@v2
- name: Test using Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn lint
- run: yarn test

node18:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test using Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn test
- uses: actions/checkout@v2
- name: Test using Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn test

node20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test using Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn test
- uses: actions/checkout@v2
- name: Test using Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn test

node22:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test using Node.js 22.x
uses: actions/setup-node@v2
with:
node-version: 22.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn test
- uses: actions/checkout@v2
- name: Test using Node.js 22.x
uses: actions/setup-node@v2
with:
node-version: 22.x
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn test
6 changes: 2 additions & 4 deletions .importjs.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module.exports = {
logLevel: 'debug',
environments: ['node'],
excludes: [
'./build/**',
],
excludes: ['./build/**'],
aliases: {
'fetch': 'node-fetch',
fetch: 'node-fetch',
},
declarationKeyword: 'import',
importDevDependencies: true,
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A Happo plugin is basically an object with a few methods/properties defined,
along with an optional set of files.

### `customizeWebpackConfig`

Similar to the `customizeWebpackConfig` configuration option, this is a method
that allows you to extend/customize the default webpack configuration used by
Happo.
Expand All @@ -23,6 +24,7 @@ module.exports = {
```

### `pathToExamplesFile`

Specify a path to a file that gets added to the list of happo example files
being parsed. The most common usecase here would be to auto-generate Happo
examples from a different source.
Expand All @@ -32,6 +34,5 @@ const path = require('path');

module.exports = {
pathToExamplesFile: path.resolve(__dirname, 'myHappoExamples.js'),
}
};
```

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ compare the visual appearance of UI components before and after a change.
Screenshots are taken in different browsers and across different screen sizes
to ensure consistent cross-browser and responsive styling of your application.

*See [docs.happo.io](https://docs.happo.io/) for up-to-date documentation*
_See [docs.happo.io](https://docs.happo.io/) for up-to-date documentation_

## https://docs.happo.io/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"http-server": "^0.12.0",
"jest": "^27.4.5",
"multiparty": "^4.2.2",
"prettier": "^2.2.0",
"prettier": "^3.3.2",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"webpack": "^5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/debug.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
4 changes: 2 additions & 2 deletions src/makeRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export default async function makeRequest(
const body = formData
? prepareFormData(formData)
: jsonBody
? JSON.stringify(jsonBody)
: undefined;
? JSON.stringify(jsonBody)
: undefined;

const encodedSecret = new TextEncoder().encode(apiSecret);
// https://github.com/panva/jose/blob/main/docs/classes/jwt_sign.SignJWT.md
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5328,10 +5328,10 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==

prettier@^2.2.0:
version "2.8.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.1.tgz#4e1fd11c34e2421bc1da9aea9bd8127cd0a35efc"
integrity sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==
prettier@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a"
integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==

pretty-format@^27.5.1:
version "27.5.1"
Expand Down

0 comments on commit e1a488b

Please sign in to comment.