Skip to content

Commit 60a8a0b

Browse files
Update Prettier to 3.0.3
I am going to introduce a submodule and want to make use of a .prettierignore file to tell Prettier to ignore it. However, we are already overriding the --ignore-path flag to tell it to ignore the files described by .gitignore. Prettier 3 ignores the files described by .gitignore by default. This means that we can now remove our usage of --ignore-path and it’ll ignore the files described by .gitignore _and_ .prettierignore.
1 parent 944109d commit 60a8a0b

File tree

6 files changed

+21
-16
lines changed

6 files changed

+21
-16
lines changed

.prettierrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"trailingComma": "all",
32
"tabWidth": 2,
43
"semi": true,
54
"singleQuote": true,

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"scripts": {
1010
"lint": "eslint .",
1111
"lint:fix": "eslint --fix .",
12-
"format": "prettier --write --ignore-path .gitignore src demo __mocks__",
13-
"format:check": "prettier --check --ignore-path .gitignore src demo __mocks__",
12+
"format": "prettier --write src demo __mocks__",
13+
"format:check": "prettier --check src demo __mocks__",
1414
"test": "vitest run",
1515
"test:watch": "vitest watch",
1616
"coverage": "vitest run --coverage",
@@ -50,7 +50,7 @@
5050
"eslint-plugin-import": "^2.27.5",
5151
"eslint-plugin-jsdoc": "^46.7.0",
5252
"eslint-plugin-security": "^1.7.1",
53-
"prettier": "^2.8.3",
53+
"prettier": "^3.0.3",
5454
"rollup": "^3.28.0",
5555
"ts-node": "^10.9.1",
5656
"typedoc": "^0.25.2",

src/Locations.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export default class Locations extends EventEmitter<LocationsEventMap> {
6666
private lastLocationUpdate: Record<string, PresenceMember['data']['locationUpdate']['id']> = {};
6767

6868
/** @internal */
69-
constructor(private space: Space, private presenceUpdate: Space['presenceUpdate']) {
69+
constructor(
70+
private space: Space,
71+
private presenceUpdate: Space['presenceUpdate'],
72+
) {
7073
super();
7174
}
7275

src/Locks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export default class Locks extends EventEmitter<LocksEventMap> {
8383
private locks: Map<string, Map<string, Lock>>;
8484

8585
/** @internal */
86-
constructor(private space: Space, private presenceUpdate: Space['presenceUpdate']) {
86+
constructor(
87+
private space: Space,
88+
private presenceUpdate: Space['presenceUpdate'],
89+
) {
8790
super();
8891
this.locks = new Map();
8992
}

0 commit comments

Comments
 (0)