diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b32fbdc --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# 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 a582342..378a872 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -17,5 +17,7 @@ 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 61c3bc7..301cb0c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ +.vscode .yarn diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 21c6d0f..0000000 --- a/.prettierrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "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 122a313..b4f20db 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.52.0 for all functions to work as expected! +It needs at least [Synapse](https://github.com/element-hq/synapse) v1.93.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,10 +104,7 @@ 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"] } ``` @@ -166,5 +163,6 @@ services: ## Development - See https://yarnpkg.com/getting-started/editor-sdks how to setup your IDE -- Use `yarn test` to run all style, lint and unit tests +- Use `yarn lint` to run all style and linter checks +- Use `yarn test` to run all unit tests - Use `yarn fix` to fix the coding style diff --git a/index.html b/index.html index 8588999..2a0db84 100644 --- a/index.html +++ b/index.html @@ -119,7 +119,7 @@
Loading...
- +