diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index b32fbdc..0000000 --- a/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# EditorConfig https://EditorConfig.org - -# top-most EditorConfig file -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 2 -indent_style = space -insert_final_newline = true -max_line_length = 120 -trim_trailing_whitespace = true diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 378a872..a582342 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -17,7 +17,5 @@ jobs: node-version: "18" - name: Install dependencies run: yarn --immutable - - name: Run checks - run: yarn lint - name: Run tests run: yarn test diff --git a/.prettierignore b/.prettierignore index 301cb0c..61c3bc7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1 @@ -.vscode .yarn diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..21c6d0f --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "printWidth": 80, + "tabWidth": 2, + "useTabs": false, + "semi": true, + "singleQuote": false, + "trailingComma": "es5", + "bracketSpacing": true, + "bracketSameLine": false, + "arrowParens": "avoid" +} diff --git a/README.md b/README.md index b4f20db..122a313 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This project is built using [react-admin](https://marmelab.com/react-admin/). ### Supported Synapse -It needs at least [Synapse](https://github.com/element-hq/synapse) v1.93.0 for all functions to work as expected! +It needs at least [Synapse](https://github.com/element-hq/synapse) v1.52.0 for all functions to work as expected! You get your server version with the request `/_synapse/admin/v1/server_version`. See also [Synapse version API](https://element-hq.github.io/synapse/latest/admin_api/version_api.html). @@ -104,7 +104,10 @@ or to a list of homeservers: ```json { - "restrictBaseUrl": ["https://your-first-matrix-server.example.com", "https://your-second-matrix-server.example.com"] + "restrictBaseUrl": [ + "https://your-first-matrix-server.example.com", + "https://your-second-matrix-server.example.com" + ] } ``` @@ -163,6 +166,5 @@ services: ## Development - See https://yarnpkg.com/getting-started/editor-sdks how to setup your IDE -- Use `yarn lint` to run all style and linter checks -- Use `yarn test` to run all unit tests +- Use `yarn test` to run all style, lint and unit tests - Use `yarn fix` to fix the coding style diff --git a/index.html b/index.html index 2a0db84..8588999 100644 --- a/index.html +++ b/index.html @@ -119,7 +119,7 @@
Loading...
- +