Skip to content

Commit 7921a6c

Browse files
committed
Apply prettier formatting
1 parent a32f12c commit 7921a6c

File tree

104 files changed

+12353
-11231
lines changed

Some content is hidden

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

104 files changed

+12353
-11231
lines changed

.eslintrc.js

+72-67
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,90 @@
11
module.exports = {
22
plugins: ["matrix-org"],
3-
extends: [
4-
"plugin:matrix-org/babel",
5-
"plugin:matrix-org/react",
6-
],
3+
extends: ["plugin:matrix-org/babel", "plugin:matrix-org/react"],
74
env: {
85
browser: true,
96
node: true,
107
},
118
rules: {
129
// Things we do that break the ideal style
13-
"quotes": "off",
10+
quotes: "off",
1411
},
1512
settings: {
1613
react: {
17-
version: 'detect',
14+
version: "detect",
1815
},
1916
},
20-
overrides: [{
21-
files: [
22-
"src/**/*.{ts,tsx}",
23-
"test/**/*.{ts,tsx}",
24-
"module_system/**/*.{ts,tsx}",
25-
],
26-
extends: [
27-
"plugin:matrix-org/typescript",
28-
"plugin:matrix-org/react",
29-
],
30-
// NOTE: These rules are frozen and new rules should not be added here.
31-
// New changes belong in https://github.com/matrix-org/eslint-plugin-matrix-org/
32-
rules: {
33-
// Things we do that break the ideal style
34-
"prefer-promise-reject-errors": "off",
35-
"quotes": "off",
17+
overrides: [
18+
{
19+
files: ["src/**/*.{ts,tsx}", "test/**/*.{ts,tsx}", "module_system/**/*.{ts,tsx}"],
20+
extends: ["plugin:matrix-org/typescript", "plugin:matrix-org/react"],
21+
// NOTE: These rules are frozen and new rules should not be added here.
22+
// New changes belong in https://github.com/matrix-org/eslint-plugin-matrix-org/
23+
rules: {
24+
// Things we do that break the ideal style
25+
"prefer-promise-reject-errors": "off",
26+
"quotes": "off",
3627

37-
// We disable this while we're transitioning
38-
"@typescript-eslint/no-explicit-any": "off",
39-
// We're okay with assertion errors when we ask for them
40-
"@typescript-eslint/no-non-null-assertion": "off",
28+
// We disable this while we're transitioning
29+
"@typescript-eslint/no-explicit-any": "off",
30+
// We're okay with assertion errors when we ask for them
31+
"@typescript-eslint/no-non-null-assertion": "off",
4132

42-
// Ban matrix-js-sdk/src imports in favour of matrix-js-sdk/src/matrix imports to prevent unleashing hell.
43-
"no-restricted-imports": ["error", {
44-
"paths": [{
45-
"name": "matrix-js-sdk",
46-
"message": "Please use matrix-js-sdk/src/matrix instead",
47-
}, {
48-
"name": "matrix-js-sdk/",
49-
"message": "Please use matrix-js-sdk/src/matrix instead",
50-
}, {
51-
"name": "matrix-js-sdk/src",
52-
"message": "Please use matrix-js-sdk/src/matrix instead",
53-
}, {
54-
"name": "matrix-js-sdk/src/",
55-
"message": "Please use matrix-js-sdk/src/matrix instead",
56-
}, {
57-
"name": "matrix-js-sdk/src/index",
58-
"message": "Please use matrix-js-sdk/src/matrix instead",
59-
}, {
60-
"name": "matrix-react-sdk",
61-
"message": "Please use matrix-react-sdk/src/index instead",
62-
}, {
63-
"name": "matrix-react-sdk/",
64-
"message": "Please use matrix-react-sdk/src/index instead",
65-
}],
66-
"patterns": [{
67-
"group": ["matrix-js-sdk/lib", "matrix-js-sdk/lib/", "matrix-js-sdk/lib/**"],
68-
"message": "Please use matrix-js-sdk/src/* instead",
69-
}, {
70-
"group": ["matrix-react-sdk/lib", "matrix-react-sdk/lib/", "matrix-react-sdk/lib/**"],
71-
"message": "Please use matrix-react-sdk/src/* instead",
72-
}],
73-
}],
33+
// Ban matrix-js-sdk/src imports in favour of matrix-js-sdk/src/matrix imports to prevent unleashing hell.
34+
"no-restricted-imports": [
35+
"error",
36+
{
37+
paths: [
38+
{
39+
name: "matrix-js-sdk",
40+
message: "Please use matrix-js-sdk/src/matrix instead",
41+
},
42+
{
43+
name: "matrix-js-sdk/",
44+
message: "Please use matrix-js-sdk/src/matrix instead",
45+
},
46+
{
47+
name: "matrix-js-sdk/src",
48+
message: "Please use matrix-js-sdk/src/matrix instead",
49+
},
50+
{
51+
name: "matrix-js-sdk/src/",
52+
message: "Please use matrix-js-sdk/src/matrix instead",
53+
},
54+
{
55+
name: "matrix-js-sdk/src/index",
56+
message: "Please use matrix-js-sdk/src/matrix instead",
57+
},
58+
{
59+
name: "matrix-react-sdk",
60+
message: "Please use matrix-react-sdk/src/index instead",
61+
},
62+
{
63+
name: "matrix-react-sdk/",
64+
message: "Please use matrix-react-sdk/src/index instead",
65+
},
66+
],
67+
patterns: [
68+
{
69+
group: ["matrix-js-sdk/lib", "matrix-js-sdk/lib/", "matrix-js-sdk/lib/**"],
70+
message: "Please use matrix-js-sdk/src/* instead",
71+
},
72+
{
73+
group: ["matrix-react-sdk/lib", "matrix-react-sdk/lib/", "matrix-react-sdk/lib/**"],
74+
message: "Please use matrix-react-sdk/src/* instead",
75+
},
76+
],
77+
},
78+
],
79+
},
7480
},
75-
}, {
76-
files: [
77-
"test/**/*.{ts,tsx}",
78-
],
79-
rules: {
80-
// We don't need super strict typing in test utilities
81-
"@typescript-eslint/explicit-function-return-type": "off",
82-
"@typescript-eslint/explicit-member-accessibility": "off",
81+
{
82+
files: ["test/**/*.{ts,tsx}"],
83+
rules: {
84+
// We don't need super strict typing in test utilities
85+
"@typescript-eslint/explicit-function-return-type": "off",
86+
"@typescript-eslint/explicit-member-accessibility": "off",
87+
},
8388
},
84-
}],
89+
],
8590
};

.github/ISSUE_TEMPLATE/bug-desktop.yml

+70-70
Original file line numberDiff line numberDiff line change
@@ -2,75 +2,75 @@ name: Bug report for the Element desktop app (not in a browser)
22
description: File a bug report if you are using the desktop Element application.
33
labels: [T-Defect]
44
body:
5-
- type: markdown
6-
attributes:
7-
value: |
8-
Thanks for taking the time to fill out this bug report!
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
99
10-
Please report security issues by email to [email protected]
11-
- type: textarea
12-
id: reproduction-steps
13-
attributes:
14-
label: Steps to reproduce
15-
description: Please attach screenshots, videos or logs if you can.
16-
placeholder: Tell us what you see!
17-
value: |
18-
1. Where are you starting? What can you see?
19-
2. What do you click?
20-
3. More steps…
21-
validations:
22-
required: true
23-
- type: textarea
24-
id: result
25-
attributes:
26-
label: Outcome
27-
placeholder: Tell us what went wrong
28-
value: |
29-
#### What did you expect?
10+
Please report security issues by email to [email protected]
11+
- type: textarea
12+
id: reproduction-steps
13+
attributes:
14+
label: Steps to reproduce
15+
description: Please attach screenshots, videos or logs if you can.
16+
placeholder: Tell us what you see!
17+
value: |
18+
1. Where are you starting? What can you see?
19+
2. What do you click?
20+
3. More steps…
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: result
25+
attributes:
26+
label: Outcome
27+
placeholder: Tell us what went wrong
28+
value: |
29+
#### What did you expect?
3030
31-
#### What happened instead?
32-
validations:
33-
required: true
34-
- type: input
35-
id: os
36-
attributes:
37-
label: Operating system
38-
placeholder: Windows, macOS, Ubuntu, Arch Linux…
39-
validations:
40-
required: false
41-
- type: input
42-
id: version
43-
attributes:
44-
label: Application version
45-
description: You can find the version information in Settings -> Help & About.
46-
placeholder: e.g. Element version 1.7.34, olm version 3.2.3
47-
validations:
48-
required: false
49-
- type: input
50-
id: source
51-
attributes:
52-
label: How did you install the app?
53-
description: Where did you install the app from? Please give a link or a description.
54-
placeholder: e.g. From https://element.io/get-started
55-
validations:
56-
required: false
57-
- type: input
58-
id: homeserver
59-
attributes:
60-
label: Homeserver
61-
description: |
62-
Which server is your account registered on? If it is a local or non-public homeserver, please tell us what is the homeserver implementation (ex: Synapse/Dendrite/etc.) and the version.
63-
placeholder: e.g. matrix.org or Synapse 1.50.0rc1
64-
validations:
65-
required: false
66-
- type: dropdown
67-
id: rageshake
68-
attributes:
69-
label: Will you send logs?
70-
description: |
71-
Did you know that you can send a /rageshake command from your application to submit logs for this issue? Trigger the defect, then type `/rageshake` into the message input area followed by a description of the problem and send the command. You will be able to add a link to this defect report and submit anonymous logs to the developers.
72-
options:
73-
- 'Yes'
74-
- 'No'
75-
validations:
76-
required: true
31+
#### What happened instead?
32+
validations:
33+
required: true
34+
- type: input
35+
id: os
36+
attributes:
37+
label: Operating system
38+
placeholder: Windows, macOS, Ubuntu, Arch Linux…
39+
validations:
40+
required: false
41+
- type: input
42+
id: version
43+
attributes:
44+
label: Application version
45+
description: You can find the version information in Settings -> Help & About.
46+
placeholder: e.g. Element version 1.7.34, olm version 3.2.3
47+
validations:
48+
required: false
49+
- type: input
50+
id: source
51+
attributes:
52+
label: How did you install the app?
53+
description: Where did you install the app from? Please give a link or a description.
54+
placeholder: e.g. From https://element.io/get-started
55+
validations:
56+
required: false
57+
- type: input
58+
id: homeserver
59+
attributes:
60+
label: Homeserver
61+
description: |
62+
Which server is your account registered on? If it is a local or non-public homeserver, please tell us what is the homeserver implementation (ex: Synapse/Dendrite/etc.) and the version.
63+
placeholder: e.g. matrix.org or Synapse 1.50.0rc1
64+
validations:
65+
required: false
66+
- type: dropdown
67+
id: rageshake
68+
attributes:
69+
label: Will you send logs?
70+
description: |
71+
Did you know that you can send a /rageshake command from your application to submit logs for this issue? Trigger the defect, then type `/rageshake` into the message input area followed by a description of the problem and send the command. You will be able to add a link to this defect report and submit anonymous logs to the developers.
72+
options:
73+
- "Yes"
74+
- "No"
75+
validations:
76+
required: true

0 commit comments

Comments
 (0)