-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply Prettier to the entire project
This ensures that our tests will be formatted by Prettier, among other things.
- Loading branch information
Showing
12 changed files
with
72 additions
and
80 deletions.
There are no files selected for viewing
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,42 +1,34 @@ | ||
module.exports = { | ||
plugins: [ | ||
"matrix-org", | ||
], | ||
extends: [ | ||
plugins: ["matrix-org"], | ||
extends: ["plugin:matrix-org/react", "plugin:matrix-org/a11y", "prettier"], | ||
env: { | ||
browser: true, | ||
node: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
rules: { | ||
"jsx-a11y/media-has-caption": ["off"], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["src/**/*.{ts,tsx}"], | ||
extends: [ | ||
"plugin:matrix-org/typescript", | ||
"plugin:matrix-org/react", | ||
"plugin:matrix-org/a11y", | ||
"prettier", | ||
], | ||
env: { | ||
browser: true, | ||
node: true, | ||
], | ||
rules: { | ||
// We're aiming to convert this code to strict mode | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
parserOptions: { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
}, | ||
rules: { | ||
"jsx-a11y/media-has-caption": ["off"], | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
"src/**/*.{ts,tsx}", | ||
], | ||
extends: [ | ||
"plugin:matrix-org/typescript", | ||
"plugin:matrix-org/react", | ||
"prettier", | ||
], | ||
rules: { | ||
// We're aiming to convert this code to strict mode | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
], | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
], | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
}; |
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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
env: main-branch-cd | ||
ref: ${{ github.event.workflow_run.head_sha }} | ||
|
||
- name: 'Download artifact' | ||
- name: "Download artifact" | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
|
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
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,4 +1,3 @@ | ||
Contributing code to Element | ||
============================ | ||
# Contributing code to Element | ||
|
||
Element follows the same pattern as the [matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.md). |
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
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,20 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="favicon.png" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0" | ||
/> | ||
<title><%- title %></title> | ||
<script> | ||
window.global = window; | ||
</script> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | ||
<title> | ||
<%- title %> | ||
</title> | ||
<script> | ||
window.global = window; | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
</body> | ||
|
||
</html> | ||
<body> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
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 +1 @@ | ||
module.exports = { loadOlm: jest.fn(async () => {}) } | ||
module.exports = { loadOlm: jest.fn(async () => {}) }; |
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